pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Avoid re-using output variables in new ecpg test case. 2+ messages / 1 participants [nested] [flat]
* pgsql: Avoid re-using output variables in new ecpg test case. @ 2020-11-07 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2020-11-07 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/eed4356fad84b0fd6e3caa49c7006f401159ac9a 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Avoid re-using output variables in new ecpg test case. @ 2020-11-07 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2020-11-07 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-11-07 21:25 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-11-07 21:25 pgsql: Avoid re-using output variables in new ecpg test case. Tom Lane <tgl@sss.pgh.pa.us> 2020-11-07 21:25 pgsql: Avoid re-using output variables in new ecpg test case. Tom Lane <tgl@sss.pgh.pa.us>
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