Re: Foreign table performance issue / PostgreSQK vs. ORACLE - Mailing list pgsql-general

From Jeremy Smith
Subject Re: Foreign table performance issue / PostgreSQK vs. ORACLE
Date
Msg-id CAM8SmLVioTeqR6GvhVpW3mtZ7eKUiNo+58qo9kbh7k0otdTNmQ@mail.gmail.com
Whole thread Raw
In response to Foreign table performance issue / PostgreSQK vs. ORACLE  ("Markhof, Ingolf" <ingolf.markhof@de.verizon.com>)
List pgsql-general


Could there be some tuning option in PostgreSQL to make queries via foreign tables faster (e.g. I heard about option fetch_size)?


fetch_size can make a difference, but it won't change a query that takes hours into a query that takes seconds.  The default is likely too low, though.

Have you analyzed the foreign table or set use_remote_estimate?  With no statistics, postgres may just be pulling the entire remote table.  

As others have mentioned, it would be useful to see your query.  There may be obvious issues, such as functions in the predicate, but without the query, we can only guess.

pgsql-general by date:

Previous
From: 109 ktke
Date:
Subject: Re: JIT on Windows with Postgres 12.1
Next
From: Ben Hoskings
Date:
Subject: Occasional lengthy locking causing stalling on commit