Skip to content

Commit f5a613c

Browse files
committed
>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
1 parent bcaabc5 commit f5a613c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/backend/commands/user.c

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: user.c,v 1.42 1999/12/14 00:08:13 momjian Exp $
8+
* $Id: user.c,v 1.43 1999/12/14 00:12:06 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -44,12 +44,20 @@ static void CheckPgUserAclNotNull(void);
4444
*---------------------------------------------------------------------
4545
*/
4646

47-
/* This is the old name. Now uses a lower case name to be able to call this
48-
from SQL. */
49-
#define UpdatePgPwdFile() update_pg_pwd()
47+
static void UpdatePgPwdFile(void);
5048

51-
void
52-
update_pg_pwd()
49+
/* This is a wrapper, so the below function can be called from a trigger
50+
(used to update pg_pwd from pg_shadow) */
51+
HeapTuple update_pg_pwd()
52+
{
53+
UpdatePgPwdFile();
54+
return NULL;
55+
}
56+
57+
58+
59+
static void
60+
UpdatePgPwdFile(void)
5361
{
5462
char *filename,
5563
*tempname;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy