Re: pg_upgrade and statistics - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pg_upgrade and statistics
Date
Msg-id 20120314003400.GB9132@momjian.us
Whole thread Raw
In response to Re: pg_upgrade and statistics  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_upgrade and statistics
Re: pg_upgrade and statistics
List pgsql-hackers
On Tue, Mar 13, 2012 at 08:30:17PM -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Another idea is to just copy over pg_statistic like we copy of
> > pg_largeobject now, and force autovacuum to run.
> 
> That would be an automatic crash in a 9.1 to 9.2 migration, as well as
> any other release where we changed the column layout of pg_statistic.

It might be a solution for cases where we don't modify it.  I frankly am
worried that if we copy over statistics even in ASCII that don't match
what the server expects, it might lead to a crash, which has me back to
wanting to speed up vacuumdb.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_upgrade and statistics
Next
From: Bruce Momjian
Date:
Subject: Re: pg_upgrade and statistics