Re: [PATCHES] Another VPATH patch for ecpg - Mailing list pgsql-hackers

From Joachim Wieland
Subject Re: [PATCHES] Another VPATH patch for ecpg
Date
Msg-id 20060828210325.GC2826@mcknight.de
Whole thread Raw
In response to Re: [PATCHES] Another VPATH patch for ecpg  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] Another VPATH patch for ecpg
List pgsql-hackers
On Mon, Aug 28, 2006 at 12:16:40PM -0400, Tom Lane wrote:
> 122c122
> < #line 36 "show.pgc"

> AFAICS there is no very good way to deal with this.  I'd suggest
> providing a way to suppress #line output from the ecpg preprocessor,
> but perhaps there is another answer.

What about changing those lines before diffing the files? This is already
done for different default port settings in order to keep output files in
sync.

I append a small (untested) patch against pg_regress.sh.

Unfortunately, lines like this one in a non-VPATH build:

#line 1 "./../../include/sql3types.h"

would get stripped to `#line 1 "sql3types.h"' as well but I think this is
acceptable.


Joachim

--
Joachim Wieland                                              joe@mcknight.de
                                                           GPG key available

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: autovacuum causing numerous regression-test failures
Next
From: Tom Lane
Date:
Subject: Re: tsvector/tsearch equality and/or portability issue