Re: patch: to_string, to_array functions

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: patch: to_string, to_array functions
Дата
Msg-id 20100722191653.GH11693@fetter.org
обсуждение исходный текст
Ответ на Re: patch: to_string, to_array functions  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
On Wed, Jul 21, 2010 at 02:38:17PM -0400, Merlin Moncure wrote:
> On Wed, Jul 21, 2010 at 2:28 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> > Yeah, I'd like some more votes, too.  Aside from what I suggested
> > (array_join/array_split), I think my favorite is your #5.
> 
> -1 for me for any name that is of the form of:
> type_operation();
> 
> we don't have bytea_encode, array_unnest(), date_to_char(), etc.  the
> non-internal ones that we do have (mostly array funcs), are improperly
> named imo.  this is sql, not c.  suppose we want to extend string
> serialization to row types?
> 
> why not serialize/unserialize?

Because that's not what the function actually does.

FWIW, I'm for (im|ex)plode, as join()/split(), which I'd otherwise
like, would run into too many issues with JOIN.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Markus Wanner
Дата:
Сообщение: Re: dynamically allocating chunks from shared memory
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [RRR] CommitFest 2010-07 week one progress report