Re: getting list of tables from command line - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: getting list of tables from command line
Date
Msg-id 20071101192522.GA7287@depesz.com
Whole thread Raw
In response to getting list of tables from command line  (Craig White <craigwhite@azapple.com>)
Responses Re: getting list of tables from command line  (Craig White <craigwhite@azapple.com>)
List pgsql-general
On Wed, Oct 31, 2007 at 08:01:41AM -0700, Craig White wrote:
> my script looks like this...
> (all I want is to get a list of the tables into a text file pg_tables)

everybody else showed some ways, but i'll ask a question:
i hope you're not treating it as a backup? bacause when you do it that
way (on table-by-table basic) the "backup" is practically useless as it
doesn't have internal consistency.

if you want to make backup, perhaps you can tell us exactly what you
want to do, and why standard pg_dump is not enough.

if you're fully aware of the issue i pointed - sorry, i'm just trying to
make sure you'll not shoot yourself in a foot.

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: (Never?) Kill Postmaster?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: select random order by random