*
* 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"
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");
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.38 2004/09/27 19:16:02 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.39 2004/10/06 18:39:16 momjian Exp $
*/
#include "postgres_fe.h"
#include "input.h"
psql_error("could not save history to file \"%s\": %s\n", fname, strerror(errno));
}
+#else
+ psql_error("history is not supported on this platform\n");
#endif
return false;