Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
3e991585
Commit
3e991585
authored
25 years ago
by
Jan Wieck
Browse files
Options
Downloads
Patches
Plain Diff
update_pg_pwd() is an AR trigger. Corrected return type.
Jan
parent
b57b0e04
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/commands/user.c
+12
-2
12 additions, 2 deletions
src/backend/commands/user.c
src/include/commands/user.h
+1
-1
1 addition, 1 deletion
src/include/commands/user.h
with
13 additions
and
3 deletions
src/backend/commands/user.c
+
12
−
2
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/2
0 01:11:37 tgl
Exp $
* $Id: user.c,v 1.4
7
1999/12/2
1 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
;
}
/*---------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
src/include/commands/user.h
+
1
−
1
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 */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment