pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix unsafe coding in ReorderBufferCommit(). 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix unsafe coding in ReorderBufferCommit(). @ 2015-01-24 18:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2015-01-24 18:25 UTC (permalink / raw) To: pgsql-committers Fix unsafe coding in ReorderBufferCommit(). "iterstate" must be marked volatile since it's changed inside the PG_TRY block and then used in the PG_CATCH stanza. Noted by Mark Wilding of Salesforce. (We really need to see if we can't get the C compiler to warn about this.) Also, reset iterstate to NULL after the mainline ReorderBufferIterTXNFinish call, to ensure the PG_CATCH block doesn't try to do that a second time. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/f8a4dd2e141a12e349882edecc683504acb82ec8 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix unsafe coding in ReorderBufferCommit(). @ 2015-01-24 18:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2015-01-24 18:25 UTC (permalink / raw) To: pgsql-committers Fix unsafe coding in ReorderBufferCommit(). "iterstate" must be marked volatile since it's changed inside the PG_TRY block and then used in the PG_CATCH stanza. Noted by Mark Wilding of Salesforce. (We really need to see if we can't get the C compiler to warn about this.) Also, reset iterstate to NULL after the mainline ReorderBufferIterTXNFinish call, to ensure the PG_CATCH block doesn't try to do that a second time. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/91964c3ed1c49d9a8670d3f85a660181cc541c7c Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-01-24 18:25 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-01-24 18:25 pgsql: Fix unsafe coding in ReorderBufferCommit(). Tom Lane <tgl@sss.pgh.pa.us> 2015-01-24 18:25 pgsql: Fix unsafe coding in ReorderBufferCommit(). 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