Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id DAA18983 for postgres-redist; Fri, 5 Aug 1994 03:19:10 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199408051019.DAA18983@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from irafs1.ira.uka.de (irafs1.ira.uka.de [129.13.10.100]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id DAA18973 for ; Fri, 5 Aug 1994 03:19:06 -0700 Received: from i31s7.ira.uka.de (actually i31s7) by irafs1 with SMTP (PP); Fri, 5 Aug 1994 12:13:30 +0200 Received: from ira.uka.de by i31s7.ira.uka.de id <02716-0@i31s7.ira.uka.de>; Fri, 5 Aug 1994 12:18:07 +0200 To: stewart@oec.com CC: postgres@postgres.Berkeley.EDU In-reply-to: (message from Stewart Allen on Thu, 4 Aug 1994 17:57:57 -0400 (EDT)) Subject: Re: gleaning the database structure Date: Fri, 5 Aug 1994 12:18:06 +0200 From: Thilo Gaul X-Sender: gaul@ira.uka.de Message-ID: <"i31s7.ira..724:05.07.94.10.18.12"@ira.uka.de> Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Fri, 05 Aug 94 03:19:10 -0700 Resent-XMts: smtp > 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. ==============================================================================