pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: kjonca@o2.pl
To: pgsql-admin@postgresql.org
Subject: database role for backups?
Date: Tue, 07 May 2013 04:38:39 +0200
Message-ID: <87sj1zldjk.fsf@alfa.kjonca> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


I tried to create make backup my postrgresql cluster with amanda.
And I had to create database superuser. 

I tried to create no-superuser role with only "replication" privillege,
but after run backup I got:

--8<---------------cut here---------------start------------->8---
2013-05-06 13:33:02 CEST ERROR:  must be superuser to switch transaction log files
2013-05-06 13:33:02 CEST STATEMENT:  SELECT file_name from pg_xlogfile_name_offset(pg_switch_xlog())
--8<---------------cut here---------------end--------------->8---

So my question is:
Can I establish postgresql role which is _not_ superuser and can execute
above statement?
KJ

PS. does news.postgresql.org work? I got 'unknown host'


-- 
http://blogdebart.pl/2012/06/24/hiena/
Pauca sed matura.
	[Few but excellent.]
		-- Gauss


-- 
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 (3+ messages)  latest in thread

Message-ID: <87sj1zldjk.fsf@alfa.kjonca>
Permalink:  ../87sj1zldjk.fsf@alfa.kjonca/
Also on:    postgresql.org/message-id/87sj1zldjk.fsf@alfa.kjonca

 · 

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: kjonca@o2.pl
  Subject: Re: database role for backups?
  In-Reply-To: <87sj1zldjk.fsf@alfa.kjonca>

* 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