pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ken Winter <ken@sunward.org>
Cc: 'Bricklen Anderson' <banderson@presinet.com>
Cc: 'PostgreSQL pg-sql list' <pgsql-sql@postgresql.org>
Subject: Re: Arrays in PL/pgSQL routines?
Date: Thu, 29 Dec 2005 13:42:18 -0500
Message-ID: <22479.1135881738@sss.pgh.pa.us> (raw)
In-Reply-To: <005a01c60ca4$f79e3bb0$6603a8c0@kenxp>
References: <005a01c60ca4$f79e3bb0$6603a8c0@kenxp>

"Ken Winter" <ken@sunward.org> writes:
> That works.  (Odd that the initialization seems to be necessary to make it
> work.)  Thanks!  Yes, I'm using version 7.4.

Possibly what you're running into is that 7.4 is restrictive about what
you can do with an array that's NULL.  Until pretty recently, assigning
to an element of a NULL array left the array still NULL --- this is an
artifact of the fact that the system sees the assignment as a binary
operation with the array and the new element as inputs.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <22479.1135881738@sss.pgh.pa.us>
Permalink:  ../22479.1135881738@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22479.1135881738@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ken@sunward.org, banderson@presinet.com
  Subject: Re: Arrays in PL/pgSQL routines?
  In-Reply-To: <22479.1135881738@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox