From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid re-using output variables in new ecpg test case.
Date: Sat, 07 Nov 2020 21:25:49 +0000
Message-ID: <E1kbViX-0005Z1-EK@gemulon.postgresql.org> (raw)
Avoid re-using output variables in new ecpg test case.
The buildfarm thinks this leads to memory stomps, though annoyingly
I can't duplicate that here. The existing code in strings.pgc is
doing something that doesn't seem to be sanctioned at all really
by the documentation, but I'm disinclined to try to make that nicer
right now. Let's just declare some more output variables in hopes
of working around it.
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/3459f4169ba9665fbc7965165ec4ef83170b748b
Modified Files
--------------
src/interfaces/ecpg/test/expected/preproc-strings.c | 10 ++++++----
src/interfaces/ecpg/test/expected/preproc-strings.stderr | 4 ++++
src/interfaces/ecpg/test/preproc/strings.h | 4 +++-
src/interfaces/ecpg/test/preproc/strings.pgc | 4 ++--
4 files changed, 15 insertions(+), 7 deletions(-)
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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Avoid re-using output variables in new ecpg test case.
In-Reply-To: <E1kbViX-0005Z1-EK@gemulon.postgresql.org>
References: <E1kbViX-0005Z1-EK@gemulon.postgresql.org>
* 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