Re: DROP TABLESPACE causes panic during recovery

From: Kevin Brown <kevin(at)sysexperts(dot)com>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: DROP TABLESPACE causes panic during recovery
Date: 2004-08-05 00:55:46
Message-ID: 20040805005546.GB2536@filer
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> In CVS tip, try running the regression tests against an installed
> postmaster (ie, make installcheck); then as soon as the tests are
> done, kill -9 the bgwriter process to force a database restart.
> Most of the time you'll get a PANIC during recovery:

[...]

> This is impossible to fix nicely because the information to reconstruct
> the tablespace is simply not available. We could make an ordinary
> directory (not a symlink) under pg_tblspc and then limp along in the
> expectation that it would get removed before we finish replay. Or we
> could just skip logged operations on files within the tablespace, but
> that feels pretty uncomfortable to me --- it amounts to deliberately
> discarding data ...
>
> Any thoughts?

How is a dropped table handled by the recovery code? Doesn't it present
the same sort of issues (though on a smaller scale)?

--
Kevin Brown kevin(at)sysexperts(dot)com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-08-05 01:17:02 Re: Bug in ALTER COLUMN/TYPE
Previous Message Andreas Pflug 2004-08-05 00:02:28 Re: Timezone for %t log_line_prefix