Re: [HACKERS] BUG #1290: Default value and ALTER...TYPE

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Troels Arvin <troels(at)arvin(dot)dk>, <pgsql-bugs(at)postgresql(dot)org>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] BUG #1290: Default value and ALTER...TYPE
Date: 2004-10-24 11:11:15
Message-ID: Pine.LNX.4.44.0410241310030.2015-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Sun, 24 Oct 2004, Neil Conway wrote:

> (1) Accept the default's raw parsetree from the parser
> (2) Convert it to a cooked parsetree via transformExpr()
> (3) Add a coercion to the table's column type
>
> Can't we save the cooked parsetree that we produced in #2?

One could even save the string as it was before parsning if one wants to
(could make it easier to edit in a graphical client like pgadmin3).

--
/Dennis Björklund

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Jan Wieck 2004-10-24 14:15:00 Re: [Slony1-general] Thread-safety detection on HP-UX
Previous Message Magnus Hagander 2004-10-24 10:43:13 Re: Beta3 much slower than Beta2

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-10-24 14:30:09 Re: [HACKERS] BUG #1290: Default value and ALTER...TYPE
Previous Message Neil Conway 2004-10-24 10:31:57 Re: [HACKERS] BUG #1290: Default value and ALTER...TYPE