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
3e991585
Commit
3e991585
authored
Dec 21, 1999
by
Jan Wieck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_pg_pwd() is an AR trigger. Corrected return type.
Jan
parent
b57b0e04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
src/backend/commands/user.c
src/backend/commands/user.c
+12
-2
src/include/commands/user.h
src/include/commands/user.h
+1
-1
No files found.
src/backend/commands/user.c
View file @
3e991585
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: user.c,v 1.4
6 1999/12/20 01:11:37 tgl
Exp $
* $Id: user.c,v 1.4
7 1999/12/21 22:39:01 wieck
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -24,6 +24,7 @@
#include "catalog/indexing.h"
#include "commands/copy.h"
#include "commands/user.h"
#include "commands/trigger.h"
#include "libpq/crypt.h"
#include "miscadmin.h"
#include "nodes/pg_list.h"
...
...
@@ -48,13 +49,20 @@ static void CheckPgUserAclNotNull(void);
*---------------------------------------------------------------------
*/
void
HeapTuple
update_pg_pwd
(
void
)
{
char
*
filename
,
*
tempname
;
int
bufsize
;
/*
* This is a trigger, so clean out the information provided by
* the trigger manager.
*/
CurrentTriggerData
=
NULL
;
/*
* Create a temporary filename to be renamed later. This prevents the
* backend from clobbering the pg_pwd file while the postmaster might
...
...
@@ -93,6 +101,8 @@ update_pg_pwd(void)
creat
(
filename
,
S_IRUSR
|
S_IWUSR
);
pfree
((
void
*
)
tempname
);
return
NULL
;
}
/*---------------------------------------------------------------------
...
...
src/include/commands/user.h
View file @
3e991585
...
...
@@ -21,6 +21,6 @@ extern void CreateGroup(CreateGroupStmt *stmt, CommandDest dest);
extern
void
AlterGroup
(
AlterGroupStmt
*
stmt
,
CommandDest
dest
);
extern
void
DropGroup
(
DropGroupStmt
*
stmt
,
CommandDest
dest
);
extern
void
update_pg_pwd
(
void
);
extern
HeapTuple
update_pg_pwd
(
void
);
#endif
/* USER_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