Re: get date in binary number format

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: get date in binary number format
Дата
Msg-id 20887.1033100082@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: get date in binary number format  (Alvaro Herrera <alvherre@atentus.com>)
Ответы Re: get date in binary number format  (Alvaro Herrera <alvherre@atentus.com>)
Список pgsql-general
Alvaro Herrera <alvherre@atentus.com> writes:
> Is there a way to cast these bitstrings into varchars or something?  I
> can't find any.

regression=# select ("bit"((date_part('doy', now()))::integer))::text;
ERROR:  Cannot cast type bit to text

Evidently not :-(.

Now that we have the ability to create casts that aren't applied
implicitly, it should be safe to create a lot more casts than we have
now, for example the bool<->int conversions that people keep asking for.
We ran out of time to attack that in 7.3, but I hope we will do more
in 7.4.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fwd: Sizes of sequences and serials
Следующее
От: Joe Conway
Дата:
Сообщение: Re: SQL subquery to supply table name?