Re: ERROR: cannot open relation center_out_analog_proc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "G(dot) Anthony Reina" <reina(at)nsi(dot)edu>
Cc: "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ERROR: cannot open relation center_out_analog_proc
Date: 2001-03-06 21:34:25
Message-ID: 7561.983914465@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"G. Anthony Reina" <reina(at)nsi(dot)edu> writes:
> BEGIN WORK;
> ...
> DROP TABLE center_out_analog_proc;
> ...
> [fail transaction]

> psql:alter_table_format.sql:14: NOTICE: mdopen: couldn't open
> center_out_analog_proc: No such file or directory

You can't roll back a DROP TABLE under pre-7.1 releases (and 7.0 has
a big fat warning notice to tell you so!). The physical table file
is deleted immediately by the DROP, so rolling back the system catalog
changes doesn't get you back to a working table.

The only way to clean up at this point is to drop the table for real.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message G. Anthony Reina 2001-03-06 21:46:27 Re: ERROR: cannot open relation center_out_analog_proc
Previous Message Lamar Owen 2001-03-06 21:20:13 Re: How to shoot yourself in the foot: kill -9 postmaster