From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: pugin2011ilya@gmail.com
Subject: DROP INDEX - dropping index of a table in a named schema
Date: Mon, 22 May 2023 13:43:22 +0000
Message-ID: <168476300238.719.4154059913239447201@wrigleys.postgresql.org> (raw)
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.
Consider
CREATE INDEX indexname ON schemaname.tablename (<some columns>)
To drop it you will have to perform
DROP INDEX schemaname.indexname
(as I have read that indices are tied to schemas)
The following statement will fail (which was not clear from documentation)
DROP INDEX indexname
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, pugin2011ilya@gmail.com
Subject: Re: DROP INDEX - dropping index of a table in a named schema
In-Reply-To: <168476300238.719.4154059913239447201@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox