Re: Avoid the interpretation of \n in the psql output

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bruno BAGUETTE <pgsql-ml(at)baguette(dot)net>
Cc: "'PostgreSQL-general'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Avoid the interpretation of \n in the psql output
Date: 2003-07-20 19:28:05
Message-ID: 200307201928.h6KJS5q11327@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Sure, insert using \\n (double-backslash).

---------------------------------------------------------------------------

Bruno BAGUETTE wrote:
> Hello,
>
> How can I avoid the interpretation of \n in psql ?
>
> If I have a data inserted like this : 'The\ndata\nis\nthere', psql
> display
>
> The
> data
> is
> there
>
> Is there a way to have psql DISPLAYING \n but NOT interpreting it ?
>
> I'm using psql on PostgreSQL 6.5.2, just the time to extract all the
> datas from one table.... :-/
>
> Thanks in advance for your help !
>
> -------------------------------------
> Bruno BAGUETTE - pgsql-ml(at)baguette(dot)net
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-07-20 19:39:56 Re: Various serverlog messages
Previous Message Bruno Wolff III 2003-07-20 19:14:08 Re: vacuum analyze after updating from CVS?