Re: Arrays in PL/pgSQL routines? - Mailing list pgsql-sql

From Ken Winter
Subject Re: Arrays in PL/pgSQL routines?
Date
Msg-id 005a01c60ca4$f79e3bb0$6603a8c0@kenxp
Whole thread Raw
In response to Re: Arrays in PL/pgSQL routines?  (Bricklen Anderson <banderson@presinet.com>)
Responses Re: Arrays in PL/pgSQL routines?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Arrays in PL/pgSQL routines?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-sql
Bricklen ~

That works.  (Odd that the initialization seems to be necessary to make it
work.)  Thanks!  Yes, I'm using version 7.4.

~ Ken

> -----Original Message-----
> From: Bricklen Anderson [mailto:banderson@presinet.com]
> Sent: Thursday, December 29, 2005 12:53 PM
> To: Ken Winter
> Cc: PostgreSQL pg-sql list
> Subject: Re: [SQL] Arrays in PL/pgSQL routines?
> 
> Ken Winter wrote:
> > Can arrays be declared in PL/pgSQL routines?  If so, how?
> >
> <snip>
> > DECLARE
> >
> try:
> my_array VARCHAR[] := '{}';
> 
> not sure if this works in 7.4 though, if that's the version that you are
> using.




pgsql-sql by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Arrays in PL/pgSQL routines?
Next
From: Tom Lane
Date:
Subject: Re: Arrays in PL/pgSQL routines?