pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Matthew Tice <mjtice@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: datfrozenxid not dropping after vacuum
Date: Thu, 2 Sep 2021 09:13:39 -0400
Message-ID: <202109021313.ciqv7wutrdo6@alvherre.pgsql> (raw)
In-Reply-To: <CA+taBv9kNz-Boi8Zvp4REc+1w8k00EGbSC6j3ATOUWeV5SdPcA@mail.gmail.com>

On 2021-Sep-01, Matthew Tice wrote:

> Hi Alvaro, thanks for the quick reply.

Hi. Glad to hear that your problem is now behind.

> I'm scheduled to do my patching maintenance at the end of this month -
> but at this point I don't think I'm going to make it.
> 
> Other than patching, is there a work around?

Hm, in my previous reply I had written a suggestion to vacuum
pg_database in the offending database after deleting the
pg_internal.init file, but evidently I edited it out before sending.
(Probably because I wasn't sure if you need to delete file, connect,
vacuum, or rather connect, delete file, vacuum.)

> For example, in #2 above:
> >The fix for 2) is simpler,
> >    simply always remove both the shared and local init files.
> 
> I'm not familiar with the differences between 'shared' and 'local'
> init files (I'd imagine I referenced a 'local' file in my original
> post)?

The global file is in the global/ subdirectory of the data directory,
and the "local" ones are each in the corresponding database directory:

cd $PGDATA
$ find . -name pg_internal.init
./base/12758/pg_internal.init
./base/46212/pg_internal.init
./global/pg_internal.init

$ psql -c "select oid, datname from pg_database"
  oid  |  datname   
-------+------------
 12757 | postgres
 12758 | alvherre
     1 | template1
 12756 | template0
 46212 | regression
(5 filas)

So in the above there are cache files for databases regression and
alvherre, plus the global one.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Hay dos momentos en la vida de un hombre en los que no debería
especular: cuando puede permitírselo y cuando no puede" (Mark Twain)





view thread (5+ messages)

Message-ID: <202109021313.ciqv7wutrdo6@alvherre.pgsql>
Permalink:  ../202109021313.ciqv7wutrdo6@alvherre.pgsql/
Also on:    postgresql.org/message-id/202109021313.ciqv7wutrdo6@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, mjtice@gmail.com
  Subject: Re: datfrozenxid not dropping after vacuum
  In-Reply-To: <202109021313.ciqv7wutrdo6@alvherre.pgsql>
  References: <CA+taBv9kNz-Boi8Zvp4REc+1w8k00EGbSC6j3ATOUWeV5SdPcA@mail.gmail.com> <202109021313.ciqv7wutrdo6@alvherre.pgsql>

* 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