From: | Michael Glaesemann <grzm(at)myrealbox(dot)com> |
---|---|
To: | Haris Peco <snpe(at)snpe(dot)co(dot)yu> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Strange syntax for create/drop index |
Date: | 2006-04-09 02:08:16 |
Message-ID: | 3E08B865-BFE7-4B7B-98D4-CD8AE72269B7@myrealbox.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Apr 9, 2006, at 12:56 , Haris Peco wrote:
> 'drop index' request schema prefix, but 'create index' doesn't
> accept schema prefix
Currently indexes must be in the same schema as the table they index,
so no schema is accepted for CREATE INDEX. Indeed, the documentation
for CREATE INDEX describes the name parameter so:
http://www.postgresql.org/docs/current/interactive/sql-
createindex.html#AEN42146
> name
>
> The name of the index to be created. No schema name can be
> included here; the index is always created in the same schema as
> its parent table.
However, you could have two or more indexes with the same name, but
in different schemas, so you need to be able to schema-qualify an
index when you drop it, so DROP INDEX accepts a schema-qualified name.
Hope this helps.
Michael Glaesemann
grzm myrealbox com
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Browne | 2006-04-09 02:32:49 | Re: LW Boston |
Previous Message | Stephen Frost | 2006-04-09 02:03:03 | Re: Debian package for freeradius_postgresql module |