pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: aless.jeant@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17693: Slow performance: Much slower queries on pg_stat_all_tables since 13.4
Date: Wed, 23 Nov 2022 11:41:48 -0500
Message-ID: <3715055.1669221708@sss.pgh.pa.us> (raw)
In-Reply-To: <17693-8d263aff1ffe112f@postgresql.org>
References: <17693-8d263aff1ffe112f@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> We did a point upgrade through RDS's managed service which went from 13.4 to
> 13.7. (13.9 is unavailable and we have yet to upgrade to 13.8 - however I
> couldn't find any documentation or issue history reporting similar symptoms
> in the past year of discussions here)

> This created a weird bug which is causing a lot of strain on our systems,
> because we currently run a lot of queries over the pg_stat_all_tables, in
> order to choose candidate tables most appropriate to vacuum preemptively in
> a production system (we have a lot of active tables, order of magnitude 100k
> tables)

> Before this, queries would take <<1 second, now they're always ~5 seconds,
> regardless of what we are filtering on.

RDS is not Postgres; the underlying storage engine is completely
different, as a consequence of which the Postgres layer is pretty
heavily modified (or so we in the community assume, having never
seen any of their source code).  I think you need to take this up
with Amazon.

Just to check, I did create a database with 100K tables in community
Postgres 13.9, and I didn't see any odd behavior with selecting from
pg_stat_all_tables.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <3715055.1669221708@sss.pgh.pa.us>
Permalink:  ../3715055.1669221708@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3715055.1669221708@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, aless.jeant@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17693: Slow performance: Much slower queries on pg_stat_all_tables since 13.4
  In-Reply-To: <3715055.1669221708@sss.pgh.pa.us>

* 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