mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	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.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user