Re: elog.c query_id support vs shutdown - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: elog.c query_id support vs shutdown
Date
Msg-id 20210808060258.6u3pkkemyasijw4h@nol
Whole thread Raw
In response to Re: elog.c query_id support vs shutdown  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-hackers
On Sun, Aug 08, 2021 at 01:46:39PM +0800, Julien Rouhaud wrote:
> On Sat, Aug 07, 2021 at 04:44:07PM -0700, Andres Freund wrote:
> > 
> > As currently implemented those pgstat_get_my_query_id() calls are not
> > safe. It's fine during backend startup because MyBEEntry is not set, but
> > during shutdown that's not ok, because we never unset MyBEEntry.
> > 
> > andres@awork3:~/src/postgresql$ /home/andres/build/postgres/dev-assert/vpath/src/backend/postgres --single postgres
-D/srv/dev/pgdev-dev/ -c 'log_line_prefix=%Q' -c log_min_messages=debug1
 
> > [...]
> > PostgreSQL stand-alone backend 15devel
> > backend> 0NOTICE:  shutting down
> > 0DEBUG:  performing replication slot checkpoint
> > Segmentation fault
> 
FTR I just added an open item for that.



pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: elog.c query_id support vs shutdown
Next
From: Peter Smith
Date:
Subject: Re: row filtering for logical replication