To access the Oracle Postgres using DG4ODBC and very slow psqlodbc

I've set up DG4ODBC a base of Oracle 11 g Windows 2003 32-bit to access a Windows 2008 64 bit 9.1 database Postgres, you use the psqlodbc (32-bit) driver.

I can't do it because of the queries, but they are very slow. The reason is that the place where clause of the query is deleted somewhere along the line (I've seen actual queries run by Postgres using pgAdmin server status screen) and all the rows of the table are extracted from Postgres. Naturally with tables bigger than the few lines which means do a full table in Postgres scan, so that transfer a lot of bytes through the network.

"For example, if I mark from Oracle like this: select * of" dps_user"@pg where 'id' = '2423', run the sql in Postgres is: select * from dps_user, which retrieves all the rows of the table! When I get the result of the query in Oracle, I get only the row with id 2423, so I guess that Oracle Gets the entire table and that he not filtering at its end.

In a separate 32-bit Windows XP machine I have implemented the same psqlodbc driver, and ran the same query by using Microsoft Query. In this case, the query to run in Postgres contains a where clause and, therefore, it is much faster because a unique index scan is performed in Postgres, and that a line is transferred to Microsoft Query.

Could you help me, please?

Thank you very much

Carlos

Hi Carlos,
Yes - he manipulated me the SR ;-)
Sometimes they have a little more time and information to study can throw up the answer.

Kind regards
Mike

Tags: Database

