Thread: pgsql-server/src backend/catalog/heap.c backen ...

pgsql-server/src backend/catalog/heap.c backen ...

From
tgl@postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@postgresql.org    02/12/16 13:39:22

Modified files:
    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

Log message:
    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.