Re: getting list of tables from command line

From: Filip Rembiałkowski <plk(dot)zuber(at)gmail(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-10-31 17:25:10
Message-ID: 92869e660710311025x12c171bbg5f3cd5acf006f023@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2007/10/31, Craig White <craigwhite(at)azapple(dot)com>:
> I wrote a little script to individually back up table schemas, table
> data and then vacuum the table and it works nicely but I wanted a way to
> query a database and get a text file with just the table names and
> cannot figure out a way to do that.

for table in ` psql -qAtc "select table_name from information_schema.tables
where table_schema='public'" `

--
Filip Rembiałkowski

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2007-10-31 18:03:58 Re: Securing stored procedures and triggers
Previous Message João Paulo Zavanela 2007-10-31 17:22:08 Re: Install plJava