From c62a5465fba74c9bc1ae2e45b705a633a03fcc46 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 6 Oct 2004 18:39:16 +0000 Subject: 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. --- src/bin/psql/input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bin/psql/input.c') diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c index 7cc59c14218..769ac882296 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -3,7 +3,7 @@ * * 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" @@ -209,6 +209,8 @@ saveHistory(char *fname) 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; -- cgit v1.2.3