Re: util/int8.h: missing int8_text() function

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: util/int8.h: missing int8_text() function
Дата
Msg-id 20080416132741.GB4352@alvh.no-ip.org
обсуждение исходный текст
Ответ на util/int8.h: missing int8_text() function  (Michael Enke <michael.enke@wincor-nixdorf.com>)
Ответы Re: util/int8.h: missing int8_text() function
Список pgsql-general
Michael Enke wrote:
> Hi all,
> I migrate from 8.1 to 8.3.
> In 8.2.7 and previous there are functions int4_text() and int8_text(),
> in 8.3.0 they are missing (not documented that they are removed in the release notes).
> What I'm supposed to use instead of int8_text() now?
> (I use my own datatype which is similar to varchar/text
>  and for a  CREATE CAST (int8 as myType) WITH FUNCTION myFunction(int8) AS ASSIGNMENT;
>  I call the int8_text() function.)

IIRC the casts now use the type's output function.  I'm guessing you
should be able to do the same with your type.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Rodrigo Gonzalez
Дата:
Сообщение: Re: Master-master replication with PostgreSQL
Следующее
От: "Rob Collins"
Дата:
Сообщение: Re: Master-master replication with PostgreSQL