Re: unique constraints on foreign keys

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: unique constraints on foreign keys
Дата
Msg-id 20040920162457.D84638@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: unique constraints on foreign keys  (Jaime Casanova <systemguards@yahoo.com>)
Список pgsql-admin
On Mon, 20 Sep 2004, Jaime Casanova wrote:

>  --- Stephan Szabo <sszabo@megazone.bigpanda.com>
> escribi�:
> >
> > On Mon, 20 Sep 2004, Jaime Casanova wrote:
> >
> > > There is a way to not enforce the creation of a
> > > primary or unique index on a referenced table?
> >
> > Not really. It's not the index that's important
> > per-se, it's the uniqueness that is implied.
>
> OK. What about to teach the planner always do a
> seq on that table and do not ask for use the
> index? but not using "set" instructions. can i do
> that?

Not really. Are you worried about the cost of doing the plan analysis for
the index scan or that it might choose to actually use the index?
Theoretically, it's only going to currently plan the fk scan on status
once per connection because that plan should be saved.

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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: unique constraints on foreign keys
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Postgres setup question