Re: [SQL] Table Valued Parameters

2009-10-24 Thread Tom Lane
Richard Huxton writes: > To prevent quoting insanity, I recommend the ARRAY[] constructor rather > than array literals. You do need the explicit typecasts. By the same token, you might want to use ROW() rather than composite-type literal syntax for the array elements. > Oh - and version 8.3 or h

Re: [SQL] Table Valued Parameters

2009-10-24 Thread Brian Modra
Cheers, > > Andrew. > >> Date: Fri, 23 Oct 2009 20:32:37 +0200 >> Subject: Re: FW: [SQL] Table Valued Parameters >> From: br...@zwartberg.com >> To: andre...@hotmail.com >> CC: pgsql-sql@postgresql.org >> >> 2009/10/23 Andrew Hall : >> >

Re: [SQL] Table Valued Parameters

2009-10-24 Thread Richard Huxton
Andrew Hall wrote: > Hi, > > I was wondering whether anybody would be able to advise me on how (if it is > possible) to port some functionality from Oracle? > > This is just an example - in Oracle, I am able to do the following > > -- > -- Create a data type which replicates the data structure

Re: [SQL] Table Valued Parameters

2009-10-24 Thread Andrew Hall
e to express my thanks to you for taking the time to suggest an approach. Cheers, Andrew. > Date: Fri, 23 Oct 2009 20:32:37 +0200 > Subject: Re: FW: [SQL] Table Valued Parameters > From: br...@zwartberg.com > To: andre...@hotmail.com > CC: pgsql-sql@postgresql.org > > 2

Re: FW: [SQL] Table Valued Parameters

2009-10-23 Thread Brian Modra
pgsql; > Thanks, > > Andrew. > >> Date: Fri, 23 Oct 2009 20:10:48 +0200 >> Subject: Re: [SQL] Table Valued Parameters >> From: pavel.steh...@gmail.com >> To: andre...@hotmail.com >> CC: pgsql-sql@postgresql.org >> >> Hello >> >> 2009/10/

FW: [SQL] Table Valued Parameters

2009-10-23 Thread Andrew Hall
question more clear. Thanks, Andrew. > Date: Fri, 23 Oct 2009 20:10:48 +0200 > Subject: Re: [SQL] Table Valued Parameters > From: pavel.steh...@gmail.com > To: andre...@hotmail.com > CC: pgsql-sql@postgresql.org > > Hello > > 2009/10/23 Andrew Hall : > > Hi, > &

Re: [SQL] Table Valued Parameters

2009-10-23 Thread Pavel Stehule
Hello 2009/10/23 Andrew Hall : > Hi, > > I was wondering whether anybody would be able to advise me on how (if it is > possible) to port some functionality from Oracle? > > This is just an example - in Oracle, I am able to do the following > Use refcursor, please. http://www.postgresql.org/docs/

[SQL] Table Valued Parameters

2009-10-23 Thread Andrew Hall
Hi, I was wondering whether anybody would be able to advise me on how (if it is possible) to port some functionality from Oracle? This is just an example - in Oracle, I am able to do the following -- -- Create a data type which replicates the data structure of a single user in my application