From: Pavel Stehule <pavel.stehule@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Add missing support for new node fields
Date: Tue, 21 Mar 2017 17:19:40 +0100
Message-ID: <CAFj8pRDF-dwq4YhYdAzYd-s6hC4eHgDxcoSGFqSSmkki9BVWwg@mail.gmail.com> (raw)
In-Reply-To: <CA+TgmoYG7FDtpxcwFosALRZFnzcF5+Gs7=aEr60gC-fHFRvhMQ@mail.gmail.com>
References: <E1cq93r-0004ey-Mp@gemulon.postgresql.org>
<alpine.DEB.2.20.1703210716370.22282@lancre>
<20170321062850.koa557zw3gqyl4lm@alap3.anarazel.de>
<31303.1490108173@sss.pgh.pa.us>
<CA+TgmoYG7FDtpxcwFosALRZFnzcF5+Gs7=aEr60gC-fHFRvhMQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
>
> IMHO, what would be a lot more useful than something that generates
> {read,equal,copy,out}funcs.c automatically would be something that
> just checks them for trivial errors of omission. For example, if you
> read a list of structure members from the appropriate header files and
> cross-checked it against the list of structure members mentioned in
> the body of a copy/equal/read/outfunc, you'd catch probably 80% of the
> mistakes people make right there. If you could also check for a
> copy/read/equal/outfunc that ought to have been present but was
> omitted entirely, that'd probably up it to 90%.
>
>
+1
The work on nodes maintenance is not too much, but some smart check can be
nice.
Regards
Pavel
> The idea would be that if you added a field that wasn't supposed to be
> copied, you'd have to add something to copyfuncs.c that said, e.g.
>
> /* NOTCOPIED: mymember */
>
> ...and the checking script would ignore things so flagged.
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: pavel.stehule@gmail.com, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, andres@anarazel.de, coelho@cri.ensmp.fr, andrew@dunslane.net, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Add missing support for new node fields
In-Reply-To: <CAFj8pRDF-dwq4YhYdAzYd-s6hC4eHgDxcoSGFqSSmkki9BVWwg@mail.gmail.com>
References: <E1cq93r-0004ey-Mp@gemulon.postgresql.org> <alpine.DEB.2.20.1703210716370.22282@lancre> <20170321062850.koa557zw3gqyl4lm@alap3.anarazel.de> <31303.1490108173@sss.pgh.pa.us> <CA+TgmoYG7FDtpxcwFosALRZFnzcF5+Gs7=aEr60gC-fHFRvhMQ@mail.gmail.com> <CAFj8pRDF-dwq4YhYdAzYd-s6hC4eHgDxcoSGFqSSmkki9BVWwg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox