Re: [BUGS] possible bug: orphaned files left after immediate shutdown during DDL

2011-02-16 Thread Bruce Momjian
Jeff Davis wrote: > On Wed, 2011-02-09 at 22:58 -0500, Tom Lane wrote: > > It's intentional ... not that other people haven't complained about it > > before. Remember that what you have done is forced a crash, and > > recovery from it is crash recovery. If we proactively removed such > > files we

Re: [BUGS] possible bug: orphaned files left after immediate shutdown during DDL

2011-02-09 Thread Jeff Davis
On Wed, 2011-02-09 at 22:58 -0500, Tom Lane wrote: > It's intentional ... not that other people haven't complained about it > before. Remember that what you have done is forced a crash, and > recovery from it is crash recovery. If we proactively removed such > files we would very possibly be dest

Re: [BUGS] possible bug: orphaned files left after immediate shutdown during DDL

2011-02-09 Thread Tom Lane
Jeff Davis writes: > Case: > BEGIN; > CREATE TABLE foo AS SELECT generate_series(1,1000); > CHECKPOINT; > SELECT relfilenode FROM pg_class WHERE relname='foo'; > Let's say that returns 23456. Send the postmaster a SIGQUIT (immediate > shutdown), and then restart. The file 23456 is still

[BUGS] possible bug: orphaned files left after immediate shutdown during DDL

2011-02-09 Thread Jeff Davis
Case: BEGIN; CREATE TABLE foo AS SELECT generate_series(1,1000); CHECKPOINT; SELECT relfilenode FROM pg_class WHERE relname='foo'; Let's say that returns 23456. Send the postmaster a SIGQUIT (immediate shutdown), and then restart. The file 23456 is still in the filesystem, but there's no