Re: postgresql 8.1.5 psql -P recordsep='\n' not work - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: postgresql 8.1.5 psql -P recordsep='\n' not work
Date
Msg-id 20070402151613.GF11358@alvh.no-ip.org
Whole thread Raw
In response to postgresql 8.1.5 psql -P recordsep='\n' not work  ("Denis Lishtovny" <d.lishtovny@chronopay.com>)
List 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 by date:

Previous
From: "Denis Lishtovny"
Date:
Subject: postgresql 8.1.5 psql -P recordsep='\n' not work
Next
From: Peter Eisentraut
Date:
Subject: Re: postgresql 8.1.5 psql -P recordsep='\n' not work