Re: [SQL] pg_restore followed by immediate VACUUM ANALYZE

2009-11-30 Thread Tom Lane
Bryce Nesbitt writes: >> 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.) > Hmm.  It seems like pg_restore would

Re: [SQL] pg_restore followed by immediate VACUUM ANALYZE

2009-11-30 Thread Bryce Nesbitt
Tom Lane wrote: 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 t

Re: [SQL] pg_restore followed by immediate VACUUM ANALYZE

2009-11-30 Thread Tom Lane
Bryce Nesbitt 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 on

[SQL] pg_restore followed by immediate VACUUM ANALYZE

2009-11-30 Thread Bryce Nesbitt
I looking at a script that does a pg_restore followed by an immediate VACUUM ANALYZE (postgres 8.3). I'm told that without the VACUUM ANALYZE the database will run slow. Does this ring true? Does pg_restore not update the query planner statistics? -- Sent via pgsql-sql mailing list (pgsql-sq