statistics target for columns in unique constraint?

From: ach <alanchines(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: statistics target for columns in unique constraint?
Date: 2013-05-13 15:01:33
Message-ID: 1368457293547-5755256.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I have a unique constraint on two columns of a supermassive table (est. 1.7
bn rows) that are the only way the table's ever queried - and it's
blindingly fast: 51ms to retrieve any single row even non-partitioned.

Anyway: Right now statistics on the two unique constrained columns are set
to 200 each (database-wide default is 100), and what I'm wondering is, since
the unique constraint already covers the whole table and all rows in
entirety, is it really necessary for statistics to be set that high on
those? Or does that only serve to slow down inserts to that table?

--
View this message in context: http://postgresql.1045698.n5.nabble.com/statistics-target-for-columns-in-unique-constraint-tp5755256.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Haas 2013-05-13 17:21:54 Re: Setting vacuum_freeze_min_age really low
Previous Message Desbiens, Eric 2013-05-13 13:05:38 Lock and pg_stat