Re: pg_casts view (was Re: date_trun() with timezones? (was Re: TIME column ...))

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_casts view (was Re: date_trun() with timezones? (was Re: TIME column ...))
Дата
Msg-id 19198.1225744437@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_casts view (was Re: date_trun() with timezones? (was Re: TIME column ...))  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: pg_casts view (was Re: date_trun() with timezones? (was Re: TIME column ...))  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: pg_casts view (was Re: date_trun() with timezones? (was Re: TIME column ...))  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane escribi�:
>> regression=# select casttarget::regtype,castcontext,castfunc::regprocedure from pg_cast where castsource =
'time'::regtype;

> BTW it very much looks like we should have a pg_casts view that displays
> these things in a human-readable manner (like the above except with
> castcontext expanded)

There already is a \dC command in psql, which has nice enough output
format but doesn't provide any way to select a subset of the table.
Maybe we should just agree that its argument is a pattern for the
castsource type's name?

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pg_casts view (was Re: date_trun() with timezones? (was Re: TIME column ...))
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_casts view (was Re: date_trun() with timezones? (was Re: TIME column ...))