Re: Backslash Escape Sequences

From: Andy Anderson <aanderson(at)amherst(dot)edu>
To: pgsql-docs(at)postgresql(dot)org
Subject: Re: Backslash Escape Sequences
Date: 2008-05-01 15:29:09
Message-ID: 3E797734-2E62-4E9D-955E-94D63EA114B7@amherst.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

>> Andy Anderson wrote:
>>
>>> In any case, here's a contribution to the manual, a short table with
>>> this information, in a format that might help make the subject
>>> clearer.
>> Modify at will!

> On Apr 30, 2008, at 6:04 PM, Alvaro Herrera wrote:
>> FWIW if you really want to make a contribution to the docs, please
>> see
>> the SGML sources instead of the HTML output (which is machine-
>> generated).

OK, then, I hope the following is accurate enough SGML to be more
useful. Submitted here per the instructions on <http://www.postgresql.org/docs/8.3/interactive/bug-reporting.html
>.

-- Andy

********************************************************************

<table id="sql-backslash-table">
<title>Backslash Escape Sequences</title>
<tgroup cols="2">
<thead>
<row>
<entry>Backslash Escape Sequence</>
<entry>Interpretation</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>\b</literal></entry>
<entry>backspace</entry>
</row>
<row>
<entry><literal>\f</literal></entry>
<entry>form feed</entry>
</row>
<row>
<entry><literal>\n</literal></entry>
<entry>newline</entry>
</row>
<row>
<entry><literal>\r</literal></entry>
<entry>carriage return</entry>
</row>
<row>
<entry><literal>\t</literal></entry>
<entry>tab</entry>
</row>
<row>
<entry>
<literallayout>
<literal>\<replaceable>o</replaceable></literal>
<literal>\<replaceable>oo</replaceable></literal>
<literal>\<replaceable>ooo</replaceable></literal>
(<replaceable>o</replaceable> = 0 - 7)
</literallayout>
</entry>
<entry>octal byte value</entry>
</row>
<row>
<entry>
<literallayout>
<literal>\x<replaceable>h</replaceable></literal>
<literal>\x<replaceable>hh</replaceable></literal>
(<replaceable>h</replaceable> = 0 - F)
</literallayout>
</entry>
<entry>hexadecimal byte value</entry>
</row>
<row>
<entry>
<literallayout>
<literal>\<replaceable>a</replaceable></literal>
(<replaceable>a</replaceable> = any other character than the
above,
e.g. <literal>\</literal> and <literal>'</literal>.)
</literallayout>
</entry>
<entry><replaceable>a</replaceable></entry>
</row>
</tbody>
</tgroup>
</table>

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2008-05-07 16:34:06 Re: order of entries in admin docs
Previous Message Alvaro Herrera 2008-04-30 22:04:28 Re: Backslash Escape Sequences

Browse pgsql-general by date

  From Date Subject
Next Message Dan Armbrust 2008-05-01 15:38:46 Re: Deadlock situation?
Previous Message Osvaldo Kussama 2008-05-01 15:17:58 Re: question about join