Re: Shouldn't pg_settings.enumvals be array of text?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Shouldn't pg_settings.enumvals be array of text?
Дата
Msg-id 20081006142404.GC4304@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Shouldn't pg_settings.enumvals be array of text?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Shouldn't pg_settings.enumvals be array of text?  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
> > Agreed, it can certainly be bettered. text[] seems to be the cleanest,
> > but then we still have the issue with wide output in psql, no? But
> > should we really design the view around the single use-case of psql? You
> > can still just omit that column from the SELECT if you want...
> 
> Well, if we present as text[] then someone could easily use
> array_to_string to format the column the other way.  So probably
> text[] is the right thing.

Let's have it as text[] and have psql apply array_to_string() over it.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Shouldn't pg_settings.enumvals be array of text?
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Shouldn't pg_settings.enumvals be array of text?