aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-06-14 02:57:45 +0000
committerBruce Momjian <bruce@momjian.us>2005-06-14 02:57:45 +0000
commit2ee0d5549f777d3cf4aa91245256b3868c1a9278 (patch)
tree21cab76a10eeb88aad40e16ec68110c46738170c /src/bin/psql/help.c
parente31cd6739ae078dc3679467a105fc60272b22e4c (diff)
downloadpostgresql-2ee0d5549f777d3cf4aa91245256b3868c1a9278.tar.gz
postgresql-2ee0d5549f777d3cf4aa91245256b3868c1a9278.zip
Add -L option to psql to log sessions.
Lorne Sunley
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r--src/bin/psql/help.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 8b3dbcf602e..9c1e6d3a574 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.101 2005/02/22 04:40:55 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.102 2005/06/14 02:57:41 momjian Exp $
*/
#include "postgres_fe.h"
#include "common.h"
@@ -60,7 +60,7 @@ usage(void)
user = getenv("PGUSER");
if (!user)
{
-#ifndef WIN32
+#if !defined(WIN32) && !defined(__OS2__)
pw = getpwuid(geteuid());
if (pw)
user = pw->pw_name;
@@ -107,6 +107,7 @@ usage(void)
puts(_(" -n disable enhanced command line editing (readline)"));
puts(_(" -s single-step mode (confirm each query)"));
puts(_(" -S single-line mode (end of line terminates SQL command)"));
+ puts(_(" -L FILENAME send session log to file"));
puts(_("\nOutput format options:"));
puts(_(" -A unaligned table output mode (-P format=unaligned)"));