Re: pg_stats view added to CVS tip

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: pg_stats view added to CVS tip
Date: 2001-06-16 15:39:37
Message-ID: Pine.LNX.4.30.0106161737370.755-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> The view also tries to be slightly more user-friendly than a raw look at
> pg_statistic. It joins to pg_class and pg_attribute to get the names of
> tables and columns, and it presents the various kinds of statistics
> intelligently labeled. (Thus, the view has wired into it exactly the
> sort of assumptions we agreed not to make in pg_statistic itself.
> Peter E. may be unhappy with me here. But it seems to me that we can
> change/extend the view definition when we add new kinds of statistics
> entries.)

For informational views this is okay AFAICS; the SQL information schema is
full of this kind of thing. When you want to present alternative
information you add a new column and return null in the old ones.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-06-16 15:46:58 Re: postgres dies while doing vacuum analyze
Previous Message Peter Eisentraut 2001-06-16 14:38:02 Re: UNIQUE INDEX unaware of transactions (a spin of question)