Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] getting list of tables from command line

From: Filip Rembiałkowski <plk.zuber(at)gmail.com>
Date: Wed Oct 31 2007 - 13:25:10 EDT


2007/10/31, Craig White <craigwhite@azapple.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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               
http://archives.postgresql.org/
Received on Wed Oct 31 16:26:09 2007

This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 19:10:07 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library