]> granicus.if.org Git - postgresql/commit
Fix ALTER TABLE ADD COLUMN to disallow the same column types that are
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Dec 2002 18:39:22 +0000 (18:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Dec 2002 18:39:22 +0000 (18:39 +0000)
commit260faf0b633716d02e30103bd5e94eb40f06bf27
tree578a60809421acd51066b5290fc3be05b778cb9e
parent88177f77b17ef478da1dbca9acb5e3a61b346613
Fix ALTER TABLE ADD COLUMN to disallow the same column types that are
disallowed by CREATE TABLE (eg, pseudo-types); also disallow these types
from being introduced by the range-function syntax.  While at it, allow
CREATE TABLE to create zero-column tables, per recent pghackers discussion.
I am back-patching this into 7.3 since failure to disallow pseudo-types
is arguably a security hole.
src/backend/catalog/heap.c
src/backend/commands/tablecmds.c
src/backend/parser/parse_clause.c
src/backend/utils/cache/relcache.c
src/include/catalog/heap.h