pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Getting pg_stat_database data takes significant time
Date: Thu, 12 Aug 2021 16:38:49 +0200
Message-ID: <20210812143849.GB9497@depesz.com> (raw)
In-Reply-To: <CABUevEzp-7doDMuzq0k4GjXfa88-Qby-g2ztvd55S_uc1dyXBQ@mail.gmail.com>
References: <20210811131247.GA27197@depesz.com>
	<202108111416.4ddlilf6hr6r@alvherre.pgsql>
	<20210811163355.GA20926@depesz.com>
	<CABUevEzp-7doDMuzq0k4GjXfa88-Qby-g2ztvd55S_uc1dyXBQ@mail.gmail.com>

On Thu, Aug 12, 2021 at 11:32:15AM +0200, Magnus Hagander wrote:
> Which database are you connected to? If you just want to look at the
> global stats, it might help to be connected to a database that is
> *not* the one with all the tables in -- e.g. connect to "postgres" and
> query pg_stat_database looking for values on a different database? In
> this case it would open files for "global", for "database postgres"
> and "shared relations" only and skip the file for your db with many
> objects. I think.

I'm connected to the db I need data about, and I need data from virtualy
all columns of pg_stat_database.

depesz





view thread (13+ messages)  latest in thread

Message-ID: <20210812143849.GB9497@depesz.com>
Permalink:  ../20210812143849.GB9497@depesz.com/
Also on:    postgresql.org/message-id/20210812143849.GB9497@depesz.com

 · 

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 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: depesz@depesz.com, magnus@hagander.net, alvherre@alvh.no-ip.org
  Subject: Re: Getting pg_stat_database data takes significant time
  In-Reply-To: <20210812143849.GB9497@depesz.com>
  References: <20210811131247.GA27197@depesz.com> <202108111416.4ddlilf6hr6r@alvherre.pgsql> <20210811163355.GA20926@depesz.com> <CABUevEzp-7doDMuzq0k4GjXfa88-Qby-g2ztvd55S_uc1dyXBQ@mail.gmail.com> <20210812143849.GB9497@depesz.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