Re: DROP INDEX - dropping index of a table in a named schema

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: DROP INDEX - dropping index of a table in a named schema
Дата
Msg-id CAKFQuwa=X0bQbPKwMC0HL8Ka+9vSQec-Q8QcgoX=U2BevpxP=w@mail.gmail.com
обсуждение исходный текст
Ответ на DROP INDEX - dropping index of a table in a named schema  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On Monday, May 22, 2023, PG Doc comments form <noreply@postgresql.org> wrote:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/15/sql-dropindex.html
Description:

I had to find out (as it is not in the given documentation) that to drop an
index for a table in a named schema (later "schemaname.tablename") you have
to prefix the schemaname for the index inte DROP statement.

The create index docs say that an index for a table always exists within the same schema as that table.  If that schema isn’t in your search_path then it follows you need to schema qualify references to it.

David J.
 

В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: DROP INDEX - dropping index of a table in a named schema
Следующее
От: PG Doc comments form
Дата:
Сообщение: Typo