Re: postgresql 8.1.5 psql -P recordsep='\n' not work

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: postgresql 8.1.5 psql -P recordsep='\n' not work
Дата
Msg-id 20070402151613.GF11358@alvh.no-ip.org
обсуждение исходный текст
Ответ на postgresql 8.1.5 psql -P recordsep='\n' not work  ("Denis Lishtovny" <d.lishtovny@chronopay.com>)
Список pgsql-bugs
Denis  Lishtovny wrote:
> Hello All.
>
>
>
> I want to output result of query with double newline record separated.
>
> For example:
>
> psql -At -P recordsep="\n\n" -U postgres -c "select generate_series(1,3)"

What this says is that there's no interpolation of escapes in recordsep.
Try putting them literally:

$ psql -At -P recordsep="
>
> " -c "select generate_series(1,3)"
1

2

3


--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: "Denis Lishtovny"
Дата:
Сообщение: postgresql 8.1.5 psql -P recordsep='\n' not work
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: postgresql 8.1.5 psql -P recordsep='\n' not work