Re: Sending query to a file

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Re: Sending query to a file
Дата
Msg-id 20011110161213.N37192-100000@zoraida.natserv.net
обсуждение исходный текст
Ответ на Re: Sending query to a file  ("Brett W. McCoy" <bmccoy@chapelperilous.net>)
Ответы Re: Sending query to a file  ("Brett W. McCoy" <bmccoy@chapelperilous.net>)
Список pgsql-novice
On Sat, 10 Nov 2001, Brett W. McCoy wrote:

> On Sat, 10 Nov 2001, Francisco Reyes wrote:
> > What is the best way to send a query to an ASCII file?
> > I have been using "\g", but that seems to require doing the query twice. I

> \o <file> will send the results of queries to a file.

Thanks. That worked.
Is there a better way to use "\g" than running it after running the query
initially?
The description says "send query to backend (and results in [file] or
|pipe)". For starters when I do "\g" it doesn't seem to go to the backend.
It processes the last query and I don't get the prompt back until it is
done.


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

Предыдущее
От: "Brett W. McCoy"
Дата:
Сообщение: Re: Sending query to a file
Следующее
От: "Brett W. McCoy"
Дата:
Сообщение: Re: Sending query to a file