Re: BUG #12050: Orphaned base files

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jamie Koceniak <jkoceniak(at)mediamath(dot)com>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #12050: Orphaned base files
Date: 2015-03-06 18:34:09
Message-ID: 929.1425666849@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jamie Koceniak <jkoceniak(at)mediamath(dot)com> writes:
> If I don't remove the orphaned files, is there any change that Postgres could use the same file node (oid) again?

> For example, say file node 2602351127 doesn't exist anywhere in pg_class, could Postgres use that same file node id again?
> What would happen in that case?

It will not overwrite an existing file when selecting a new relfilenode.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bryce Nesbitt 2015-03-06 18:46:57 Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats
Previous Message Kevin Grittner 2015-03-06 18:33:58 Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats