[HACKERS] cast result of copyNode() - Mailing list pgsql-hackers

From Peter Eisentraut
Subject [HACKERS] cast result of copyNode()
Date
Msg-id f2ee97b0-ab68-dd46-d061-2841be438467@2ndquadrant.com
Whole thread Raw
Responses Re: [HACKERS] cast result of copyNode()  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: [HACKERS] use strict in all Perl programs
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] sequence data type