pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Support CREATE ACCESS METHOD
Date: Thu, 24 Mar 2016 02:03:24 +0000
Message-ID: <E1aiucO-0003HB-M4@gemulon.postgresql.org> (raw )
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Support CREATE ACCESS METHOD
This enables external code to create access methods. This is useful so
that extensions can add their own access methods which can be formally
tracked for dependencies, so that DROP operates correctly. Also, having
explicit support makes pg_dump work correctly.
Currently only index AMs are supported, but we expect different types to
be added in the future.
Authors: Alexander Korotkov, Petr Jelínek
Reviewed-By: Teodor Sigaev, Petr Jelínek, Jim Nasby
Commitfest-URL: https://commitfest.postgresql.org/9/353/
Discussion: https://www.postgresql.org/message-id/CAPpHfdsXwZmojm6Dx+TJnpYk27kT4o7Ri6X_4OSWcByu1Rm+VA@mail.gmail...
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/473b93287040b20017cc25a157cffdc5b978c254
Modified Files
--------------
doc/src/sgml/indexam.sgml | 6 +
doc/src/sgml/ref/allfiles.sgml | 2 +
doc/src/sgml/ref/create_access_method.sgml | 120 ++++++++++++
doc/src/sgml/ref/drop_access_method.sgml | 112 +++++++++++
doc/src/sgml/reference.sgml | 2 +
src/backend/access/index/amapi.c | 7 +
src/backend/catalog/dependency.c | 9 +
src/backend/catalog/objectaddress.c | 61 +++++-
src/backend/commands/Makefile | 2 +-
src/backend/commands/amcmds.c | 271 +++++++++++++++++++++++++++
src/backend/commands/event_trigger.c | 3 +
src/backend/commands/opclasscmds.c | 42 +----
src/backend/nodes/copyfuncs.c | 15 ++
src/backend/nodes/equalfuncs.c | 13 ++
src/backend/parser/gram.y | 25 ++-
src/backend/parser/parse_utilcmd.c | 2 +-
src/backend/tcop/utility.c | 18 ++
src/backend/utils/adt/selfuncs.c | 46 +----
src/bin/pg_dump/common.c | 5 +
src/bin/pg_dump/pg_dump.c | 172 +++++++++++++++++
src/bin/pg_dump/pg_dump.h | 9 +
src/bin/pg_dump/pg_dump_sort.c | 11 +-
src/include/catalog/catversion.h | 2 +-
src/include/catalog/dependency.h | 1 +
src/include/catalog/pg_am.h | 22 ++-
src/include/commands/defrem.h | 9 +-
src/include/nodes/nodes.h | 1 +
src/include/nodes/parsenodes.h | 13 ++
src/include/parser/kwlist.h | 1 +
src/include/utils/selfuncs.h | 48 +++++
src/test/regress/expected/create_am.out | 108 +++++++++++
src/test/regress/expected/object_address.out | 10 +-
src/test/regress/expected/sanity_check.out | 2 +-
src/test/regress/parallel_schedule | 2 +-
src/test/regress/serial_schedule | 1 +
src/test/regress/sql/create_am.sql | 73 ++++++++
src/test/regress/sql/object_address.sql | 5 +-
37 files changed, 1150 insertions(+), 101 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: <E1aiucO-0003HB-M4@gemulon.postgresql.org>
Permalink: ../E1aiucO-0003HB-M4@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1aiucO-0003HB-M4@gemulon.postgresql.org
copy link · copy postgr.es
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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Support CREATE ACCESS METHOD
In-Reply-To: <E1aiucO-0003HB-M4@gemulon.postgresql.org>
References: <E1aiucO-0003HB-M4@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