Similar Questions

  • I have the home Prenium and can't access the themes or use photos etc on desktop.

    I have Home Premium and can't access the themes or use photos etc on the desktop. All I have is a black screen. Also, I can't save screensavers, including by default. What is going on?

    Lisa

    Black screen after that Cruiser connection still works
    http://social.technet.Microsoft.com/forums/en-us/w7itproperf/thread/d47aece7-5e12-46EC-8d3e-e8671730a7ce

    If still no joy try this thread.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/Desktop-stuck-on-solid-colours-win-7-Pro/8e034d73-fbaf-45CD-a8eb-d8329e7f47e4

    If you have AVG see this.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/no-longer-see-thumbnails-for-applications-on-the/2b0a71ac-E75A-44a2-9198-2ac803644540

  • Unable to connect to oracle DB using VBA and you are prompted with the error:-the client components and Oracle network have not been found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or installation of the

    Hello

    It would be helpful to me if someone can give me instructions on setting the version of driver or oracle client required to connect to the the Oracle DB using excel VBA

    My config: -.

    Windows - 8-64 bit

    Excel 2013-32 bit

    The components of the client / I should install, and how to solve the question below...

    I tried the VBA code... but you are prompted with the error message above

    Void Oracle()

    Con Dim As ADODB. Connection

    Dim rs As ADODB. Recordset

    Dim query As String

    The con value = New ADODB. Connection

    Set rs = New ADODB. Recordset

    strCon = "Driver = {Microsoft ODBC for Oracle}"; "." & _

    "CONNECTSTRING = (DESCRIPTION ="& _.

    "(ADDRESS =(PROTOCOL=TCP)"& _

    "(HOST = HostNumber)(PORT=PortNumber))" & _

    "(CONNECT_DATA = (SID = SIDNumber))); UID = username; pwd = password; »

    con. Open (strcon)

    If err. <>Number 0 then

    MsgBox ("Oracle error:" & vbCrLf & err.) Description)

    On the other

    MsgBox ("Oracle DB Connection successful.")

    End If

    End Sub

    I'll replace it with the values of host origin...

    Thanks for the suggestion you till u gave...

    complete solution is in the link below...

    https://itkbs.WordPress.com/2014/07/28/how-to-install-ODBC-driver-for-Oracle-in-Windows-7/

  • I can access the internet, get on facebook and hotmail, but I can't play games on facebook and I can not open or respond to my emails

    I can access the internet, get on facebook and hotmail, but I can't pllay games on facebook and I can't open or respond to my e - but, anyone know wats up?

    Hi Danny

    It is a problem on Facebook. Here are links where you can get help.

    Facebook Help Center | Facebook: http://www.facebook.com/help/

    Facebook Support Forums: http://www.thefacebookforum.net/forum

    Concerning

  • What opening of database Service of Cloud Computing console receiveing "the user role cannot access the Cloud database Service" message and see no service. Why?

    What opening of database Service of Cloud Computing console receiveing "the user role cannot access the Cloud database Service" message and see no service. Why?

    Thank you in advance.

    Try now

  • When a photo has for example a bright sky beside the dark object, using lights and shadows can cause a 'halo' or double edge to appear. How can I avoid this?

    When a photo for example has a bright sky next to the dark object, using lights and shadows to reduce high contrast can cause a 'halo' or double-edge to appear. How can I avoid this?

    From my experience, this isn't a problem that has a simple solution, such as moving a slider or a combination of the sliders in LR. It requires rather a major change in the technique, at the unit or in office. Some pros (I am not one) tire ALWAYS support HDR or this reason - better transition from highlights to shadows, then tweak the image with much less "heavy" necessary. Another popular technique is the luminosity masking and blending in PS. There is a ton of information on this topic (just do a search on Youtube), but it's not easy to learn or do, but it can eliminate this problem.

  • Cannot access the server message coming up and cannot convert files

    Cannot access the server message coming up and can't convert the files. Works on my desktop, but not at home.

    ER

    Is it ExportPDF?

  • Access the same catalog of XP and 7

    Hello

    I added a second drive on which I have win7 RC running. Before destroying the soemthing I would ask some advice:

    Can I access the same catalog of XP and Win7?

    If you work on XP, everything is on the C: drive so that when you work on Win7 XP disk and threrfore catalogue is on drive D:\ win7 point of view. Will this be a problem? LR stores data of absolute paths in the catalog that would prevent me from doing this?

    Thanks for your suggestions.

    Franz

    McLion (+) wrote:

    Since I have the catalog and images on the XP C:, they would be seen on both D: of Win7 forcing me to update the location of the folder whenever I work another OS (bothway).

    I don't think that you still have to update the location of the folder, since the relative paths between the catalog and images will remain the same. I'm not sure, though - you should try.

  • Lightroom showing constantly "unresponsive" and very slow since the last update. With the help of Windows 10. Extremely slow import!

    Lightroom showing constantly "unresponsive" and very slow since the last update. With the help of Windows 10. Extremely slow import!

    Hi Dear

    Please see this thread windows Lightroom CC 10 'unresponsive' number.

    Let us know if this helps

    ~ Assani

  • Satellite T110-11U: WLan connection dropped and very slow performance

    Hi people,

    I use a Satellite T110-11U running windows 7 Home premium.

    After having initially was very satisfied with its use, it now becomes more and more frustrating to use with wifi, with connections dropped and very slow performance.

    I have updated the BIOS and think I have updated all drivers wirelss, but could be the problem. It seems that wireless, software of management is at fault because the networks are detected, but not clinging.

    Any suggestion or tips to try will help save my sanity!

    Thanks for your help.

    John

    > have updated the BIOS and think I have updated all drivers wirelss, but could be the problem.
    If you need to make sure that you use the latest WLan driver.
    The driver can be downloaded here:
    http://APS2.toshiba-tro.de/WLAN/

    The laptop uses the Realtek RTL8191SE of WLan card.
    Please also reset the settings of the Wlan router. I had a lot of problems with my WLan and after the reset of the router, performance problems disappeared.

  • Cannot scroll to delete several email messages-just one at a time and very slow-help?

    MacBook

    10.10.5 Yosemite

    Can not hold the command to scroll down and delete send several messages, just one at a time and VERY slow-help?

    If the emails are side by side, select one, then hold down the SHIFT key and select the last one. Hold the command key and clicking on the individual emails should work. What happens when you try?

  • my computer does not work properly and very slow

    Dear Sir.

    my pc does not work properly and very slow

    Can you help me

    Velmurugangr

    Here are some tips to help you speed up your system and Foundation repair.

    1. http://support.microsoft.com/kb/310312 cleaning disc

    2 Disk Defragmenter http://support.microsoft.com/kb/314848

    3. how to uninstall the unwanted/unused programs http://support.microsoft.com/kb/307895

    4. How will I know if I have a http://windows.microsoft.com/en-US/windows7/how-can-i-tell-if-my-computer-has-a-virus virus

    5 tools to remove the virus Security Essentials

    6. how to run check disk http://support.microsoft.com/kb/315265

    Your question is a little vague, suggestions above should give you a good start to decide the issues you face. Let me know it it helps. Thank you.

  • How can I access the option "replace" in Notepad and stop my typing to write about the next word?

    I have a 2002 version of Windows XP. I'm not sure how to access the "replace" option in Notepad. (I think) I don't have office because I can't afford it. But I'm in the middle of editing a document on my email account, (live) and I am typing on the next word. It is originally a mess, instead of an essay due tomorrow. I'm not used to Notepad. I was in school and working on office 2007, 2010. So if access to the option "check spelling" comes to mind, I would be grateful this answer too. It is certainly not F7 on my computer.

    Thank you

    Sue P

    Using wordpad. Then press insert to overtype mode / press again to return to normal. I don't think that the notebook has the opportunity. Think either is not a spell checker. There are freeware alternatives, that would probably do a better job than one of them. And it will have more features

    It is an alternative (and free) and can use a spell checker (you need to download it). And also has a mode to overwrite (insert press to do)

  • Why can't I access the internet without using safe mode

    Help cannot access internet without using safe mode

    Hi Dharrington25,
     
    -Remember to make changes to your computer after that this problem started to happen?
     
    As you are able to access the Internet using the safe, put your computer in a clean boot state in order to identify the program causing this problem.
     

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    See KB Microsoft article below for more information on how to solve a problem by performing a clean boot in Windows Vista or in Windows 7:How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

  • Problem with the Internet connection using IE7 and Windows Vista

    Hi all

    I don't know if I'm in the right forum, but I need someone, help please...

    I just bought a new XPS420 with Windows Vista Home Premium and IE7 already installed.  The 2-3 days, internet worked very well.  Now, whenever I open IE7, I get a message on the connection not found or something like that.  I did some research and some forums suggest to reset IE7 using Tools/Internet Options / Advanced.  It worked... but only temporarily.   After that I turned off my computer and turned back on later in the day, open to the top of IE7, it does not work yet.  If I turn off the modem, it does not.  If I do a reset, as shown above, it would work again.

    I finally called AT & T Tech support, but they could not diagnose the problem.  While we were on the phone and try to open and close IE7, and that is, I logged.  Then to test, I turned off the computer and turned it back on and of course, internet Explorer did not work.  The AT & T guy me open system information to check the properties of the network and all said that "this device works correctly.   He also suggested to disable my anti-virus program (I have preinstalled MacAfee), which I was very reluctant to do. So before you disable MacAfee, I tried IE and it worked, so I was happy.  I closed the browser and open it again and it worked; turned off the computer and turned it back and the browser did not work.  I already lost count how many times I had to do that!   When I click on diagnose the problem, I got a message on xxx.xxx.x.xx DNS. do not answer, as the server ping the remote host, but does not got a response.  On hearing this, the representative said that it must have something to do with Vista and that perhaps the OS has not been installed correctly and he suggested that I contact the place where I bought my computer and ask them to reinstall.

    He also asked me to install Firefox as an alternative.  When I did, it worked.  But IE7... at the time.  I could not afford to shut down my computer once again because I was already late to work, but I guess I'll find out later. But maybe I have to use Firefox if IE does not work.  I have not really tested who. Is the thing with Firefox, it is not compatible with our applications work as well as web pages, I am trying to access (I tried one before I left) a work t look the same and difficult to navigate. And it shows "protect on" on the lower right of the browser that performs the same way, he shows up on IE.

    Sorry for the long post, but I also need to evacuate.  The resolution could really be as simple as turn off the anti-virus?  But then, how to get us protected?

    Help, please!  I'm so desperate for a solution.  My mother also uses this computer to access its work files.

    Thank you
    Remms


Maybe you are looking for

  • After 24 hours my second episode of my Podcast still does not appear in the store even if it shows to subscribers. Should I be worried?

    Hello! I recently published my podcast and my podcast and first episode both published to the store without any problem.  However, I posted my second podcast to my RSS feed yesterday and although he shows to my subscribers, it has not yet posted to t

  • List of users to the App Server?

    I'm finally starting to tinker with the new application server (in the hope that my 10.6.8 Xserve survives long enough so that everything be moved above). In the oldest Server Admin, there is a popout drawer that could list all the users and groups t

  • Satellite L500-1WG - Windows Media Player does not display my library

    Can anyone help? I have a Satellite L500-1WG, I ripped out the music in my music (the default setting), and it does not show in my media player library. I spent hours trying to figure this

  • Disk Cleanup

    I have seen this asked before (2008 or 2009) to a certain extent, but was hoping to get a little more information. I have a few concerns about the cleanup (deletion) of the files in Files downloaded programs and files Setup logsThis will affect every

  • MsgBox appears not

    I was writing and script and tried to add a msgbox to ensure that my script was working properly so far. When adding that nothing appeared. then I wrote a simple... nothing any ideas? y at - it some sort of setting I need to change. I'm pretty new to