Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d831e9ce
Commit
d831e9ce
authored
Apr 27, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change mixed-case routines to lower-case if referenced in pg_proc.h
parent
812d5c9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/backend/utils/init/miscinit.c
src/backend/utils/init/miscinit.c
+6
-2
src/include/miscadmin.h
src/include/miscadmin.h
+4
-2
No files found.
src/backend/utils/init/miscinit.c
View file @
d831e9ce
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.
4 1997/02/14 04:18:17 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.
5 1997/04/27 19:20:37 thomas
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -260,10 +260,14 @@ SetDatabaseName(char *name)
...
@@ -260,10 +260,14 @@ SetDatabaseName(char *name)
*
*
* SetPgUserName must be called before InitPostgres, since the setuid()
* SetPgUserName must be called before InitPostgres, since the setuid()
* is done there.
* is done there.
*
* Replace GetPgUserName() with a lower-case version
* to allow use in new case-insensitive SQL (referenced
* in pg_proc.h). Define GetPgUserName() as a macro - tgl 97/04/26
* ----------------
* ----------------
*/
*/
char
*
char
*
GetPgUserN
ame
()
getpgusern
ame
()
{
{
return
UserName
;
return
UserName
;
}
}
...
...
src/include/miscadmin.h
View file @
d831e9ce
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: miscadmin.h,v 1.
8 1997/03/25 08:09:59 scrappy
Exp $
* $Id: miscadmin.h,v 1.
9 1997/04/27 19:21:06 thomas
Exp $
*
*
* NOTES
* NOTES
* some of the information in this file will be moved to
* some of the information in this file will be moved to
...
@@ -109,7 +109,7 @@ extern char *GetDatabasePath(void);
...
@@ -109,7 +109,7 @@ extern char *GetDatabasePath(void);
extern
char
*
GetDatabaseName
(
void
);
extern
char
*
GetDatabaseName
(
void
);
extern
void
SetDatabaseName
(
char
*
name
);
extern
void
SetDatabaseName
(
char
*
name
);
extern
void
SetDatabasePath
(
char
*
path
);
extern
void
SetDatabasePath
(
char
*
path
);
extern
char
*
GetPgUserN
ame
(
void
);
extern
char
*
getpgusern
ame
(
void
);
extern
void
SetPgUserName
(
void
);
extern
void
SetPgUserName
(
void
);
extern
Oid
GetUserId
(
void
);
extern
Oid
GetUserId
(
void
);
extern
void
SetUserId
(
void
);
extern
void
SetUserId
(
void
);
...
@@ -117,6 +117,8 @@ extern int ValidateBackend(char *path);
...
@@ -117,6 +117,8 @@ extern int ValidateBackend(char *path);
extern
int
FindBackend
(
char
*
backend
,
char
*
argv0
);
extern
int
FindBackend
(
char
*
backend
,
char
*
argv0
);
extern
int
CheckPathAccess
(
char
*
path
,
char
*
name
,
int
open_mode
);
extern
int
CheckPathAccess
(
char
*
path
,
char
*
name
,
int
open_mode
);
/* lower case version for case-insensitive SQL referenced in pg_proc.h */
#define GetPgUserName() getpgusername()
/*****************************************************************************
/*****************************************************************************
* pmod.h -- *
* pmod.h -- *
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment