Commit 0a8f6b79 authored by Tom Lane's avatar Tom Lane

Fix psql's \d and allied commands to work with all server versions back to 7.4.

Guillaume Lelarge, with some additional fixes by me.
parent 2c2aff6a
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.208 2008/06/11 10:48:16 heikki Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.209 2008/07/03 03:37:16 tgl Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -2859,26 +2859,22 @@ $endif ...@@ -2859,26 +2859,22 @@ $endif
<para> <para>
In an earlier life <application>psql</application> allowed the In an earlier life <application>psql</application> allowed the
first argument of a single-letter backslash command to start first argument of a single-letter backslash command to start
directly after the command, without intervening whitespace. For directly after the command, without intervening whitespace.
compatibility this is still supported to some extent, As of <productname>PostgreSQL</productname> 8.4 this is no
but we are not going to explain the details here as this use is longer allowed.
discouraged. If you get strange messages, keep this in mind.
For example:
<programlisting>
testdb=&gt; <userinput>\foo</userinput>
Field separator is "oo".
</programlisting>
which is perhaps not what one would expect.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<application>psql</application> only works smoothly with servers <application>psql</application> is only guaranteed to work smoothly
of the same version. That does not mean other combinations will with servers of the same version. That does not mean other combinations
fail outright, but subtle and not-so-subtle problems might come will fail outright, but subtle and not-so-subtle problems might come
up. Backslash commands are particularly likely to fail if the up. Backslash commands are particularly likely to fail if the
server is of a different version. server is of a newer version than <application>psql</> itself. However,
backslash commands of the <literal>\d</> family should work with
servers of versions back to 7.4, though not necessarily with servers
newer than <application>psql</> itself.
</para> </para>
</listitem> </listitem>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment