<p>Attempting to insert an escape character into a table results in a warning. </p>

<p>For example:</p>

<pre><code>create table EscapeTest (text varchar(50));

insert into EscapeTest (text) values ('This is the first part \n And this is the second');
</code></pre>

<p>Produces the warning:</p>

<pre><code>WARNING:  nonstandard use of escape in a string literal
</code></pre>

<p>(<em>Using PSQL 8.2</em>)</p>

<p>Anyone know how to get around this?</p>

Partially. The text is inserted, but the warning is still generated.
I found a discussion that indicated the text needed to be preceded with 'E', as such:
```
```
insert into EscapeTest (text) values (E'This is the first part \n And this is the second');
```
```
This suppressed the warning, but the text was still not being returned correctly. When I added the additional slash as Michael suggested, it worked.
As such:
```
```
insert into EscapeTest (text) values (E'This is the first part \\n And this is the second');
```
```