]> granicus.if.org Git - postgresql/commit
For 8.0 servers, get last built-in oid from pg_database
authorStephen Frost <sfrost@snowman.net>
Wed, 21 Dec 2016 18:47:32 +0000 (13:47 -0500)
committerStephen Frost <sfrost@snowman.net>
Wed, 21 Dec 2016 18:47:32 +0000 (13:47 -0500)
commit59a3898914d73fdf7bcac895098e7a164b64f4fe
tree1b776ad75fba166788a9c1fe6586f69ba610cdcd
parentc8f8ed5c2d2336a178ba7393a90501ff7d91b42f
For 8.0 servers, get last built-in oid from pg_database

We didn't start ensuring that all built-in objects had OIDs less than
16384 until 8.1, so for 8.0 servers we still need to query the value out
of pg_database.  We need this, in particular, to distinguish which casts
were built-in and which were user-defined.

For HEAD, we only worry about going back to 8.0, for the back-branches,
we also ensure that 7.0-7.4 work.

Discussion: https://www.postgresql.org/message-id/flat/20160504183952.GE10850%40tamriel.snowman.net
src/bin/pg_dump/pg_dump.c