Re: local selectivity estimation - computing frequency of predicates

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Avdhoot Kishore Saple" <Avdhoot_Saple(at)infosys(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: local selectivity estimation - computing frequency of predicates
Date: 2007-04-13 14:13:14
Message-ID: 18791.1176473594@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Avdhoot Kishore Saple" <Avdhoot_Saple(at)infosys(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Steve 2007-04-13 16:38:17 Re: Question about memory allocations
Previous Message Avdhoot Kishore Saple 2007-04-13 08:59:30 local selectivity estimation - computing frequency of predicates