From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Eckestad <thomas.eckestad@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE
Date: Fri, 02 Nov 2012 13:42:06 -0400
Message-ID: <896.1351878126@sss.pgh.pa.us> (raw)
In-Reply-To: <CACOF0bzVmKQuPV9n+6b8YRVj57OmyycYBwTPbOUxd_u5UGprNw@mail.gmail.com>
References: <E1TTpf4-0007Y5-Vh@wrigleys.postgresql.org>
<4225.1351794039@sss.pgh.pa.us>
<CACOF0bzVmKQuPV9n+6b8YRVj57OmyycYBwTPbOUxd_u5UGprNw@mail.gmail.com>
Thomas Eckestad <thomas.eckestad@gmail.com> writes:
> 2012/11/1 Tom Lane <tgl@sss.pgh.pa.us>
>> That is extremely peculiar --- AFAICS, 9.1 should never assign a
>> relfilenode of 12693.
> I am afraid that I can not guarantee that the example that I posted
> (global/12693) was triggered with version 9.1.6. It might be for 9.0.x or
> 9.1.x, if that makes a difference. I am sure though that global/12589 was
> triggered using 9.1.5 (upgraded to 9.1.6 just a few days ago).
I realized that these numbers are actually quite a lot more
platform-specific than I'd been thinking, since in 9.1 they will vary
depending on how many OIDs got consumed for pg_collation entries,
and that will depend not only on your operating system but how many
locales you've seen fit to install. So I'm probably wrong to have
guessed that this might represent a mistaken access to a relfilenode
that never should have existed.
What I'd suggest doing is monitoring the output of this query:
select relname, pg_relation_filenode(oid) from pg_class where relisshared;
which will tell you what filenames *ought* to be present in
$PGDATA/global, and then when something goes missing it'll be possible
to figure out which table or index it was. That might provide at least
the first clue what's wrong.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, thomas.eckestad@gmail.com
Subject: Re: BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE
In-Reply-To: <896.1351878126@sss.pgh.pa.us>
References: <E1TTpf4-0007Y5-Vh@wrigleys.postgresql.org> <4225.1351794039@sss.pgh.pa.us> <CACOF0bzVmKQuPV9n+6b8YRVj57OmyycYBwTPbOUxd_u5UGprNw@mail.gmail.com> <896.1351878126@sss.pgh.pa.us>
* 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