Re: Why is cast array integer[] <--> text[] is not immutable.

Поиск
Список
Период
Сортировка
От Phil Couling
Тема Re: Why is cast array integer[] <--> text[] is not immutable.
Дата
Msg-id CANWftzLLVJM=A55t8xZ6EpQucgfBGM4VrK-_WDYy0b77oMmfiA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Why is cast array integer[] <--> text[] is not immutable.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Why is cast array integer[] <--> text[] is not immutable.
Список pgsql-general
Thanks

I'm having trouble finding any reference to array_out and array_in in
the documentation.

Is there a way to set a different cast for an array?

Regards

On 9 December 2011 15:09, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Phil Couling <couling@gmail.com> writes:
>> I'm struggling to understand why this casts is not immutable:
>
>> integer[]::text[]
>> text[]::integer[]
>
> Because it's implemented via array_out/array_in rather than any more
> direct method, and those are marked stable because they potentially
> invoke non-immutable element I/O functions.
>
>                        regards, tom lane

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

Предыдущее
От: Frank Lanitz
Дата:
Сообщение: Re: How to configure the connection timeout in PostgreSQL 8.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Why is cast array integer[] <--> text[] is not immutable.