pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Васильев Дмитрий <d.vasilyev@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Performance degradation in commit ac1d794
Date: Sat, 26 Dec 2015 11:06:37 -0500
Message-ID: <23259.1451145997@sss.pgh.pa.us> (raw)
In-Reply-To: <20151226121114.x3mh4v33flkxnqgl@alap3.anarazel.de>
References: <EA5F5A26-2E66-4CAB-B3EC-EAD65501B74B@anarazel.de>
	<CAB-SwXZ+6==ZmGvME9vKtUExaQuYYf6oRUNBjkg5SYqv267dUQ@mail.gmail.com>
	<9F7A592C-323B-40CF-AEB6-20D28EAEFFDD@anarazel.de>
	<CAB-SwXb1p6W-_Qrd=h=c47Tv1DuWJwLYNWyq8j9g2yRp4ye-BQ@mail.gmail.com>
	<19322.1451067023@sss.pgh.pa.us>
	<CEAB3A3D-FD33-4AB9-BDD3-FC0E20776245@anarazel.de>
	<19834.1451068135@sss.pgh.pa.us>
	<20151225211326.z4umuafvv27nczya@alap3.anarazel.de>
	<24833.1451078993@sss.pgh.pa.us>
	<20151226112248.uv3qxmroe4va7wke@alap3.anarazel.de>
	<20151226121114.x3mh4v33flkxnqgl@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@anarazel.de> writes:
> A unportable and easy version of this, actually making sense this time,
> would be to use prctl(PR_SET_PDEATHSIG, SIGQUIT). That'd send SIGQUIT to
> backends whenever postmaster dies.  Obviously that's not portable
> either - doing this for linux only wouldn't be all that kludgey tho.

Hmm.  That would have semantics rather substantially different from
the way that the WL_POSTMASTER_DEATH code behaves.  But I don't know
how much we care about that, since the whole scenario is something
that should not happen under normal circumstances.  Maybe cross-platform
variation is OK as long as it doesn't make the code too hairy.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (93+ messages)  latest in thread

Message-ID: <23259.1451145997@sss.pgh.pa.us>
Permalink:  ../23259.1451145997@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23259.1451145997@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, d.vasilyev@postgrespro.ru
  Subject: Re: Performance degradation in commit ac1d794
  In-Reply-To: <23259.1451145997@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox