Re: TPC-R benchmarks

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Jenny Zhang <jenny(at)osdl(dot)org>, Oleg Lebedev <oleg(dot)lebedev(at)waterford(dot)org>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: TPC-R benchmarks
Date: 2003-09-26 03:41:15
Message-ID: 200309252041.15743.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-09-26 04:28:54 Re: TPC-R benchmarks
Previous Message Rod Taylor 2003-09-25 23:46:41 Re: Indices arent being used