Re: TPC-R benchmarks

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: TPC-R benchmarks
Дата
Msg-id 200309252041.15743.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: TPC-R benchmarks  (Jenny Zhang <jenny@osdl.org>)
Список pgsql-performance
Jenny,

> create index i_l_partkey on lineitem (l_partkey);
> I do not have any foreign key defined.  Does the spec require foreign
> keys?
>
> When you create a foreign key reference, does PG create an index
> automatically?

No.   A index is not required to enforce a foriegn key, and is sometimes not
useful (for example, FK fields with only 3 possible values).

So it may be that you need to create an index on that field.


--
Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Indices arent being used
Следующее
От: Tom Lane
Дата:
Сообщение: Re: TPC-R benchmarks