Re: using = in a function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andy Colson <andy(at)squeakycode(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: using = in a function
Date: 2008-01-29 02:41:08
Message-ID: 11155.1201574468@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andy Colson <andy(at)squeakycode(dot)net> writes:
> An assignment of a value to a PL/pgSQL variable or row/record field is
> written as:
> variable := expression;

> Notice I just use = and not :=.

> My question is, is there a difference? It seems to work both ways, so
> I'm a little confused.

Yeah, plpgsql actually allows both, but it's not documented.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-01-29 03:13:28 Re: 8.3RC2 vs 8.2.6 testing results
Previous Message Tom Lane 2008-01-29 02:36:35 Re: Table has duplicate keys, what did I do