X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 52A4053AA2 for ; Sun, 27 Mar 2005 09:22:22 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51357-09 for ; Sun, 27 Mar 2005 08:22:12 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 531F353A56 for ; Sun, 27 Mar 2005 09:22:11 +0100 (BST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j2R8MAKC038201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 27 Mar 2005 01:22:12 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j2R8MA9F046641; Sun, 27 Mar 2005 01:22:10 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j2R8M9Ui046640; Sun, 27 Mar 2005 01:22:09 -0700 (MST) (envelope-from mfuhr) Date: Sun, 27 Mar 2005 01:22:09 -0700 From: Michael Fuhr To: Kalyani Chennupati Cc: pgsql-sql@postgresql.org Subject: Re: Is there a way to find a schema name Message-ID: <20050327082209.GB46534@winnie.fuhr.org> References: <20050324160348.99072.qmail@web52306.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050324160348.99072.qmail@web52306.mail.yahoo.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/354 X-Sequence-Number: 20833 On Thu, Mar 24, 2005 at 08:03:48AM -0800, Kalyani Chennupati wrote: > Would like to know if there is a way to find a schema > name (when in the schema through a application or > through psql). See "System Information Functions" (or "Miscellaneous Functions") in the "Functions and Operators" chapter of the documentation. Here's a link to the documentation for the latest release: http://www.postgresql.org/docs/8.0/interactive/functions-info.html See also the "System Catalogs" chapter -- you can do joins on pg_class.relnamespace = pg_namespace.oid, for example. http://www.postgresql.org/docs/8.0/interactive/catalogs.html If this doesn't answer your question then please be more specific about what you're trying to do. -- Michael Fuhr http://www.fuhr.org/~mfuhr/