Comments (7)
Now that is strange.
The (internal) table SYS.XDS_ACE
is defined differently in different Oracle versions, but it does not look like what you see in the ones I have at hand.
In Oracle 10.2:
SQL> SELECT data_length, data_precision, data_scale
2 FROM all_tab_columns
3 WHERE owner='SYS' and table_name='XDS_ACE' AND column_name='START_DATE';
no rows selected
In Oracle 11.2:
SQL> SELECT data_length, data_precision, data_scale
2 FROM all_tab_columns
3 WHERE owner='SYS' and table_name='XDS_ACE' AND column_name='START_DATE';
DATA_LENGTH DATA_PRECISION DATA_SCALE
----------- -------------- ----------
13 9
In Oracle 12.1:
SQL> SELECT data_length, data_precision, data_scale
2 FROM all_tab_columns
3 WHERE owner='SYS' and table_name='XDS_ACE' AND column_name='START_DATE';
DATA_LENGTH DATA_PRECISION DATA_SCALE
----------- -------------- ----------
4000 0
What is your Oracle server version?
And LIMIT TO
and EXCEPT
work fine here.
I wonder what is going on in your installation.
Can you tell me the result of SELECT oracle_diag('oracle')
?
from oracle_fdw.
SELECT` oracle_diag('oracle');
oracle_diag
----------------------------------------------------------------------------------------
oracle_fdw 1.3.0, PostgreSQL 9.5.0, Oracle client 11.2.0.4.0, Oracle
server 11.2.0.1.0
(1 row)
from oracle_fdw.
Could it be that there is a bug or data corruption in your Oracle database?
I tested on 11.2.0.4, but that shouldn't make much of a difference.
Can you try
ALTER VIEW SYS.XDS_ACE COMPILE;
and see if that makes a difference?
How did you test that LIMIT TO
and EXCEPT
does not work?
I tried with schema SYS
like you did and didn't notice anything odd.
Can you maybe attach a debugger and see what happens in IsImportableForeignTable()
in src/backend/foreign/foreign.c
?
from oracle_fdw.
On 2/17/16 4:26 AM, Laurenz Albe wrote:
Can you try
|ALTER VIEW SYS.XDS_ACE COMPILE; |
and see if that makes a difference?
Unfortunately I don't have the required perms. I've asked my client to
try this.
How did you test that |LIMIT TO| and |EXCEPT| does not work?
I tried with schema |SYS| like you did and didn't notice anything odd.Can you maybe attach a debugger and see what happens in
|IsImportableForeignTable()| in |src/backend/foreign/foreign.c|?
Turns out the problem here is with how things are coded. The FDW creates
a monster set of CREATE FOREIGN TABLE commands, which get parsed
inside ImportForeignSchema(), before even attempting to see whether we
should be importing the table or not. Since we're getting bogus data for
xds_ace, the parsing fails. That could maybe be fixed, but I suspect
it's not worth it.
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
from oracle_fdw.
oracle_fdw uses the default of not pushing down LIMIT TO
and EXCEPT
.
I have considered it, but it would be a challenge because I'd have to take case translation into account.
So what remains to be seen to is SYS.XDS_ACE
.
I'll wait for what your client says.
from oracle_fdw.
from oracle_fdw.
Strange, but good that it is solved!
from oracle_fdw.
Related Issues (20)
- background worker "logical replication launcher" terminated HOT 7
- issue with oracle_fdw on Postgres 16.3 HOT 2
- Emoji and chinese character cannot load to oracle HOT 11
- Is it possible to speed up JOINs between (large r/o) Oracle table and small PG one? HOT 3
- Slowly operation of data overload. HOT 2
- undefined symbol HOT 9
- Trouble with build process <'netinet/in.h':No such file or directory> HOT 4
- Unable to load libclntsh.so.21.1 HOT 3
- Slow Transfer Speed HOT 3
- ERROR: could not load library "/usr/lib/postgresql/16/lib/oracle_fdw.so": libaio.so.1: cannot open shared object file: No such file or directory HOT 7
- make: *** [<commande interne>: oracle_fdw.o] Error 1 HOT 3
- ORA-03135: connection lost contact HOT 1
- Is there any way can i select ST_GEOMETRY type (ESRI ArcSDE) from oracle HOT 3
- Query using oracle_fdw being blocked? HOT 2
- could not load library "/usr/edb/as16/lib/oracle_fdw.so" HOT 3
- ORA-12545: Connect failed because target host or object does not exist HOT 4
- oracle_utils.c:22:10: fatal error: oci.h: No such file or directory HOT 13
- Regression tests failing on PostgreSQL 16 and Oracle 23ai Free (23.4.0.0) HOT 1
- ERROR: no SELECT privilege on V$SQL in the remote database HOT 8
- ERROR: IMPORT FOREIGN SCHEMA HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oracle_fdw.