Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2008-03-12 Thread Bruce Momjian
Added to TODO: * Add array_accum() and array_to_set() functions for arrays http://archives.postgresql.org/pgsql-hackers/2007-08/msg00464.php --- Merlin Moncure wrote: > On 8/14/07, Bruce Momjian <[EMAIL PROTECTED]> wrot

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-09-13 Thread Bruce Momjian
This has been saved for the 8.4 release: http://momjian.postgresql.org/cgi-bin/pgpatches_hold --- Pavel Stehule wrote: > 2007/8/15, Merlin Moncure <[EMAIL PROTECTED]>: > > On 8/14/07, Bruce Momjian <[EMAIL PROTECTED

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-15 Thread Pavel Stehule
2007/8/15, Decibel! <[EMAIL PROTECTED]>: > On Wed, Aug 15, 2007 at 06:47:05AM +0200, Pavel Stehule wrote: > > 2007/8/14, Decibel! <[EMAIL PROTECTED]>: > > > On Tue, Aug 14, 2007 at 05:38:33PM +0200, Pavel Stehule wrote: > > > > 2007/8/14, Bruce Momjian <[EMAIL PROTECTED]>: > > > > > > > > > > TODO

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-15 Thread Decibel!
On Wed, Aug 15, 2007 at 06:47:05AM +0200, Pavel Stehule wrote: > 2007/8/14, Decibel! <[EMAIL PROTECTED]>: > > On Tue, Aug 14, 2007 at 05:38:33PM +0200, Pavel Stehule wrote: > > > 2007/8/14, Bruce Momjian <[EMAIL PROTECTED]>: > > > > > > > > TODO item? > > > > > > > > + If your life is a hard driv

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-14 Thread Pavel Stehule
2007/8/15, Merlin Moncure <[EMAIL PROTECTED]>: > On 8/14/07, Bruce Momjian <[EMAIL PROTECTED]> wrote: > > > > TODO item? > > I would say yes...array_accum is virtually an essential function when > working with arrays and the suggested array_to_set (and it's built in > cousin, _pg_expand_array) real

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-14 Thread Pavel Stehule
2007/8/14, Decibel! <[EMAIL PROTECTED]>: > On Tue, Aug 14, 2007 at 05:38:33PM +0200, Pavel Stehule wrote: > > 2007/8/14, Bruce Momjian <[EMAIL PROTECTED]>: > > > > > > TODO item? > > > > > > + If your life is a hard drive, Christ can be your backup. + > > > > > > ---(end o

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-14 Thread David Fetter
On Tue, Aug 14, 2007 at 04:08:27PM -0500, Decibel! wrote: > On Tue, Aug 14, 2007 at 05:38:33PM +0200, Pavel Stehule wrote: > > 2007/8/14, Bruce Momjian <[EMAIL PROTECTED]>: > > > > > > TODO item? > > > > > > + If your life is a hard drive, Christ can be your backup. + > > > > > >

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-14 Thread Merlin Moncure
On 8/14/07, Bruce Momjian <[EMAIL PROTECTED]> wrote: > > TODO item? I would say yes...array_accum is virtually an essential function when working with arrays and the suggested array_to_set (and it's built in cousin, _pg_expand_array) really should not be built around generate_series when a C funct

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-14 Thread Decibel!
On Tue, Aug 14, 2007 at 05:38:33PM +0200, Pavel Stehule wrote: > 2007/8/14, Bruce Momjian <[EMAIL PROTECTED]>: > > > > TODO item? > > > > + If your life is a hard drive, Christ can be your backup. + > > > > ---(end of broadcast)--- > > TIP 6: explai

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-14 Thread Joe Conway
Bruce Momjian wrote: TODO item? Probably. See SQL2003 UNNEST: ::= UNNEST [ WITH ORDINALITY ] ::= | Joe ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-14 Thread Pavel Stehule
2007/8/14, Bruce Momjian <[EMAIL PROTECTED]>: > > TODO item? > > + If your life is a hard drive, Christ can be your backup. + > > ---(end of broadcast)--- > TIP 6: explain analyze is your friend I am against. It's too simple do it in SQL language.

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-14 Thread Bruce Momjian
TODO item? --- Michael Glaesemann wrote: -- Start of PGP signed section. > > On Aug 8, 2007, at 12:18 , Decibel! wrote: > > > On Wed, Aug 08, 2007 at 12:03:34PM -0500, Michael Glaesemann wrote: > >> Personally, I think exp

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-08 Thread Michael Glaesemann
On Aug 8, 2007, at 12:18 , Decibel! wrote: On Wed, Aug 08, 2007 at 12:03:34PM -0500, Michael Glaesemann wrote: Personally, I think expandarray is more appropriate and its functionality probably more generally useful, as it identifies the array indices as well. Note you can also rename the colu

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-08 Thread Decibel!
On Wed, Aug 08, 2007 at 12:03:34PM -0500, Michael Glaesemann wrote: > Personally, I think expandarray is more appropriate and its > functionality probably more generally useful, as it identifies the > array indices as well. Note you can also rename the columns. Sure. My point is that we should

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-08 Thread Michael Glaesemann
On Aug 8, 2007, at 11:41 , Decibel! wrote: On Tue, Aug 07, 2007 at 10:18:32PM -0700, Jeremy Drake wrote: select * from information_schema._pg_expandarray(ARRAY['foo', 'bar', 'baz']); x | n -+--- foo | 1 bar | 2 baz | 3 (3 rows) Not exactly well documented or well known, but it w

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-08 Thread Decibel!
On Tue, Aug 07, 2007 at 10:18:32PM -0700, Jeremy Drake wrote: > On Tue, 7 Aug 2007, Decibel! wrote: > > > ISTM that having a built-in array_to_set function would be awfully > > useful... Is the aggregate method below an acceptable way to do it? > > Umm, the array_to_set function is not an aggrega

Re: [HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-07 Thread Jeremy Drake
On Tue, 7 Aug 2007, Decibel! wrote: > ISTM that having a built-in array_to_set function would be awfully > useful... Is the aggregate method below an acceptable way to do it? Umm, the array_to_set function is not an aggregate. Personally, when I need this functionality, I use this function conve

[HACKERS] [EMAIL PROTECTED]: Re: [GENERAL] array_to_set functions]

2007-08-07 Thread Decibel!
ISTM that having a built-in array_to_set function would be awfully useful... Is the aggregate method below an acceptable way to do it? - Forwarded message from Merlin Moncure <[EMAIL PROTECTED]> - On 8/3/07, Guy Fraser <[EMAIL PROTECTED]> wrote: > On Wed, 2007-08-01 at 07:14 +0530, Merlin