]> git.ipfire.org Git - thirdparty/postgresql.git/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:57 +0000 (18:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Dec 2002 18:39:57 +0000 (18:39 +0000)
commitf599d56f5196f25cc128c7fabe9f087773b9c390
tree2374c475c517e9b4b322e8474cba8b9326c98343
parent750b3f38255d3e9c5e6021a74224659d18533e1c
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