pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Shutting down warm standby server? "
3+ messages / 2 participants
[nested] [flat]

* Shutting down warm standby server? "
@ 2008-01-02 11:33  Glyn Astill <glynastill@yahoo.co.uk>
  0 siblings, 1 reply; 3+ messages in thread

From: Glyn Astill @ 2008-01-02 11:33 UTC (permalink / raw)
  To: pgsql-admin

Hi people,

I've setup a warm standby reading WAL files, however when I try to
shut it down I get the message "server does not shut down".

Can someone help please, I presume it has something to do with the
server being busy waiting for the next WAL file? What is the correct
way to shut down a server reading WALs?

The command line output is below:

postgres@way5c:/mnt/archive$ /usr/local/pgsql/bin/pg_ctl stop -D
/data/postgres/ -m smart
waiting for server to shut
down...............................................................
failed
pg_ctl: server does not shut down


If I do a ps -ax:

 7956 pts/0    S      0:00 /usr/local/pgsql/bin/postgres -D
/data/postgres/
 7957 ?        Ss     0:10 postgres: startup process
 7371 ?        S      0:00 /bin/bash /data/postgres/restore.sh
/mnt/archive/000000010000001A000000A8 pg_xlog/RECOVERYXLOG
 1160 ?        S      0:00 sleep 1
 1161 pts/0    R+     0:00 ps -ax

it looks like it's waikting for the next WAL file.


      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Shutting down warm standby server? "
@ 2008-01-02 16:31  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Glyn Astill <glynastill@yahoo.co.uk>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2008-01-02 16:31 UTC (permalink / raw)
  To: Glyn Astill <glynastill@yahoo.co.uk>; +Cc: pgsql-admin

Glyn Astill <glynastill@yahoo.co.uk> writes:
> I've setup a warm standby reading WAL files, however when I try to
> shut it down I get the message "server does not shut down".

> postgres@way5c:/mnt/archive$ /usr/local/pgsql/bin/pg_ctl stop -D
> /data/postgres/ -m smart
> waiting for server to shut
> down...............................................................
> failed
> pg_ctl: server does not shut down

Well, yeah, because you told it "-m smart" which is defined as "don't
exit until all work is done".  "-m fast" should work though, at least
in 8.2.x --- if you are using something older, try "-m immediate".

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Shutting down warm standby server? "
@ 2008-01-02 16:50  Glyn Astill <glynastill@yahoo.co.uk>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Glyn Astill @ 2008-01-02 16:50 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

Aha.. excellent, thanks Tom!

Sorry, I shall try to RTFM in the future.

--- Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Glyn Astill <glynastill@yahoo.co.uk> writes:
> > I've setup a warm standby reading WAL files, however when I try
> to
> > shut it down I get the message "server does not shut down".
> 
> > postgres@way5c:/mnt/archive$ /usr/local/pgsql/bin/pg_ctl stop -D
> > /data/postgres/ -m smart
> > waiting for server to shut
> >
> down...............................................................
> > failed
> > pg_ctl: server does not shut down
> 
> Well, yeah, because you told it "-m smart" which is defined as
> "don't
> exit until all work is done".  "-m fast" should work though, at
> least
> in 8.2.x --- if you are using something older, try "-m immediate".
> 
> 			regards, tom lane
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire
> to
>        choose an index scan if your joining column's datatypes do
> not
>        match
> 



      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2008-01-02 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-01-02 11:33 Shutting down warm standby server? " Glyn Astill <glynastill@yahoo.co.uk>
2008-01-02 16:31 ` Tom Lane <tgl@sss.pgh.pa.us>
2008-01-02 16:50   ` Glyn Astill <glynastill@yahoo.co.uk>

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