aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-12-14 00:12:06 +0000
committerBruce Momjian <bruce@momjian.us>1999-12-14 00:12:06 +0000
commitf5a613c0ed077f12ad63d30cf464acb1939245e8 (patch)
tree6087562ea228b1a5a62386ec072ea5d7daad242c
parentbcaabc5698f6b81a990f1bb7cfa3a6bb9583d03e (diff)
downloadpostgresql-f5a613c0ed077f12ad63d30cf464acb1939245e8.tar.gz
postgresql-f5a613c0ed077f12ad63d30cf464acb1939245e8.zip
>From what I gather, this should be a little cleaner because the
triggered function now returns the right datatype. -- Peter Eisentraut Sernanders väg 10:115
-rw-r--r--src/backend/commands/user.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c
index 56dce87f7e0..349a228872c 100644
--- a/src/backend/commands/user.c
+++ b/src/backend/commands/user.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: user.c,v 1.42 1999/12/14 00:08:13 momjian Exp $
+ * $Id: user.c,v 1.43 1999/12/14 00:12:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -44,12 +44,20 @@ static void CheckPgUserAclNotNull(void);
*---------------------------------------------------------------------
*/
-/* This is the old name. Now uses a lower case name to be able to call this
- from SQL. */
-#define UpdatePgPwdFile() update_pg_pwd()
+static void UpdatePgPwdFile(void);
-void
-update_pg_pwd()
+/* This is a wrapper, so the below function can be called from a trigger
+ (used to update pg_pwd from pg_shadow) */
+HeapTuple update_pg_pwd()
+{
+ UpdatePgPwdFile();
+ return NULL;
+}
+
+
+
+static void
+UpdatePgPwdFile(void)
{
char *filename,
*tempname;