From: | hubert depesz lubaczewski <depesz(at)depesz(dot)com> |
---|---|
To: | Craig White <craigwhite(at)azapple(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: getting list of tables from command line |
Date: | 2007-11-01 19:25:22 |
Message-ID: | 20071101192522.GA7287@depesz.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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)
From | Date | Subject | |
---|---|---|---|
Next Message | Dawid Kuroczko | 2007-11-01 20:19:44 | Scrolling cursors in PL/PgSQL |
Previous Message | Scott Marlowe | 2007-11-01 19:03:51 | Re: (Never?) Kill Postmaster? |