Обсуждение: Somebody forgot to pin the built-in access methods

Поиск
Список
Период
Сортировка

Somebody forgot to pin the built-in access methods

От
Tom Lane
Дата:
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

От
Alvaro Herrera
Дата:
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