-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with oracle_fdw on postgres 11.1 while it works perfectly fine on 10.6 #292
Comments
I assume you are using oracle_fdw 2.1.0, right? There has been a recent fix (839b125) that affects which columns are fetched from Oracle. Could you try with current Git HEAD and see if the problem persists? Also, what exactly are the problems you are experiencing? |
accidentally closed |
Hi Laurenz, Yes, I'm using oracle_fdw version 2.1.0 and I have tried with current GITHEAD, but the problem still exists. I don't see any error message as such. It's a data issue. When I'm passing a query, inappropriate results are being displayed as explained initially. |
Ok, this looks like a bug then. Can you provide |
Hi Laurenz, We face this issue under this specific condition.
FDW Diagnosis
ORACLE table:
POSTGRES table:
Querying Column once Returns correct data
Querying Same Column twice Returns all rows empty
|
Thanks! I will look at that. |
Bug #292 shows that this problem is more general, so adapt the change log entry in the hope that this makes it easier to recognize the problem.
I could reproduce the problem, but only with oracle_fdw 2.1.0. Git HEAD works fine, and a bisect shows that 839b125 fixes the problem. So this is a duplicate of #279. I have adapted the change log entry so that it becomes easier to rediscover the bug. You say that you can reproduce the problem with Get HEAD, which would contradict my findings. Can you try again to verify that? |
Thanks Laurenz! We will retry the patch and update further. |
Thank you Laurenz for the help. The issue has been resolved. |
Hi Laurenz,
I have an issue in fetching data from Oracle inPostgreSQL 11.1, whereas I am not facing any problem when I run the same query from PostgreSQL 10.6.
I am facing an issue whenever I'm using a column name twice in the query. I'm explaining with the example below:
Query executed on Postgres:
Query passed to Oracle:
When executed from PostgreSQL 10.6:
When executed from PostgreSQL 11.1:
I see a difference in the query that is passed from PostgreSQL 11.1, i.e. the same column is being selected more than once, which shouldn't be the case.
Considering the fact that oracle_fdw does not match columns by name, but by position: passing a column name more than once is causing issue in fetching data from oracle. Can you please help in identifying why the query is not getting converted appropriately when it is run from PostgreSQL 11.1?
Thanks,
Thanusha Jakkula
The text was updated successfully, but these errors were encountered: