Re: [GENERAL] Array manipulation/syntax question

2005-05-10 Thread Ron Mayer
Bart Grantham wrote: Hello again. I had a problem a few weeks ago with using IN ( some_array ) having really rough performance. Special thanks to Ron Mayer for the suggestion of using int_array_enum(some_array) to join against. I had to upgrade to PG8 but that technique works really well. No

Re: [GENERAL] Array manipulation/syntax question

2005-05-09 Thread David Fetter
On Mon, May 09, 2005 at 07:05:18PM -0400, Bart Grantham wrote: > Hello again. I had a problem a few weeks ago with using IN ( some_array > ) having really rough performance. Special thanks to Ron Mayer for the > suggestion of using int_array_enum(some_array) to join against. I had > to upgrad

Re: [GENERAL] Array manipulation/syntax question

2005-05-09 Thread Michael Fuhr
On Mon, May 09, 2005 at 07:05:18PM -0400, Bart Grantham wrote: > > Let me put it this way... how do I do this: > > -- my_array is an INT[] > > _my_array := select some_column from some_table; In PostgreSQL 7.4 and later you can use an array constructor: my_array := ARRAY(SELECT some_column FR

[GENERAL] Array manipulation/syntax question

2005-05-09 Thread Bart Grantham
Hello again. I had a problem a few weeks ago with using IN ( some_array ) having really rough performance. Special thanks to Ron Mayer for the suggestion of using int_array_enum(some_array) to join against. I had to upgrade to PG8 but that technique works really well. Now I have a question