Re: Cast in PG 8.3

Поиск
Список
Период
Сортировка
От Volkan YAZICI
Тема Re: Cast in PG 8.3
Дата
Msg-id 87d4rbm3is.fsf@ttmail.com
обсуждение исходный текст
Ответ на Cast in PG 8.3  (Franklin Haut <franklin.haut@gmail.com>)
Ответы Multiple postgresql functions in a single transaction  ("Jyoti Seth" <jyotiseth2001@gmail.com>)
Список pgsql-sql
Franklin Haut <franklin.haut@gmail.com> writes:
> I Tries  create a cast but the function text doesn't exist more in PG 8.3

sql-createcast.html tells that
 "It is normally not necessary to create casts between user-defined types and the standard string types (text, varchar,
andchar(n)). PostgreSQL will automatically handle a cast to a string type by invoking the other type's output function,
..."

Therefore, this might help you:

test=# SELECT typoutput FROM pg_type WHERE typname = 'int4';typoutput
-----------int4out
(1 row)


Regards.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Negative numbers for PK/ID's?
Следующее
От: "Jyoti Seth"
Дата:
Сообщение: Multiple postgresql functions in a single transaction