pgsql: Fix volatile vs. pointer confusion

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix volatile vs. pointer confusion
Дата
Msg-id E1h4hkt-0006Nw-Hm@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix volatile vs. pointer confusion

Variables used after a longjmp() need to be declared volatile.  In
case of a pointer, it's the pointer itself that needs to be declared
volatile, not the pointed-to value.  So we need

    PyObject *volatile items;

instead of

    volatile PyObject *items;  /* wrong */

Discussion: https://www.postgresql.org/message-id/flat/f747368d-9e1a-c46a-ac76-3c27da32e8e4%402ndquadrant.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c77f21899ac2bd85d9d30d2dbf60904498ebee2f

Modified Files
--------------
contrib/hstore_plpython/hstore_plpython.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix typo related to to_tsvector() in tests of json and jsonb
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add walreceiver API to get remote server version