File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.4 1997/02/14 04:18:17 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.5 1997/04/27 19:20:37 thomas Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -260,10 +260,14 @@ SetDatabaseName(char *name)
260
260
*
261
261
* SetPgUserName must be called before InitPostgres, since the setuid()
262
262
* is done there.
263
+ *
264
+ * Replace GetPgUserName() with a lower-case version
265
+ * to allow use in new case-insensitive SQL (referenced
266
+ * in pg_proc.h). Define GetPgUserName() as a macro - tgl 97/04/26
263
267
* ----------------
264
268
*/
265
269
char *
266
- GetPgUserName ()
270
+ getpgusername ()
267
271
{
268
272
return UserName ;
269
273
}
Original file line number Diff line number Diff line change 11
11
*
12
12
* Copyright (c) 1994, Regents of the University of California
13
13
*
14
- * $Id: miscadmin.h,v 1.8 1997/03/25 08:09:59 scrappy Exp $
14
+ * $Id: miscadmin.h,v 1.9 1997/04/27 19:21:06 thomas Exp $
15
15
*
16
16
* NOTES
17
17
* some of the information in this file will be moved to
@@ -109,14 +109,16 @@ extern char *GetDatabasePath(void);
109
109
extern char * GetDatabaseName (void );
110
110
extern void SetDatabaseName (char * name );
111
111
extern void SetDatabasePath (char * path );
112
- extern char * GetPgUserName (void );
112
+ extern char * getpgusername (void );
113
113
extern void SetPgUserName (void );
114
114
extern Oid GetUserId (void );
115
115
extern void SetUserId (void );
116
116
extern int ValidateBackend (char * path );
117
117
extern int FindBackend (char * backend , char * argv0 );
118
118
extern int CheckPathAccess (char * path , char * name , int open_mode );
119
119
120
+ /* lower case version for case-insensitive SQL referenced in pg_proc.h */
121
+ #define GetPgUserName () getpgusername()
120
122
121
123
/*****************************************************************************
122
124
* pmod.h -- *
You can’t perform that action at this time.
0 commit comments