pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). @ 2015-01-26 20:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-01-26 20:17 UTC (permalink / raw) To: pgsql-committers Fix volatile-safety issue in dblink's materializeQueryResult(). Some fields of the sinfo struct are modified within PG_TRY and then referenced within PG_CATCH, so as with recent patch to async.c, "volatile" is necessary for strict POSIX compliance; and that propagates to a couple of subroutines as well as materializeQueryResult() itself. I think the risk of actual issues here is probably higher than in async.c, because storeQueryResult() is likely to get inlined into materializeQueryResult(), leaving the compiler free to conclude that its stores into sinfo fields are dead code. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e4021a2ba647e61340b096d49b1a657eeafdc617 Modified Files -------------- contrib/dblink/dblink.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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] 4+ messages in thread
* pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). @ 2015-01-26 20:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-01-26 20:17 UTC (permalink / raw) To: pgsql-committers Fix volatile-safety issue in dblink's materializeQueryResult(). Some fields of the sinfo struct are modified within PG_TRY and then referenced within PG_CATCH, so as with recent patch to async.c, "volatile" is necessary for strict POSIX compliance; and that propagates to a couple of subroutines as well as materializeQueryResult() itself. I think the risk of actual issues here is probably higher than in async.c, because storeQueryResult() is likely to get inlined into materializeQueryResult(), leaving the compiler free to conclude that its stores into sinfo fields are dead code. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8abd0e2a9cf191f51caebe8e38c38027f6954ddc Modified Files -------------- contrib/dblink/dblink.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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] 4+ messages in thread
* pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). @ 2015-01-26 20:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-01-26 20:17 UTC (permalink / raw) To: pgsql-committers Fix volatile-safety issue in dblink's materializeQueryResult(). Some fields of the sinfo struct are modified within PG_TRY and then referenced within PG_CATCH, so as with recent patch to async.c, "volatile" is necessary for strict POSIX compliance; and that propagates to a couple of subroutines as well as materializeQueryResult() itself. I think the risk of actual issues here is probably higher than in async.c, because storeQueryResult() is likely to get inlined into materializeQueryResult(), leaving the compiler free to conclude that its stores into sinfo fields are dead code. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e50e2e08232426f235a7dd7be078cd617be9202a Modified Files -------------- contrib/dblink/dblink.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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] 4+ messages in thread
* pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). @ 2015-01-26 20:17 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-01-26 20:17 UTC (permalink / raw) To: pgsql-committers Fix volatile-safety issue in dblink's materializeQueryResult(). Some fields of the sinfo struct are modified within PG_TRY and then referenced within PG_CATCH, so as with recent patch to async.c, "volatile" is necessary for strict POSIX compliance; and that propagates to a couple of subroutines as well as materializeQueryResult() itself. I think the risk of actual issues here is probably higher than in async.c, because storeQueryResult() is likely to get inlined into materializeQueryResult(), leaving the compiler free to conclude that its stores into sinfo fields are dead code. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/dabda6415287bb8991c569036c1f5b57be62a58f Modified Files -------------- contrib/dblink/dblink.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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] 4+ messages in thread
end of thread, other threads:[~2015-01-26 20:17 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-01-26 20:17 pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). Tom Lane <tgl@sss.pgh.pa.us> 2015-01-26 20:17 pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). Tom Lane <tgl@sss.pgh.pa.us> 2015-01-26 20:17 pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). Tom Lane <tgl@sss.pgh.pa.us> 2015-01-26 20:17 pgsql: Fix volatile-safety issue in dblink's materializeQueryResult(). 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