aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/common.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2003-09-03 22:05:09 +0000
committerPeter Eisentraut <peter_e@gmx.net>2003-09-03 22:05:09 +0000
commit29a20145fd2d1859eb3ec1788240244d0b50f68f (patch)
tree6b83ccf2e9b2c6104c3ebb9f4a4b78581d9c827b /src/bin/psql/common.h
parent4e85f760e6b1cccfb82be8078257ade01435573e (diff)
downloadpostgresql-29a20145fd2d1859eb3ec1788240244d0b50f68f.tar.gz
postgresql-29a20145fd2d1859eb3ec1788240244d0b50f68f.zip
Pass session_authorization to the client and make psql update its prompt
accordingly.
Diffstat (limited to 'src/bin/psql/common.h')
-rw-r--r--src/bin/psql/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h
index 08ec84acdf2..f5719bb2584 100644
--- a/src/bin/psql/common.h
+++ b/src/bin/psql/common.h
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.28 2003/08/08 04:52:21 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.29 2003/09/03 22:05:09 petere Exp $
*/
#ifndef COMMON_H
#define COMMON_H
@@ -37,6 +37,7 @@ extern PGresult *PSQLexec(const char *query, bool start_xact);
extern bool SendQuery(const char *query);
extern bool is_superuser(void);
+extern const char *session_username(void);
/* Parse a numeric character code from the string pointed at by *buf, e.g.
* one written as 0x0c (hexadecimal) or 015 (octal); advance *buf to the last