pgsql: Only allow typed tables to hang off composite types, not e.g. ta - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Only allow typed tables to hang off composite types, not e.g. ta
Date
Msg-id E1QBpJF-0002uu-D1@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Only allow typed tables to hang off composite types, not e.g. tables.

This also ensures that we take a relation lock on the composite type when
creating a typed table, which is necessary to prevent the composite type
and the typed table from getting out of step in the face of concurrent
DDL.

Noah Misch, with some changes.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/04db0fdbfa9382730bb65f94bca2cd8063a3456a

Modified Files
--------------
src/backend/parser/parse_utilcmd.c        |   17 ++++++++++++++++-
src/test/regress/expected/typed_table.out |    2 ++
src/test/regress/sql/typed_table.sql      |    2 ++
3 files changed, 20 insertions(+), 1 deletions(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Attempt to remedy buildfarm breakage caused by commit f536d4194.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix handling of collations in multi-row VALUES constructs.