Re: In plpgsql: difference between := and =

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David <dbree(at)duo-county(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: In plpgsql: difference between := and =
Date: 2006-04-13 04:24:44
Message-ID: 9399.1144902284@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

David <dbree(at)duo-county(dot)com> writes:
> On Wed, Apr 12, 2006 at 08:43:20PM -0400, Tom Lane wrote:
>> There is no difference between := and = in plpgsql: the scanner treats
>> them as the same token.

> I can almost picture seeing the statement that you _must_ use ":=" in a
> variable assignment, and that there was a difference, but apparently I
> dreamed it or it's a fact in some other application.

I think that only the := variant is shown in the documentation, but they
work the same.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Bruce Momjian 2006-04-13 13:13:06 Re: PostgreSQL a slow DB?
Previous Message David 2006-04-13 02:24:17 Re: In plpgsql: difference between := and =