From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Roberto Mello <rmello(at)cc(dot)usu(dot)edu> |
Cc: | pgsql-docs(at)postgresql(dot)org |
Subject: | Re: Revamped PL/pgSQL Documentation |
Date: | 2001-03-16 20:44:01 |
Message-ID: | 26119.984775441@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
Roberto Mello <rmello(at)cc(dot)usu(dot)edu> writes:
> The part that confuses me is the end. I assume that if you specify
> DEFAULT you must specify a value. Am I right in understanding that
> notation as meaning:
> name [ CONSTANT ] type [ NOT NULL ] [ DEFAULT value | := value ];
> or perhaps it could be written like this:
> name [ CONSTANT ] type [ NOT NULL ] [ { DEFAULT | := } value ];
Use the source, Luke ... a quick look into plpgsql's gram.y shows that
the latter is correct, ie, 'DEFAULT' and ':=' are interchangeable
introducers for an initialization expression.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Philip Crotwell | 2001-03-16 21:04:16 | suggestion for admin "If you are upgrading" |
Previous Message | Roberto Mello | 2001-03-16 19:52:33 | Re: Revamped PL/pgSQL Documentation |