Re: Problem running script

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Re: Problem running script
Дата
Msg-id bfde446b7ec10d79d356695c55e5770d@stringsutils.com
обсуждение исходный текст
Ответ на Re: Problem running script  ("Ian Lea" <ian.lea@gmail.com>)
Список pgsql-general
On 9:50 am 07/30/08 "Ian Lea" <ian.lea@gmail.com> wrote:
> $ psql -whatever < test.sql > test.log

Also
psql -f <filename> > test.log
Almost the same as above..


> >  =>\i test.sql \o test

That would be wrong.
Say you had test.sql
select * from mytable;

You can change test.sql to:
\o test.log
select * from mytable;

Then you could do \i test.sql and accomplish what you are trying to do.

If your DB has passwords enable you may need to put the user/password combo
in .pgpass.


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

Предыдущее
От: "Ian Lea"
Дата:
Сообщение: Re: Problem running script
Следующее
От: "Francisco Reyes"
Дата:
Сообщение: Re: Connecting to an existing transaction state.