Comments (5)
Options are FDW-specific, so you cannot use use_remote_estimate
(and it wouldn't help in this case).
You need an ORDER BY
if you want to push down LIMIT
, e.g.
SELECT * FROM ftab ORDER BY id LIMIT 1;
But I think it would be simpler to query for a primary key that doesn't exist:
SELECT * FROM ftab WHERE id < 0;
from oracle_fdw.
thank you @laurenz for your quick response.
I've also tried this before:
SELECT * FROM ftab ORDER BY id LIMIT 1;
but I was surprised that the time needed is the same as
SELECT * FROM ftab LIMIT 1;
- around 45 seconds
Any ideas why?
The last option works - it is fast, but you need to know that there is an id
field in the table, unfortunatelly most of my tables do not have id
column but the name can be almost anything - so this is not universal for all my tables.
from oracle_fdw.
It may be that the reason it doesn't work is that you are using an old version of oracle_fdw.
Or id
is a string column.
from oracle_fdw.
Yes, I'm using 2.5.0 because there is a bug in 2.6.0, which you planed to resolve in 2.7.0
The memory for LOB locators didn't get released before the end of the
transaction, so running many statements in a single transaction could cause
out-of-memory errors and server crashes.
Report by "JosefMachytkaNetApp".```
I even tried to install the master branch about a month ago, but the issue was still there. So upgrade is not an option for now.
Anyway, thanks for you explanations and help, I'm closing this now since this is a very specific issue.
from oracle_fdw.
You can use the current development version.
But be warned that there is a problem with Oracle 21, see #643.
Doesn't look like I'll be able to work around that one.
from oracle_fdw.
Related Issues (20)
- 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
- Hi, Congratulations.... HOT 1
- cannot set prefetch to 10240 in oracle_fdw 2.7.0 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.