pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-admin@postgresql.org
Subject: Re: pg_ctl reload query
Date: Thu, 21 Feb 2008 12:02:44 -0500
Message-ID: <20080221170244.GL17293@crankycanuck.ca> (raw)
In-Reply-To: <47BD0C94.7010208@internode.com.au>
References: <47BD0C94.7010208@internode.com.au>

On Thu, Feb 21, 2008 at 04:01:00PM +1030, Shilpa Sudhakar wrote:
> Hi All,
> 
> Wanted to know what does pg_ctl do in the background when we run *pg_ctl 
> -D datadir reload *

It sends a SIGHUP to the back end.
 
> command. Generally, it just reloads the files and everything works fine.
> But strangely, last time when we ran the reload command and tried to 
> access *psql dbname, *
> It gives a message *"database shutting down" *

Are you sure you didn't issue "restart" instead?  It's an easy enough
mistake to make.

A



view thread (3+ messages)  latest in thread

Message-ID: <20080221170244.GL17293@crankycanuck.ca>
Permalink:  ../20080221170244.GL17293@crankycanuck.ca/
Also on:    postgresql.org/message-id/20080221170244.GL17293@crankycanuck.ca

 · 

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: ajs@crankycanuck.ca
  Subject: Re: pg_ctl reload query
  In-Reply-To: <20080221170244.GL17293@crankycanuck.ca>

* 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