pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Natalie Wenz <nataliewenz@ebureau.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Database 'template1' vacuum
Date: Tue, 26 Jul 2016 13:08:52 -0500
Message-ID: <95F2FD17-7813-4718-B99F-165B177EA6E9@ebureau.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi!

I've encountered something I've never seen before, and I am hoping someone can help me understand what's going on behind the scenes with this vacuum/xid behavior.

ERROR:  database is not accepting commands to avoid wraparound data loss in database "template1"

This error popped up right after I restarted a database that had just finished running a vacuum freeze in single user mode for the postgres database (the only database we use).
(That was in response to: ERROR:  database is not accepting commands to avoid wraparound data loss in database "postgres")

I'm confused about the need to vacuum template1. All of our activity is in the database named postgres. Do all of the databases share the same set of xids? If they do, why would the single user backend vacuum not handle all of the databases at once? If all databases don't share the same set of xids, then what could be going on internally to cause template1 to run through so many xids?

(This is running on 9.5.3, if that makes a difference.)

Thanks!

Natalie

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

Message-ID: <95F2FD17-7813-4718-B99F-165B177EA6E9@ebureau.com>
Permalink:  ../95F2FD17-7813-4718-B99F-165B177EA6E9@ebureau.com/
Also on:    postgresql.org/message-id/95F2FD17-7813-4718-B99F-165B177EA6E9@ebureau.com

 · 

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: nataliewenz@ebureau.com
  Subject: Re: Database 'template1' vacuum
  In-Reply-To: <95F2FD17-7813-4718-B99F-165B177EA6E9@ebureau.com>
  References: <95F2FD17-7813-4718-B99F-165B177EA6E9@ebureau.com>

* 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