Re: Last builtin OID? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Last builtin OID?
Date
Msg-id Pine.LNX.4.21.0010211555270.825-100000@peter.localdomain
Whole thread Raw
In response to Last builtin OID?  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: Last builtin OID?
Re: Last builtin OID?
List pgsql-hackers
Philip Warner writes:

> pg_dump uses the OID of template1 as the last builtin OID, but this now
> seems broken in CVS (it returns 1). Should this work? If not, what is the
> recommended way to find the last built-in OID?

If you define the last builtin oid as the highest oid in existence after
initdb then it has always been whatever the load of pg_description at then
end leaves you with.

Perhaps you could move the CREATE TRIGGER pg_sync_pg_pwd (or something
else) to the very end to get a more predictable starting point.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: Marko Kreen
Date:
Subject: Re: [ANNC][RFC] crypto hashes for PostgreSQL 7.0, 7.1
Next
From: Larry Rosenman
Date:
Subject: Re: UnixWare 7.1.1b FS