Thread: Somebody forgot to pin the built-in access methods

Somebody forgot to pin the built-in access methods

From
Tom Lane
Date:
Commit 473b93287 forgot a rather critical detail:

regression=# drop access method btree;
DROP ACCESS METHOD
regression=# select * from tenk1;
ERROR:  cache lookup failed for access method 403

The fact that the command is restricted to superusers doesn't make
this a good idea.
        regards, tom lane



Re: Somebody forgot to pin the built-in access methods

From
Alvaro Herrera
Date:
Tom Lane wrote:
> Commit 473b93287 forgot a rather critical detail:
> 
> regression=# drop access method btree;
> DROP ACCESS METHOD
> regression=# select * from tenk1;
> ERROR:  cache lookup failed for access method 403

Hah, nice one.  Thanks for fixing.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services