Re: Should PG backend know how to represent metadata?

From: eisentrp(at)csis(dot)gvsu(dot)edu
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Should PG backend know how to represent metadata?
Date: 2000-07-17 14:45:38
Message-ID: Pine.LNX.4.21.0007171036200.10833-100000@eos05.csis.gvsu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 17 Jul 2000, Philip Warner wrote:

> I would have thought that the database itself should be the tool used to
> display SQL, and if not the database, then one of the interface libraries.

SQL is only one of the many formats that people might want meta data in.
psql and pgaccess, for example, have somewhat different requirements.

The SQL standard defines a large set of information schema views which
provide the database metadata in a portable fashion, from there it should
be a relatively short distance to the format of your choice, and the
maintainance problem across releases is decreased.

Of course without schema support these views would intolerably clutter the
user name space, but I could think of a couple of ways to work around that
for the moment.

Btw., in your wheeling and dealing in pg_dump you might want to look at
the format_type function I added, which is a step in this direction.
(examples in psql/describe.c)

--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-07-17 14:46:46 Re: Should PG backend know how to represent metadata?
Previous Message Tom Lane 2000-07-17 14:36:54 Re: pltcl regress test?