From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | cast result of copyNode() |
Date: | 2016-12-31 06:18:04 |
Message-ID: | f2ee97b0-ab68-dd46-d061-2841be438467@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
Attachment | Content-Type | Size |
---|---|---|
0001-Cast-result-of-copyObject-to-correct-type.patch | text/x-patch | 39.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2016-12-31 06:27:39 | Re: sequence data type |
Previous Message | Peter Eisentraut | 2016-12-31 06:07:02 | use strict in all Perl programs |