Re: Extending System Views: proposal for 8.1/8.2

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Neil Conway <neilc(at)samurai(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Extending System Views: proposal for 8.1/8.2
Date: 2005-01-22 23:42:58
Message-ID: 20050122234258.GA1618@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jan 22, 2005 at 05:21:32PM -0600, Jim C. Nasby wrote:

> Out of curiosity, what's the relation between the tables in pg_catalog
> and the 'actual system objects'? I ass-u-me'd that these tables were the
> backing store for the real information, but maybe that's not the case.

They are.

> I think these views are also very useful in certain programming
> situations, in which also having the OIDs might be very useful. Another
> option would be to have functions that given a array of names would
> return a array of OIDs.

So why not have both in the view? It's not like you are storing
duplicated data anyway.

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Ellos andaban todos desnudos como su madre los parió, y también las mujeres,
aunque no vi más que una, harto moza, y todos los que yo vi eran todos
mancebos, que ninguno vi de edad de más de XXX años" (Cristóbal Colón)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nicolai Tufar 2005-01-23 00:08:47 Re: [HACKERS] %2$, %1$ gettext placeholder replacement is not working under Win32
Previous Message Jim C. Nasby 2005-01-22 23:21:32 Re: Extending System Views: proposal for 8.1/8.2