How do I pipe output from query to a file in PostgreSQL?

Поиск
Список
Период
Сортировка
От Penrod, John
Тема How do I pipe output from query to a file in PostgreSQL?
Дата
Msg-id 8172D639BA76A14AA5C9DE7E13E0CEBE02F442BC0D@SJMEMXMBS10.stjude.sjcrh.local
обсуждение исходный текст
Ответы Re: How do I pipe output from query to a file in PostgreSQL?  (Kevin Kempter <kevink@consistentstate.com>)
Re: How do I pipe output from query to a file in PostgreSQL?  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general
In oracle:
 
SPOOL filename.txt
Select * from customer;
SPOOL OFF
 
Results are piped to filename.txt
 
 
How do I do this from the psql command line?
 
 
John J. Penrod, OCP
Oracle/EnterpriseDB Database Administrator
262 Danny Thomas Place, MS 0574
Memphis, TN  38105
Phone: (901) 595-4941
FAX: (901) 595-2963
john.penrod@stjude.org
 
 

  ________________________________  

В списке pgsql-general по дате отправления:

Предыдущее
От: David Kerr
Дата:
Сообщение: Re: Postmaster taking 100% of the CPU
Следующее
От: Kevin Kempter
Дата:
Сообщение: Re: How do I pipe output from query to a file in PostgreSQL?