From: Mats Julian Olsen <mats@duneanalytics.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: postgres_fdw insert extremely slow
Date: Wed, 25 Nov 2020 17:48:50 +0100
Message-ID: <10df210c-a1bb-f909-9a48-61ac54880df0@duneanalytics.com> (raw)
In-Reply-To: <3862aa4d-01c7-c76b-4497-ebce1af702cc@aklaver.com>
References: <CAARtqpE-7mZY8WKKMq2fWeHBcrAJu41_GnKgKqdvkidk7g+M3A@mail.gmail.com>
<3862aa4d-01c7-c76b-4497-ebce1af702cc@aklaver.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: mats@duneanalytics.com, adrian.klaver@aklaver.com
Subject: Re: postgres_fdw insert extremely slow
In-Reply-To: <10df210c-a1bb-f909-9a48-61ac54880df0@duneanalytics.com>
References: <CAARtqpE-7mZY8WKKMq2fWeHBcrAJu41_GnKgKqdvkidk7g+M3A@mail.gmail.com> <3862aa4d-01c7-c76b-4497-ebce1af702cc@aklaver.com> <10df210c-a1bb-f909-9a48-61ac54880df0@duneanalytics.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox