From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Thomas Eckestad <thomas(dot)eckestad(at)gmail(dot)com> |
Cc: | pgsql-bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE |
Date: | 2012-11-02 17:42:06 |
Message-ID: | 896.1351878126@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Thomas Eckestad <thomas(dot)eckestad(at)gmail(dot)com> writes:
> 2012/11/1 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Lake | 2012-11-02 18:42:26 | Re: BUG #7638: postgresql taking up all my hard drive space |
Previous Message | gryphonsegg | 2012-11-02 17:22:29 | BUG #7638: postgresql taking up all my hard drive space |