[HACKERS] cast result of copyNode()

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема [HACKERS] cast result of copyNode()
Дата
Msg-id f2ee97b0-ab68-dd46-d061-2841be438467@2ndquadrant.com
обсуждение исходный текст
Ответы Re: [HACKERS] cast result of copyNode()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
In order to reduce the number of useless casts and make the useful casts
more interesting, here is a patch that automatically casts the result of
copyNode() back to the input type, if the compiler supports something
like typeof(), which most current compilers appear to.  That gets us
some more type safety and we only need to retain the casts that actually
do change the type.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: [HACKERS] use strict in all Perl programs
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] sequence data type