pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Avdhoot Kishore Saple <Avdhoot_Saple@infosys.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: local selectivity estimation - computing frequency of predicates
Date: Fri, 13 Apr 2007 10:13:14 -0400
Message-ID: <18791.1176473594@sss.pgh.pa.us> (raw)
In-Reply-To: <54D17EC6EF3C114693F2F8117990AAC101A10233@BLRKECMSG13.ad.infosys.com>
References: <54D17EC6EF3C114693F2F8117990AAC101A10233@BLRKECMSG13.ad.infosys.com>

"Avdhoot Kishore Saple" <Avdhoot_Saple@infosys.com> writes:
> How to compute the frequency of predicate (e.g. Salary > $70000) in an
> SQL query from a DB's pre-defined indexes?". I'm specifically looking at
> how to retrieve information about indices (like number of pages at each
> level of index, range of attribute values etc.)

I don't think what you're looking for is exposed anywhere.  Postgres
doesn't rely on indexes for statistical information anyway; the
pg_statistic system catalog (see also pg_stats view) is used for that.

			regards, tom lane



view thread (2+ messages)

Message-ID: <18791.1176473594@sss.pgh.pa.us>
Permalink:  ../18791.1176473594@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18791.1176473594@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, Avdhoot_Saple@infosys.com
  Subject: Re: local selectivity estimation - computing frequency of predicates
  In-Reply-To: <18791.1176473594@sss.pgh.pa.us>

* 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