Re: new line in psotgres - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: new line in psotgres
Date
Msg-id F461EC31-AD27-493F-A56A-1B235DE50BF9@seespotcode.net
Whole thread Raw
In response to new line in psotgres  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Responses Re: new line in psotgres  (abdullatheef <latheefvkpadi@gmail.com>)
List 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



pgsql-general by date:

Previous
From: "Alexander Staubo"
Date:
Subject: Re: pgpool2 vs sequoia
Next
From: Jeff Davis
Date:
Subject: Re: new line in psotgres