Re: src/tools/pginclude considered harmful (was Re: [PATCHES] toast index entries again)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Kris Jurka <books(at)ejurka(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: src/tools/pginclude considered harmful (was Re: [PATCHES] toast index entries again)
Date: 2006-07-15 00:33:16
Message-ID: 5857.1152923596@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Neil Conway <neilc(at)samurai(dot)com> writes:
> On Fri, 2006-07-14 at 14:20 -0400, Tom Lane wrote:
>> I would like to propose that we revert all the include-related changes
>> of the past two days, and that src/tools/pginclude be removed from the
>> CVS tree, until such time as it is rewritten to be much smarter about
>> what it is doing.

> Rather than reverting the changes in CVS and then redoing them
> correctly, perhaps we could make the necessary improvements to the
> tools, apply the improved tools to the pre-cleaned-up version of the
> tree, get a diff against HEAD, and then apply any fixes the improved
> tools have made as a patch. That would avoid cluttering CVS with two
> redundant changes to almost every single source file in the tree.

I've calmed down a little and am no longer wanting to insist on
reversion. My little Perl script is turning over and has found a number
of issues besides the original TOAST_INDEX_HACK one; some of them may
have been there before, so I'm thinking I'm going to add it to src/tools
rather than just treat it as a one-shot.

We still have the issue of how Bruce managed to miss undeclared-function
warnings in some files. I'm concerned that that problem may remain for
some platforms or option combinations. Is there a way to get the
buildfarm to highlight compiler warnings?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-07-15 01:05:22 Re: src/tools/pginclude considered harmful (was Re:
Previous Message Florian G. Pflug 2006-07-14 23:55:27 Re: Forcing wal rotation

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-07-15 01:05:22 Re: src/tools/pginclude considered harmful (was Re:
Previous Message Neil Conway 2006-07-14 23:19:04 Re: src/tools/pginclude considered harmful (was Re: