Re: pg_migrator progress

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: pg_migrator progress
Date: 2009-02-18 16:21:48
Message-ID: 200902181121.48662.xzilla@users.sourceforge.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wednesday 18 February 2009 10:47:25 Tom Lane wrote:
> Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> > Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> >> No, but this would just be the same situation that prevails after
> >> OID-counter wraparound, so I don't see a compelling need for us to
> >> change the OID counter in the new DB. If the user has done the Proper
> >> Things (ie, made unique indexes on his OIDs) then it won't matter.
> >> If he didn't, his old DB was a time bomb anyway.
> >
> > Also I wonder about the performance of skipping over thousands or even
> > millions of OIDs for something like a toast table.
>
> I think that argument is a red herring. In the first place, it's
> unlikely that there'd be a huge run of consecutive OIDs *in the same
> table*. In the second place, if he does have such runs, the claim that
> he can't possibly have dealt with OID wraparound before seems pretty
> untenable --- he's obviously been eating lots of OIDs.
>

Yeah, but its not just lots... it's lots and lots of lots. Sure, I have
multi-billion row _tables_ now, but I know I ran systems for years "back in
the day" when we used oids in user tables, and they never made it to oid
wraparound terratory, because they just didn't churn through that much data.

> But having said that, there isn't any real harm in fixing the OID
> counter to match what it was. You need to run pg_resetxlog to set the
> WAL position and XID counter anyway, and it can set the OID counter too.
>

+1 for doing this, otherwise we need some strong warnings in the migrator docs
about this case imho.

--
Robert Treat
Conjecture: http://www.xzilla.net
Consulting: http://www.omniti.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-02-18 16:38:24 Re: Multi calendar system for pgsql
Previous Message Simon Riggs 2009-02-18 16:21:27 Re: Hot standby, recovery infra