pgsql: Recompute stack base in forked postmaster children. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Recompute stack base in forked postmaster children.
Date
Msg-id E1jLGvn-0002WO-Pa@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Recompute stack base in forked postmaster children.

This is for the benefit of running postgres under the rr
debugger. When using rr signal handlers running while a syscall is
active use an alternative stack. As e.g. bgworkers are started from
within signal handlers, the forked backend then has a different stack
base than postmaster. Previously that subsequently lead to those
processes triggering spurious "stack depth limit exceeded" errors.

Discussion: https://postgr.es/m/20200327182217.ubrrl32lyfhxfwk5@alap3.anarazel.de

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/postmaster.c | 5 -----
src/backend/utils/init/miscinit.c   | 9 +++++++++
2 files changed, 9 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Use TransactionXmin instead of RecentGlobalXmin in heap_abort_sp
Next
From: Michael Paquier
Date:
Subject: pgsql: Preserve clustered index after rewrites with ALTER TABLE