Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 168B39FB1BF for ; Tue, 9 Oct 2007 18:06:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 12253-03 for ; Tue, 9 Oct 2007 18:06:09 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id BD71B9FA67E for ; Tue, 9 Oct 2007 18:06:08 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IfME2-0001D2-Qj for pgsql-admin@postgresql.org; Tue, 09 Oct 2007 21:02:46 +0000 Received: from 77.70.61.39 ([77.70.61.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 21:02:46 +0000 Received: from milen by 77.70.61.39 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 21:02:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: "Milen A. Radev" Subject: Re: Schema objects Date: Tue, 09 Oct 2007 23:58:36 +0300 Lines: 22 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 77.70.61.39 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/64 X-Sequence-Number: 26978 Lucas Martino написа: > Hello, > i need list all tables, functions, procedures, triggers, sequences of a > specific schema. How can i do this? One way (the only one I could think of) is to dump the schema using the custom format and then use the pg_restore to list the contents of the dump file: pg_dump --format=c --schema=a_schema --schema-only --file=x.dump a_database and then: pg_restore --list x.dump Probably someone would suggest a more direct way. -- Milen A. Radev