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

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src backend/catalog/heap.c backen ...
Date: 2003-07-29 17:21:29
Message-ID: 20030729172129.49F92D1C4B9@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)svr1(dot)postgresql(dot)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.

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2003-07-29 22:18:41 pgsql-server/src/backend/access/nbtree nbtsearch.c
Previous Message Tom Lane 2003-07-29 14:17:43 pgsql-server/src/bin/pg_dump pg_dumpall.c