pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Alexander Shutyaev <shutyaev@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_upgrade and wraparound
Date: Sun, 10 Jun 2018 17:15:56 -0700
Message-ID: <bf972d20-62df-64a8-4683-e88c05a2875e@aklaver.com> (raw)
In-Reply-To: <CAGBp8g_VhOOYXT8iBK7Db4LdLv=xLAtzvD7BJ26P0uz7JHHh7w@mail.gmail.com>
References: <CAGBp8g_=Zxfiny8pa8sOb7pDxjzSGmcTBAJGYUrOJ6TDK9+nyQ@mail.gmail.com>
	<107c7c17-2e53-6cd1-1dbd-94d63f7a205f@aklaver.com>
	<9825.1528573946@sss.pgh.pa.us>
	<1528663590828-0.post@n3.nabble.com>
	<bc010ee6-4183-b11d-e401-33b5d67ed8fe@aklaver.com>
	<CAGBp8g8oQz+iwjeXunQaKrAekjmDbxPXLffjTRsSWmwFgJ=2=Q@mail.gmail.com>
	<CAGBp8g-urWCpyMQVPzvDt9xo0E-DCmEasq1j0B5mOcvyK4JWWg@mail.gmail.com>
	<8b14df48-20e9-3dd0-9990-7131f95bd30a@aklaver.com>
	<CAGBp8g_VhOOYXT8iBK7Db4LdLv=xLAtzvD7BJ26P0uz7JHHh7w@mail.gmail.com>

On 06/10/2018 02:45 PM, Alexander Shutyaev wrote:

Comments inline.

> The error log is like this. Here's its tail:

Is this the regular Postgres log or the pg_upgrade log which should be 
something like pg_upgrade_server.log?


> pg_restore: [archiver (db)] could not execute query: ERROR:  database is 
> not accepting commands to avoid wraparound data loss in database with OID 0
> HINT:  Stop the postmaster and vacuum that database in single-user mode.

How did you get into the 10 cluster to report on the database OID's and 
names?

> You might also need to commit or roll back old prepared transactions.
>      Command was: ALTER LARGE OBJECT 1740737402 OWNER TO bof_user;
> 
> Before that there is a lot of similar messages - the only things 
> chainging are the "executing BLOB nnn" number and "must be vacuumed 
> within nnn transactions" number.
> 

Which database has the large objects?

> As for the prepared transactions - no, I don't have them, our 
> application doesn't use this functionality.

Did you check this view to confirm?:

https://www.postgresql.org/docs/10/static/view-pg-prepared-xacts.html

Just trying to eliminate possibilities.



-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (30+ messages)  latest in thread

Message-ID: <bf972d20-62df-64a8-4683-e88c05a2875e@aklaver.com>
Permalink:  ../bf972d20-62df-64a8-4683-e88c05a2875e@aklaver.com/
Also on:    postgresql.org/message-id/bf972d20-62df-64a8-4683-e88c05a2875e@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, shutyaev@gmail.com
  Subject: Re: pg_upgrade and wraparound
  In-Reply-To: <bf972d20-62df-64a8-4683-e88c05a2875e@aklaver.com>
  References: <CAGBp8g_=Zxfiny8pa8sOb7pDxjzSGmcTBAJGYUrOJ6TDK9+nyQ@mail.gmail.com> <107c7c17-2e53-6cd1-1dbd-94d63f7a205f@aklaver.com> <9825.1528573946@sss.pgh.pa.us> <1528663590828-0.post@n3.nabble.com> <bc010ee6-4183-b11d-e401-33b5d67ed8fe@aklaver.com> <CAGBp8g8oQz+iwjeXunQaKrAekjmDbxPXLffjTRsSWmwFgJ=2=Q@mail.gmail.com> <CAGBp8g-urWCpyMQVPzvDt9xo0E-DCmEasq1j0B5mOcvyK4JWWg@mail.gmail.com> <8b14df48-20e9-3dd0-9990-7131f95bd30a@aklaver.com> <CAGBp8g_VhOOYXT8iBK7Db4LdLv=xLAtzvD7BJ26P0uz7JHHh7w@mail.gmail.com> <bf972d20-62df-64a8-4683-e88c05a2875e@aklaver.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