pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Integrate pg_upgrade_support module into backend
Date: Wed, 15 Apr 2015 00:32:12 +0000
Message-ID: <E1YiBFU-0002Ih-Qg@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/30982be4e5019684e1772dd9170aaa53f5a8e894

Modified Files
--------------
contrib/Makefile                                |    1 -
contrib/pg_upgrade/dump.c                       |    2 +-
contrib/pg_upgrade/function.c                   |  113 --------------
contrib/pg_upgrade/pg_upgrade.c                 |   27 ----
contrib/pg_upgrade/pg_upgrade.h                 |    2 -
contrib/pg_upgrade/test.sh                      |    1 -
contrib/pg_upgrade_support/Makefile             |   16 --
contrib/pg_upgrade_support/pg_upgrade_support.c |  190 -----------------------
doc/src/sgml/pgupgrade.sgml                     |    5 +-
src/backend/catalog/heap.c                      |    2 +-
src/backend/catalog/index.c                     |    2 +-
src/backend/catalog/pg_enum.c                   |    2 +-
src/backend/catalog/pg_type.c                   |    2 +-
src/backend/catalog/toasting.c                  |    2 +-
src/backend/commands/typecmds.c                 |    2 +-
src/backend/commands/user.c                     |    2 +-
src/backend/utils/adt/Makefile                  |    3 +-
src/backend/utils/adt/pg_upgrade_support.c      |  183 ++++++++++++++++++++++
src/bin/pg_dump/pg_dump.c                       |   18 +--
src/bin/pg_dump/pg_dumpall.c                    |    2 +-
src/include/catalog/pg_proc.h                   |   20 +++
21 files changed, 225 insertions(+), 372 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1YiBFU-0002Ih-Qg@gemulon.postgresql.org>
Permalink:  ../E1YiBFU-0002Ih-Qg@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YiBFU-0002Ih-Qg@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Integrate pg_upgrade_support module into backend
  In-Reply-To: <E1YiBFU-0002Ih-Qg@gemulon.postgresql.org>
  References: <E1YiBFU-0002Ih-Qg@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox