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

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Denis Lishtovny <d(dot)lishtovny(at)chronopay(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: postgresql 8.1.5 psql -P recordsep='\n' not work
Date: 2007-04-02 15:16:13
Message-ID: 20070402151613.GF11358@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2007-04-02 15:19:35 Re: postgresql 8.1.5 psql -P recordsep='\n' not work
Previous Message Denis Lishtovny 2007-04-02 14:48:36 postgresql 8.1.5 psql -P recordsep='\n' not work