Re: Should we document how column DEFAULT expressions work? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Should we document how column DEFAULT expressions work?
Date
Msg-id 1362410.1719349169@sss.pgh.pa.us
Whole thread Raw
In response to Should we document how column DEFAULT expressions work?  (James Coleman <jtc331@gmail.com>)
Responses Re: Should we document how column DEFAULT expressions work?
List pgsql-hackers
James Coleman <jtc331@gmail.com> writes:
> It's possible I'm the only one who's been in this situation, but I've
> multiple times found myself explaining to a user how column DEFAULT
> expressions work: namely how the quoting on an expression following
> the keyword DEFAULT controls whether or not the expression is
> evaluated at the time of the DDL statement or at the time of an
> insertion.

Uh ... what?  I recall something about that with respect to certain
features such as nextval(), but you're making it sound like there
is something generic going on with DEFAULT.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Backporting BackgroundPsql
Next
From: Daniel Gustafsson
Date:
Subject: Re: Backporting BackgroundPsql