Re: new line in psotgres

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: "Jasbinder Singh Bali" <jsbali(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: new line in psotgres
Date: 2007-08-06 18:09:32
Message-ID: F461EC31-AD27-493F-A56A-1B235DE50BF9@seespotcode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Aug 6, 2007, at 12:28 , Jasbinder Singh Bali wrote:

> Can anyone please tell me what is the character for a new line in
> postgres ?
> I mean how does a new line get stored in postgres ?
> Is it "\n" or "\\n" or something else ?

Newlines (ASCII 10) are stored as the newline character in the
database encoding. E'\n' is a newline literal (or just '\n' in
Postgres versions prior to 8.1, IIRC). Newline also represents
itself, e.g., '
'.

Michael Glaesemann
grzm seespotcode net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2007-08-06 18:19:41 Re: new line in psotgres
Previous Message Alexander Staubo 2007-08-06 18:05:39 Re: pgpool2 vs sequoia