pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Roberto Mello <rmello@cc.usu.edu>
Cc: pgsql-docs@postgresql.org
Subject: Re: Revamped PL/pgSQL Documentation
Date: Fri, 16 Mar 2001 15:44:01 -0500
Message-ID: <26119.984775441@sss.pgh.pa.us> (raw)
In-Reply-To: <20010316125233.A21495@cc.usu.edu>
References: <20010316125233.A21495@cc.usu.edu>

Roberto Mello <rmello@cc.usu.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



view thread (5+ messages)  latest in thread

Message-ID: <26119.984775441@sss.pgh.pa.us>
Permalink:  ../26119.984775441@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26119.984775441@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rmello@cc.usu.edu
  Subject: Re: Revamped PL/pgSQL Documentation
  In-Reply-To: <26119.984775441@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox