diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-10-06 18:39:16 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-10-06 18:39:16 +0000 |
commit | c62a5465fba74c9bc1ae2e45b705a633a03fcc46 (patch) | |
tree | b68778d1b6c0a9947cae13e2c5a4bdbec0a14296 /src/bin/psql/help.c | |
parent | 94954c7f6a378c6e812ea114488e3c9fa71e55f0 (diff) | |
download | postgresql-c62a5465fba74c9bc1ae2e45b705a633a03fcc46.tar.gz postgresql-c62a5465fba74c9bc1ae2e45b705a633a03fcc46.zip |
Suppress psql \s help display for platforms like Win32 that don't
typically install witn readline, and throw an error if they try to
access it.
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r-- | src/bin/psql/help.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 24d2c8f59f1..1fa93c203a1 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2004, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.93 2004/08/29 05:06:54 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.94 2004/10/06 18:39:16 momjian Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -194,7 +194,9 @@ slashUsage(unsigned short int pager) fprintf(output, _(" \\g [FILE] send query buffer to server (and results to file or |pipe)\n")); fprintf(output, _(" \\p show the contents of the query buffer\n")); fprintf(output, _(" \\r reset (clear) the query buffer\n")); +#ifdef USE_READLINE fprintf(output, _(" \\s [FILE] display history or save it to file\n")); +#endif fprintf(output, _(" \\w FILE write query buffer to file\n")); fprintf(output, "\n"); |