pgsql-server/src backend/catalog/heap.c backen ... - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql-server/src backend/catalog/heap.c backen ...
Date
Msg-id 20030729172129.49F92D1C4B9@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@svr1.postgresql.org    03/07/29 14:21:28

Modified files:
    src/backend/catalog: heap.c
    src/backend/rewrite: rewriteHandler.c
    src/include/catalog: catversion.h

Log message:
    Coerce unknown-literal-constant default values to the column type during
    CREATE TABLE (or ALTER TABLE SET DEFAULT), rather than postponing it to
    the time that the default is inserted into an INSERT command by the
    rewriter.  This reverses an old decision that was intended to make the
    world safe for writing
    f1 timestamp default 'now'
    but in fact merely made the failure modes subtle rather than obvious.
    Per recent trouble report and followup discussion.

    initdb forced since there is a chance that stored default expressions
    will change.


pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql-server/src/bin/pg_dump pg_dumpall.c
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql-server/src/backend/access/nbtree nbtsearch.c