pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Milen A. Radev <milen@radev.net>
To: pgsql-admin@postgresql.org
Subject: Re: Schema objects
Date: Tue, 09 Oct 2007 23:58:36 +0300
Message-ID: <fegq1r$624$1@sea.gmane.org> (raw)
In-Reply-To: <b884d6830710091304w12cdde6anf9b7480da455eb5a@mail.gmail.com>
References: <b884d6830710091304w12cdde6anf9b7480da455eb5a@mail.gmail.com>

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




view thread (3+ messages)  latest in thread

Message-ID: <fegq1r$624$1@sea.gmane.org>
Permalink:  ../fegq1r$624$1@sea.gmane.org/
Also on:    postgresql.org/message-id/fegq1r$624$1@sea.gmane.org

 · 

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: pgsql-admin@postgresql.org
  Cc: milen@radev.net
  Subject: Re: Schema objects
  In-Reply-To: <fegq1r$624$1@sea.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox