| From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
|---|---|
| To: | Colin 't Hart <colinthart(at)gmail(dot)com>, PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pgBadger and postgres_fdw |
| Date: | 2026-01-21 15:43:12 |
| Message-ID: | 31af308b-1689-44e8-ab88-f6a72722b38b@aklaver.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 1/21/26 00:18, Colin 't Hart wrote:
> Hi,
>
> One of my clients makes extensive use of postgres_fdw. After a migration
> performance isn't great. pgBadger reports show the slowest queries all
> being `fetch 100 from c2`.
>
> Anyone have any tricks for being able to associate those fetches with
> the queries that were used when declaring the server-side cursor?
This is going to need a lot more information. To start:
1) Migration of what and from what version to what version?
2) Where are the Postgres databases relative to each other on the network?
3) What versions of Postgres if not covered in 1.
4) If Postgres was what was being updated was an analyze done on the
instances?
5) Show a complete query using EXPLAIN ANALYZE.
6) Define slow.
>
> Thanks,
>
> Colin
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Colin 't Hart | 2026-01-21 16:12:44 | Re: pgBadger and postgres_fdw |
| Previous Message | jian he | 2026-01-21 12:15:25 | Re: Emitting JSON to file using COPY TO |