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: transactoin id wraparound problem
Date: Wed, 6 Sep 2006 13:31:02 -0400
Message-ID: <20060906173101.GG362@phlogiston.dyndns.org> (raw)
In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF05ABC7EA@ca-mail1.cis.local>
References: <6992E470F12A444BB787B5C937B9D4DF05ABC7EA@ca-mail1.cis.local>

On Wed, Sep 06, 2006 at 06:53:28AM -0700, Sriram Dandapani wrote:
> Do you mean that I login as say root and issue a vacuumdb (or do I login
> as a postgres user with special privileges)

Probably you want 

 vacuumdb -U postgres -a

The -a tells it to do all databases, and the -U postgres tells it to
connect as the postgresql superuser.  If your superuser is something
other than postgres (sometimes it is -- pgsql for instance -- but
rarely), you should use that username instead.  This is the
_database_ user name, not the UNIX username (which is what root would
be).  You'll need the (postgresql) password for the account in
question to do this.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
In the future this spectacle of the middle classes shocking the avant-
garde will probably become the textbook definition of Postmodernism. 
                --Brad Holland



view thread (27+ messages)  latest in thread

Message-ID: <20060906173101.GG362@phlogiston.dyndns.org>
Permalink:  ../20060906173101.GG362@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20060906173101.GG362@phlogiston.dyndns.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: ajs@crankycanuck.ca
  Subject: Re: transactoin id wraparound problem
  In-Reply-To: <20060906173101.GG362@phlogiston.dyndns.org>
  References: <6992E470F12A444BB787B5C937B9D4DF05ABC7EA@ca-mail1.cis.local> <20060906173101.GG362@phlogiston.dyndns.org>

* 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