Re: \d very, very, very slow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Atkins <steve(at)blighty(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: \d very, very, very slow
Date: 2002-08-04 06:42:24
Message-ID: 8728.1028443344@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steve Atkins <steve(at)blighty(dot)com> writes:
> I'm using postgres for a long-running application[1], where I'd really
> rather the application daemons don't have any access as the postgres
> user. As the schema doesn't change is it safe to analyze the system
> tables as the postgres user once at installation time or should I
> be doing that as part of the normal cronjobbed maintenance?

If you're not doing any schema changes then the ANALYZE stats for the
system tables shouldn't need updates, probably. On the other hand,
I'm not sure what it buys you to avoid it. Running "vacuum analyze"
as the postgres user from a cron job is standard practice in my book.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Atkins 2002-08-04 06:48:48 Re: \d very, very, very slow
Previous Message Alvaro Herrera 2002-08-04 06:22:14 Re: Are these error messages normal?