pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jkilborn <jim.kilborn@swri.org>
To: pgsql-admin@postgresql.org
Subject: postgres not deleting trigger file
Date: Tue, 4 Aug 2015 05:46:37 -0700 (MST)
Message-ID: <1438692397419-5860795.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Im using postgres 9.4 with pgpool-II-94 and have streaming resplication setup
between two db servers. When I fail the primary db, pgpool creates the
/tmp/trigger_file, and the secondary server becomes the primary and is put
in read/write mode. However, the trigger file doesnt get deleted. I am not
sure where to debug why the trigger file doesnt get removed.

I have even tried using a recover_end_command to remove the trigger file,
but that doesnt seem to happen.

my failover script for pgpool creates the trigger file, then set it to chmod
777 so that postgres user can remove it. pgpool runs as root, while postgres
runs as postgres user.

Any ideas where to look on this issue of trigger file not being removed?





--
View this message in context: http://postgresql.nabble.com/postgres-not-deleting-trigger-file-tp5860795.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


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



view thread (5+ messages)  latest in thread

Message-ID: <1438692397419-5860795.post@n5.nabble.com>
Permalink:  ../1438692397419-5860795.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1438692397419-5860795.post@n5.nabble.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-admin@postgresql.org
  Cc: jim.kilborn@swri.org
  Subject: Re: postgres not deleting trigger file
  In-Reply-To: <1438692397419-5860795.post@n5.nabble.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