Re: postgres_fdw insert extremely slow - Mailing list pgsql-general

From Mats Julian Olsen
Subject Re: postgres_fdw insert extremely slow
Date
Msg-id 10df210c-a1bb-f909-9a48-61ac54880df0@duneanalytics.com
Whole thread Raw
In response to Re: postgres_fdw insert extremely slow  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: postgres_fdw insert extremely slow
Re: postgres_fdw insert extremely slow
List pgsql-general
Apologies for the sloppiness!
> Postgres version(s)?

x: Aurora PostgreSQL 11.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 
4.9.3, 64-bit (RDS)

y: PostgreSQL 12.2 (Ubuntu 12.2-2.pgdg19.10+1) on x86_64-pc-linux-gnu, 
compiled by gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008, 64-bit (GCP)

>
> Without the actual query and EXPLAIN ANALYZE on it this will be 
> difficult to answer with any detail.
>
> Also would be nice to have the table schema.
>

Here's the query, schema and the EXPLAIN ANALYZE

query: https://gist.github.com/mewwts/704663e19a21bc51864f3298f09a18c0

plan: https://explain.depesz.com/s/RQFQ


Best,

-- 
Mats
CTO @ Dune Analytics
We're hiring: https://careers.duneanalytics.com




pgsql-general by date:

Previous
From:
Date:
Subject: RE: INSERT Trigger to check for existing records : Does this do what I hope it is doing?
Next
From: Adrian Klaver
Date:
Subject: Re: postgres_fdw insert extremely slow