Re: [HACKERS] string_to_array with empty input
От
David E. Wheeler
Тема
Re: [HACKERS] string_to_array with empty input
Дата
Msg-id
C2B2DAB5-E4C2-4D65-B236-822CEEF7ABC5@kineticode.com
Ответ на
Re: [GENERAL] string_to_array with empty input (Sam Mason)
Список
Дерево обсуждения
string_to_array with empty input Steve Crawford <scrawford@pinpointresearch.com>
Re: string_to_array with empty input Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: [HACKERS] string_to_array with empty input Brendan Jurd <direvus@gmail.com>
Re: [HACKERS] string_to_array with empty input Sam Mason <sam@samason.me.uk>
Re: string_to_array with empty input Greg Stark <stark@enterprisedb.com>
Re: [HACKERS] string_to_array with empty input Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] string_to_array with empty input justin <justin@emproshunts.com>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] string_to_array with empty input Steve Crawford <scrawford@pinpointresearch.com>
Re: [HACKERS] string_to_array with empty input "Leif B. Kristensen" <leif@solumslekt.org>
Re: [HACKERS] string_to_array with empty input Steve Crawford <scrawford@pinpointresearch.com>
Re: [HACKERS] string_to_array with empty input Sam Mason <sam@samason.me.uk>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: [HACKERS] string_to_array with empty input Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] string_to_array with empty input Sam Mason <sam@samason.me.uk>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: [HACKERS] string_to_array with empty input Sam Mason <sam@samason.me.uk>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input Steve Crawford <scrawford@pinpointresearch.com>
Re: [HACKERS] string_to_array with empty input justin <justin@emproshunts.com>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input justin <justin@emproshunts.com>
Re: [HACKERS] string_to_array with empty input Martin Gainty <mgainty@hotmail.com>
Re: [HACKERS] string_to_array with empty input Justin <justin@emproshunts.com>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: [HACKERS] string_to_array with empty input Sam Mason <sam@samason.me.uk>
Re: [HACKERS] string_to_array with empty input Greg Stark <stark@enterprisedb.com>
Re: [HACKERS] string_to_array with empty input Sam Mason <sam@samason.me.uk>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: [HACKERS] string_to_array with empty input Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] string_to_array with empty input Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: [HACKERS] string_to_array with empty input justin <justin@emproshunts.com>
Re: string_to_array with empty input Greg Stark <stark@enterprisedb.com>
Re: string_to_array with empty input justin <justin@emproshunts.com>
Re: string_to_array with empty input Greg Stark <stark@enterprisedb.com>
Re: string_to_array with empty input justin <justin@emproshunts.com>
Re: string_to_array with empty input Greg Stark <stark@enterprisedb.com>
Re: string_to_array with empty input Sam Mason <sam@samason.me.uk>
Re: string_to_array with empty input Greg Stark <stark@enterprisedb.com>
Re: string_to_array with empty input Sam Mason <sam@samason.me.uk>
Re: string_to_array with empty input justin <justin@emproshunts.com>
Re: [HACKERS] string_to_array with empty input "David E. Wheeler" <david@kineticode.com>
Re: string_to_array with empty input Justin <justin@emproshunts.com>
Re: string_to_array with empty input Greg Stark <greg.stark@enterprisedb.com>
On Apr 2, 2009, at 11:24 AM, Sam Mason wrote:
> Yes, I'd be tempted to pick one and go with it. It's seems a
> completely
> arbitrary choice one way or the other but the current behaviour is
> certainly wrong.
>
> I'd go with returning a zero element array because it would do
> the "right thing" more often when paired with array_to_string.
> I've also been through the first few pages of a Google search for
> "array_to_string" and it seems to do the "right" thing for the
> majority
> of the cases.
Forgive me if I'm missing something, but it seems to me that
array_to_string() works either way, no?
try=# select '"' || array_to_string('{}'::text[], ',') || '"'; ?column?
----------
""
(1 row)
Time: 72.129 ms
try=# select '"' || array_to_string('{""}'::text[], ',') || '"';
?column?
----------
""
(1 row)
Best,
David
В списке pgsql-general по дате отправления