Re: A question about PL/pgSQL DECLAREd variable behavior

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Dane Foster <studdugie(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: A question about PL/pgSQL DECLAREd variable behavior
Date: 2015-10-22 18:00:58
Message-ID: 5629245A.3000903@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/21/15 9:32 PM, Dane Foster wrote:
> "If STRICT is not specified in the INTO clause, then target will be
> set to the first row returned by the query, or to nulls if the query
> returned no rows."
>
> ​Foot removed from mouth.

Note however that there's some unexpected things when checking whether a
record variable IS (NOT) NULL. It's not as simple as 'has the variable
been set or not'.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2015-10-22 18:08:22 Re: temporary indexes?
Previous Message Jim Nasby 2015-10-22 17:56:50 Re: temporary indexes?