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: Add pg_sequence system catalog
Date: Tue, 20 Dec 2016 13:42:53 +0000
Message-ID: <E1cJKgv-0004eC-KE@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add pg_sequence system catalog

Move sequence metadata (start, increment, etc.) into a proper system
catalog instead of storing it in the sequence heap object.  This
separates the metadata from the sequence data.  Sequence metadata is now
operated on transactionally by DDL commands, whereas previously
rollbacks of sequence-related DDL commands would be ignored.

Reviewed-by: Andreas Karlsson <andreas@proxel.se>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1753b1b027035029c2a2a1649065762fafbf63f3

Modified Files
--------------
doc/src/sgml/catalogs.sgml                    |  88 +++++-
src/backend/catalog/Makefile                  |   1 +
src/backend/catalog/dependency.c              |   6 +
src/backend/catalog/information_schema.sql    |  13 +-
src/backend/catalog/system_views.sql          |  16 +-
src/backend/commands/sequence.c               | 381 +++++++++++++++-----------
src/backend/utils/cache/syscache.c            |  12 +
src/bin/pg_dump/pg_dump.c                     |  22 +-
src/include/catalog/catversion.h              |   2 +-
src/include/catalog/indexing.h                |   3 +
src/include/catalog/pg_sequence.h             |  30 ++
src/include/commands/sequence.h               |  29 +-
src/include/utils/syscache.h                  |   1 +
src/test/regress/expected/rules.out           |  18 +-
src/test/regress/expected/sanity_check.out    |   1 +
src/test/regress/expected/sequence.out        |  33 ++-
src/test/regress/expected/updatable_views.out |  93 +++----
src/test/regress/sql/sequence.sql             |   8 +
src/test/regress/sql/updatable_views.sql      |   2 +-
19 files changed, 490 insertions(+), 269 deletions(-)


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


view thread (11+ messages)  latest in thread

Message-ID: <E1cJKgv-0004eC-KE@gemulon.postgresql.org>
Permalink:  ../E1cJKgv-0004eC-KE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cJKgv-0004eC-KE@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: Add pg_sequence system catalog
  In-Reply-To: <E1cJKgv-0004eC-KE@gemulon.postgresql.org>
  References: <E1cJKgv-0004eC-KE@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