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

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Only allow typed tables to hang off composite types, not e.g. ta
Date: 2011-04-18 14:20:13
Message-ID: E1QBpJF-0002uu-D1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-18 19:32:22 pgsql: Fix handling of collations in multi-row VALUES constructs.
Previous Message Andrew Dunstan 2011-04-18 13:28:30 pgsql: Attempt to remedy buildfarm breakage caused by commit f536d4194.