Re: how to improve perf of 131MM row table? - Mailing list pgsql-performance

From Aaron Weber
Subject Re: how to improve perf of 131MM row table?
Date
Msg-id 69dfd7f3-ccbb-4ae9-97f0-fcb99e7c9c18@email.android.com
Whole thread Raw
In response to Re: how to improve perf of 131MM row table?  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-performance


>The PK of the master table and the PK of the detail table cannot be
>the same thing, or they would not have a master-detail relationship.
>One side has to be an FK, not a PK.
>
Of course this is correct. I was trying to make the point that there should be unique indices (of whatever flavor PG
usesfor PK's by default) on the relevant columns.  Since we're referring to a select statement, the actual integrity
constraintsshould not come into play.  

I will remember to be more explicit about the schema next time.



pgsql-performance by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: how to improve perf of 131MM row table?
Next
From: Aaron Weber
Date:
Subject: Re: how to improve perf of 131MM row table?