]> granicus.if.org Git - postgresql/commit
Integrate pg_upgrade_support module into backend
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 11 Mar 2015 02:33:25 +0000 (22:33 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 14 Apr 2015 23:26:37 +0000 (19:26 -0400)
commit30982be4e5019684e1772dd9170aaa53f5a8e894
treeee83c2fa412fb58cfb12c0a74211fb76b8b5eed7
parent936546dcbc24ad1f2b3d33e73aa5c5fde4d2be84
Integrate pg_upgrade_support module into backend

Previously, these functions were created in a schema "binary_upgrade",
which was deleted after pg_upgrade was finished.  Because we don't want
to keep that schema around permanently, move them to pg_catalog but
rename them with a binary_upgrade_... prefix.

The provided functions are only small wrappers around global variables
that were added specifically for pg_upgrade use, so keeping the module
separate does not create any modularity.

The functions still check that they are only called in binary upgrade
mode, so it is not possible to call these during normal operation.

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
20 files changed:
contrib/Makefile
contrib/pg_upgrade/dump.c
contrib/pg_upgrade/function.c
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/pg_upgrade.h
contrib/pg_upgrade/test.sh
contrib/pg_upgrade_support/Makefile [deleted file]
doc/src/sgml/pgupgrade.sgml
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/catalog/pg_enum.c
src/backend/catalog/pg_type.c
src/backend/catalog/toasting.c
src/backend/commands/typecmds.c
src/backend/commands/user.c
src/backend/utils/adt/Makefile
src/backend/utils/adt/pg_upgrade_support.c [moved from contrib/pg_upgrade_support/pg_upgrade_support.c with 73% similarity]
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/include/catalog/pg_proc.h