pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laszlo Nagy <gandalf@shopzeus.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-admin@postgresql.org
Subject: Re: rebellious pg stats collector (reopened case)
Date: Tue, 30 Dec 2008 14:17:01 +0100
Message-ID: <495A1F4D.6050205@shopzeus.com> (raw)
In-Reply-To: <7721.1230564393@sss.pgh.pa.us>
References: <49479876.8040607@shopzeus.com>
	<20081216134542.GH4741@alvh.no-ip.org>
	<494B614C.5060808@shopzeus.com>
	<20081219130446.GC4278@alvh.no-ip.org>
	<494F67D2.3090406@shopzeus.com>
	<6938.1229952228@sss.pgh.pa.us>
	<20081222132721.GC10220@alvh.no-ip.org>
	<7117.1229952970@sss.pgh.pa.us>
	<4958851B.8060500@shopzeus.com>
	<7721.1230564393@sss.pgh.pa.us>


> alive".  Otherwise you'll have trouble with the collector not stopping
> when you want it to.  Look into src/backend/storage/ipc/pmsignal.c:
>
> -		return (getppid() == PostmasterPid);
> +		return (getppid() != 1);
>
> (Obviously this is a hack, but it should work on any Unixish system)
>   
Thanks. I'm going to try this next weekend (when nobody works on the 
database) and come back with the results.



view thread (16+ messages)

Message-ID: <495A1F4D.6050205@shopzeus.com>
Permalink:  ../495A1F4D.6050205@shopzeus.com/
Also on:    postgresql.org/message-id/495A1F4D.6050205@shopzeus.com

 · 

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-performance@postgresql.org
  Cc: gandalf@shopzeus.com, tgl@sss.pgh.pa.us, pgsql-admin@postgresql.org
  Subject: Re: rebellious pg stats collector (reopened case)
  In-Reply-To: <495A1F4D.6050205@shopzeus.com>

* 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