Skip site navigation (1) Skip section navigation (2)

Re: How to tell if server is in backup mode?

From: Gabriele Bartolini <gabriele(dot)bartolini(at)2ndQuadrant(dot)it>
To: Toby Corkindale <toby(dot)corkindale(at)strategicdata(dot)com(dot)au>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to tell if server is in backup mode?
Date: 2012-03-29 08:46:13
Message-ID: 4F742155.8050000@2ndQuadrant.it (view raw or flat)
Thread:
Lists: pgsql-general
Hi Toby,

Il 28/03/12 09:14, Toby Corkindale ha scritto:
> Is there any function like pg_is_in_backup() to tell if the mode has 
> been enabled?

Currently, there's no such a function. In general we simply check if a 
'backup_label' file exists in PGDATA. However, it could be a good idea 
to add it as admin function (I will have a think about it and possibly 
come up with a patch).

Ciao,
Gabriele

-- 
  Gabriele Bartolini - 2ndQuadrant Italia
  PostgreSQL Training, Services and Support
  gabriele(dot)bartolini(at)2ndQuadrant(dot)it | www.2ndQuadrant.it


In response to

Responses

pgsql-general by date

Next:From: Albe LaurenzDate: 2012-03-29 08:49:20
Subject: Re: PG Log
Previous:From: Albe LaurenzDate: 2012-03-29 08:24:28
Subject: Re: Query regarding submission on To Do item for psql client "psql : Allow processing of multiple -f (file) options "

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group