Re: plpgsql: UPDATE...Returning in FOR loop - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: plpgsql: UPDATE...Returning in FOR loop
Date
Msg-id 49AC57CA.1010507@iol.ie
Whole thread Raw
In response to Re: plpgsql: UPDATE...Returning in FOR loop  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 02/03/2009 20:19, Tom Lane wrote:

> Well, that has nothing to do with UPDATE RETURNING; it's apparently
> failing here:
>
>>   rec recipients;
>
> I suppose "recipients" is a composite type one of whose columns is of a
> NOT NULL domain.  Best advice is "don't do that" --- not-null domains

Thanks Tom and Sam for your replies - I hadn't absorbed the bit in the
docs about variables being initialised to NULL in the absence of
anything else.... removing NOT NULL from message_type_domain did the
trick, and all works as I hoped.

Ray.


------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




pgsql-general by date:

Previous
From: Tim Uckun
Date:
Subject: Re: PostgreSQL clustering with DRBD
Next
From: Fernando Moreno
Date:
Subject: Re: Log en Postgresql 8.1.11