Re: pg_restore followed by immediate VACUUM ANALYZE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bryce Nesbitt <bryce2(at)obviously(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: pg_restore followed by immediate VACUUM ANALYZE
Date: 2009-12-01 03:55:12
Message-ID: 19189.1259639712@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Bryce Nesbitt <bryce2(at)obviously(dot)com> writes:
> I looking at a script that does a pg_restore followed by an immediate
> VACUUM ANALYZE (postgres 8.3).

That's standard.

> Does pg_restore not update the query planner statistics?

Correct. Autovacuum might fix them eventually, but usually it's
worth forcing the issue once you've completed your data loading.
(This might involve multiple steps, which is why pg_restore
doesn't try to force it for you.)

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bryce Nesbitt 2009-12-01 03:59:34 Re: pg_restore followed by immediate VACUUM ANALYZE
Previous Message Bryce Nesbitt 2009-12-01 03:46:43 pg_restore followed by immediate VACUUM ANALYZE