From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org> |
Subject: | Re: remove undocumented assign syntax from plpgsql doc |
Date: | 2014-01-11 19:39:07 |
Message-ID: | 20140111193907.GL28089@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Sat, Jan 11, 2014 at 02:12:49PM -0500, Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > Oh, I think you are right. I have reverted the patch. Attached is
> > proposed documentation for '='.
>
> Meh. Variable initialization is only one of multiple cases (assignment,
> GET DIAGNOSTICS; maybe others, I've not examined the grammar). Also,
> if we do it like this, we're implying that both := and = are equally
> preferred, which might not be the impression we want to leave.
>
> I'd be a bit inclined to just stick a NOTE somewhere saying that "="
> can be used in place of ":=" for assignment.
OK, here is an updated doc patch that does that. The next question is
whether we want examples using '=' instead of ':='? Right now we have
them, and Pavel's patch removed them.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
Attachment | Content-Type | Size |
---|---|---|
assign.diff | text/x-diff | 529 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-01-11 19:46:58 | Re: remove undocumented assign syntax from plpgsql doc |
Previous Message | Tom Lane | 2014-01-11 19:12:49 | Re: remove undocumented assign syntax from plpgsql doc |