Re: databases list to file

Поиск
Список
Период
Сортировка
Искать
От
A. Kretschmer
Тема
Re: databases list to file
Дата
Msg-id
20081009142024.GB11407@a-kretschmer.de
Ответ на
databases list to file (Joao Ferreira gmail)
Список
Дерево обсуждения
databases list to file Joao Ferreira gmail <joao.miguel.c.ferreira@gmail.com>
Re: databases list to file "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: databases list to file Jeff Ross <jross@wykids.org>
Re: databases list to file "postgres Emanuel CALVO FRANCO" <postgres.arg@gmail.com>
Re: databases list to file Steve Crawford <scrawford@pinpointresearch.com>
am  Thu, dem 09.10.2008, um 15:13:58 +0100 mailte Joao Ferreira gmail folgendes:
> Hello all,
> 
> I need to print to a file a simple list of all the databases on my
> postgresql.
> 
> I need to do this from a shell script to be executed without human
> intervention
> 
> I guess something like:
> 
> su postgres -c 'psql ...whatever.... > /tmp/my_databases.txt'
> 
> but I don't know exactly to what extent I can format the output of this
> in order to simplify the parser that will read that file.
> 
> any suggestions ?

psql -l > /tmp/my_databases.txt


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net
В списке pgsql-general по дате отправления
От: Joao Ferreira gmail
Дата:
Сообщение: databases list to file
От:
Дата:
FAQ