Re: Literal NUL using COPY TO

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: François Beausoleil <francois(at)teksol(dot)info>
Cc: Forums postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Literal NUL using COPY TO
Date: 2012-12-10 19:34:53
Message-ID: 24422.1355168093@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?iso-8859-1?Q?Fran=E7ois_Beausoleil?= <francois(at)teksol(dot)info> writes:
> Can one use COPY TO stdout to output a literal NUL byte as the delimiter?

No. Postgres doesn't allow embedded NULs in text strings in general.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mihai Popa 2012-12-10 20:26:02 large database
Previous Message Виктор Егоров 2012-12-10 19:25:18 Re: Problem with aborting entire transactions on error