Re: Why isn't it allowed to create an index in a schema other than public?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jorge Godoy <jgodoy(at)gmail(dot)com>
Cc: PostgreSQL General ML <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why isn't it allowed to create an index in a schema other than public?
Date: 2006-11-12 17:21:37
Message-ID: 26604.1163352097@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jorge Godoy <jgodoy(at)gmail(dot)com> writes:
> I'd like to know if there's any reasoning for not allowing creating an index
> inside the same schema where the table is.

Actually, you've got that exactly backwards: it's not allowed to have
the index in a *different* schema from its parent table. Hence there
is no need for the CREATE INDEX command to accept a schema attached
to the index name --- the only one that counts is the one attached to
the table name.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message pgsql-general@list.coretech.ro 2006-11-12 17:37:29 Re: specify whitch index to use
Previous Message Tom Lane 2006-11-12 17:13:24 Re: join condition against where with coalesce