Answer the question
In order to leave comments, you need to log in
How to quickly delete Foreign Table in postgres?
Hello!
The task is to connect and configure data exchange from Oracle to Postgresql. For this, I decided to use oracle fwd , which implements the link through Foreign Table. There are 2 issues globally:
1) Can't remove foreign table from postgres with query
DROP FOREIGN TABLE IF EXISTS название таблицы CASCADE
The request hangs for more than 1 hour and, as a result, the table is not deleted. Is there a way to drop a table? This behavior is observed only on those tables that have already been used and received more than 1 million. lines. SELECT * FROM fwd_orders LIMIT 500
Answer the question
In order to leave comments, you need to log in
Can't remove foreign table from postgres with query
If you make an elementary query SELECT * FROM fwd_orders LIMIT 500, then everything is executed in 600ms. And if any ORDER BY is added to this query, then the query execution takes 10 or more minutes (there are more than 20 million rows in the table). Why is this happening? And how can you speed things up?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question