pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ach <alanchines@gmail.com>
To: pgsql-performance@postgresql.org
Subject: statistics target for columns in unique constraint?
Date: Mon, 13 May 2013 08:01:33 -0700 (PDT)
Message-ID: <1368457293547-5755256.post@n5.nabble.com> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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...
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (5+ messages)  latest in thread

Message-ID: <1368457293547-5755256.post@n5.nabble.com>
Permalink:  ../1368457293547-5755256.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1368457293547-5755256.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: alanchines@gmail.com
  Subject: Re: statistics target for columns in unique constraint?
  In-Reply-To: <1368457293547-5755256.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox