pgsql: Fix instance of elog() called while holding a spinlock - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix instance of elog() called while holding a spinlock
Date
Msg-id E1jgeaQ-0003WA-82@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix instance of elog() called while holding a spinlock

This broke the project rule to not call any complex code while a
spinlock is held.  Issue introduced by b89e151.

Discussion: https://postgr.es/m/20200602.161518.1399689010416646074.horikyota.ntt@gmail.com
Backpatch-through: 9.5

Branch
------
master

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

Modified Files
--------------
src/backend/replication/logical/logical.c | 24 ++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Don't call palloc() while holding a spinlock, either.
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix comment in be-secure-openssl.c