Foreign table performance issue / PostgreSQK vs. ORACLE

From: "Markhof, Ingolf" <ingolf(dot)markhof(at)de(dot)verizon(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Foreign table performance issue / PostgreSQK vs. ORACLE
Date: 2021-01-29 12:56:18
Message-ID: f3b693bf6e5842bda2b7077469504eca@MS-FRA-E13EX02.intl.ad.vzwcorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

I am struggling with the slow performance when running queries referring to foreign tables. - Yes, I know... - Please read the whole story!

The set-up basically is a production database and a reporting database. As names indicate, the production database is used for production, the reporting database is for analysis. On the reporting database, the only way to access product data is via foreign tables that link to the related production tables.

Now, while some queries on the reporting service run fine, some don't even return any data after hours.

However, the same set-up worked fine in Oracle before. Reporting wasn't always fast, but it delivered results in acceptable time. A query executed on the Oracle reporting server returns data in e.g. 30 seconds. But running the query translated to PostgreSQL on the PostgreSQL DB does not deliver a single row after hours (!) of run time.

So, I wonder: Is there a fundamental difference between Oracle database links and foreign tables in PostgreSQL that could explain the different run times? Could there be some tuning option in PostgreSQL to make queries via foreign tables faster (e.g. I heard about option fetch_size)?

Your pointes welcome!

Verizon Deutschland GmbH - Sebrathweg 20, 44149 Dortmund, Germany - Amtsgericht Dortmund, HRB 14952 - Geschäftsführer: Detlef Eppig - Vorsitzender des Aufsichtsrats: Francesco de Maio

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Niels Jespersen 2021-01-29 14:13:34 Npgsql and the Connection Service File
Previous Message Laurenz Albe 2021-01-29 09:24:18 Re: AW: running vacuumlo periodically?