Search Postgresql Archives

Re: getting list of tables from command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2007/10/31, Craig White <craigwhite@xxxxxxxxxxx>:> 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.tableswhere table_schema='public'" `


-- Filip Rembiałkowski
---------------------------(end of broadcast)---------------------------TIP 4: Have you searched our list archives?
               http://archives.postgresql.org/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux