From 0a8f6b797ae794e8c0035dd6159318fe0261faf1 Mon Sep 17 00:00:00 2001
From: Tom Lane
Date: Thu, 3 Jul 2008 03:37:17 +0000
Subject: 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.
---
doc/src/sgml/ref/psql-ref.sgml | 46 +++++++++++++++++++-----------------------
1 file changed, 21 insertions(+), 25 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 36f7fa23d40..eca30385748 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
@@ -407,7 +407,7 @@ PostgreSQL documentation
Force psql to prompt for a
- password before connecting to a database.
+ password before connecting to a database.
@@ -459,7 +459,7 @@ PostgreSQL documentation
@@ -542,8 +542,8 @@ PostgreSQL documentation
An alternative way to specify connection parameters is in a
- conninfo string, which is used instead of a
- database name. This mechanism give you very wide control over the
+ conninfo string, which is used instead of a
+ database name. This mechanism give you very wide control over the
connection. For example:
$ psql "service=myservice sslmode=require"
@@ -873,7 +873,7 @@ testdb=>
Lists all available tablespaces. If pattern
is specified, only tablespaces whose names match the pattern are shown.
- If + is appended to the command name, each object
+ If + is appended to the command name, each object
is listed with its associated permissions.
@@ -1511,7 +1511,7 @@ lo_import 152801
Sets the output format to one of unaligned,
- aligned, wrapped,
+ aligned, wrapped,
html,
latex, or troff-ms.
Unique abbreviations are allowed. (That would mean one letter
@@ -2533,7 +2533,7 @@ testdb=> \set content '''' `sed -e "s/'/''/g" -e 's/\\/\\\\/g' <
The full host name (with domain name) of the database server,
or [local] if the connection is over a Unix
domain socket, or
- [local:/dir/name],
+ [local:/dir/name],
if the Unix domain socket is not at the compiled in default
location.
@@ -2857,28 +2857,24 @@ $endif
- In an earlier life psql allowed the
- first argument of a single-letter backslash command to start
- directly after the command, without intervening whitespace. For
- compatibility this is still supported to some extent,
- but we are not going to explain the details here as this use is
- discouraged. If you get strange messages, keep this in mind.
- For example:
-
-testdb=> \foo
-Field separator is "oo".
-
- which is perhaps not what one would expect.
+ In an earlier life psql allowed the
+ first argument of a single-letter backslash command to start
+ directly after the command, without intervening whitespace.
+ As of PostgreSQL 8.4 this is no
+ longer allowed.
- psql only works smoothly with servers
- of the same version. That does not mean other combinations will
- fail outright, but subtle and not-so-subtle problems might come
- up. Backslash commands are particularly likely to fail if the
- server is of a different version.
+ psql is only guaranteed to work smoothly
+ with servers of the same version. That does not mean other combinations
+ will fail outright, but subtle and not-so-subtle problems might come
+ up. Backslash commands are particularly likely to fail if the
+ server is of a newer version than psql> itself. However,
+ backslash commands of the \d> family should work with
+ servers of versions back to 7.4, though not necessarily with servers
+ newer than psql> itself.
--
cgit v1.2.3