Re: patch: to_string, to_array functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: patch: to_string, to_array functions
Date
Msg-id 13636.1281386056@sss.pgh.pa.us
Whole thread Raw
In response to Re: patch: to_string, to_array functions  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: patch: to_string, to_array functions  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> Is there any reason why array functions need the type prefix when
> other type conversion functions don't?  Why didn't we name unnest()
> array_unnest()?

UNNEST() is in the standard, IIRC, so you'd have to ask the SQL
committee that.  (And no, they're not exactly being consistent either,
see array_agg() for example.)

But anyway, my point here is that these functions are close enough to
the existing string_to_array/array_to_string functions that they should
be presented as variants of those, not arbitrarily assigned unrelated
new names.  Whether we'd have chosen different names if we had it to do
over is academic.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: dynamically allocating chunks from shared memory
Next
From: "David E. Wheeler"
Date:
Subject: Re: patch: to_string, to_array functions