Re: array support patch phase 1 patch
От | Peter Eisentraut |
---|---|
Тема | Re: array support patch phase 1 patch |
Дата | |
Msg-id | Pine.LNX.4.44.0305251205410.1897-100000@peter.localdomain обсуждение исходный текст |
Ответ на | array support patch phase 1 patch (Joe Conway <mail@joeconway.com>) |
Ответы |
Re: array support patch phase 1 patch
|
Список | pgsql-patches |
Joe Conway writes: > I personally don't understand why we should hide them from users. If I > prefer to use array_append(var1, var2) rather than (var1 || var2), > what's the problem? Its a matter of taste as to which is better. The problem is that this approach leads to bloat without bound. Maybe tomorrow someone prefers append_array(var1, var2) or var1 + var2. The standard says it's var1 || var2, there is no technical or substantial aesthetical argument against it, so that's what we should use. > And in any case, array_accum() is intended to be used for building > custom aggregates, so that needs to be documented. Can you give an example of an aggregate or a class of aggregates where this would be useful? -- Peter Eisentraut peter_e@gmx.net
В списке pgsql-patches по дате отправления: