Skip site navigation (1) Skip section navigation (2)

psql record separator

From: Charley Tiggs <lists(at)tiggs(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: psql record separator
Date: 2008-01-09 22:06:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
I'm trying to create a CRLF record separator using the following syntax:

psql -R "\r\n" dbname username -c "select * from foo" > data_file.txt

But, no matter what I do, it only outputs a newline (\n).  How can I 
force the separator to be a windows line break (CRLF)?



pgsql-novice by date

Next:From: Tom LaneDate: 2008-01-09 22:13:13
Subject: Re: psql record separator
Previous:From: Charley TiggsDate: 2008-01-09 22:03:55
Subject: Re: Command line output - How to output values only?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group