agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Thilo Gaul <gaul@ira.uka.de>
To: stewart@oec.com
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: gleaning the database structure
Date: Fri, 5 Aug 1994 12:18:06 +0200
Message-ID: <"i31s7.ira..724:05.07.94.10.18.12"@ira.uka.de> (raw)
In-Reply-To: <Pine.3.89.9408041735.A4358-0100000@outland.oec.com>
> Is there a simple set of queries which would provide basic table/column
> structure information within a database? I've poured over all the .ps
pg_class, pg_type, pg_attribute?
You might need to use Version 4.2, users manual page 27 explains all you
wanted, I think.
> I've also encountered problems when searching on the oid. Actually,
> I've been completely unable to do it. Whether using the built in
> operators or just "table.oid = xxx" it fails with a error about
> explicit casts and defining operators for oid and int4
table.oid? Defining a attribute with a system-class name won't work!
If this should only express the usage of an "oid":
table.attr = "123"::oid will do it...
> - where do I get better information about oid's, casts, etc?
the only reason is, that a number is passed as "int4" and there's no
implicit typecast for "oid"s.
Thilo.
(gaul@ira.uka.de)
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
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: postgres@postgres.berkeley.edu
Cc: gaul@ira.uka.de, stewart@oec.com
Subject: Re: gleaning the database structure
In-Reply-To: <"i31s7.ira..724:05.07.94.10.18.12"@ira.uka.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox