pgsql: Fix volatile-safety issue in dblink's materializeQueryResult().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix volatile-safety issue in dblink's materializeQueryResult().
Дата
Msg-id E1YFq6f-0000tD-F7@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Re-enable abbreviated keys on Windows.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix volatile-safety issue in dblink's materializeQueryResult().