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
93922990
Commit
93922990
authored
Dec 20, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up some minor gcc warnings.
parent
c16afb4e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
20 deletions
+15
-20
src/backend/commands/dbcommands.c
src/backend/commands/dbcommands.c
+2
-1
src/backend/commands/user.c
src/backend/commands/user.c
+6
-11
src/backend/executor/nodeTidscan.c
src/backend/executor/nodeTidscan.c
+1
-3
src/backend/tcop/pquery.c
src/backend/tcop/pquery.c
+1
-2
src/backend/utils/adt/tid.c
src/backend/utils/adt/tid.c
+3
-3
src/include/commands/user.h
src/include/commands/user.h
+2
-0
No files found.
src/backend/commands/dbcommands.c
View file @
93922990
...
@@ -7,12 +7,13 @@
...
@@ -7,12 +7,13 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.4
7 1999/12/12 05:15:10 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.4
8 1999/12/20 01:11:37 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include <signal.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include "postgres.h"
#include "postgres.h"
...
...
src/backend/commands/user.c
View file @
93922990
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: user.c,v 1.4
5 1999/12/16 17:24:13 momjian
Exp $
* $Id: user.c,v 1.4
6 1999/12/20 01:11:37 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -37,7 +37,7 @@ static void CheckPgUserAclNotNull(void);
...
@@ -37,7 +37,7 @@ static void CheckPgUserAclNotNull(void);
#define SQL_LENGTH 512
#define SQL_LENGTH 512
/*---------------------------------------------------------------------
/*---------------------------------------------------------------------
*
UpdatePgPwdFile
*
update_pg_pwd
*
*
* copy the modified contents of pg_shadow to a file used by the postmaster
* copy the modified contents of pg_shadow to a file used by the postmaster
* for user authentication. The file is stored as $PGDATA/pg_pwd.
* for user authentication. The file is stored as $PGDATA/pg_pwd.
...
@@ -48,12 +48,8 @@ static void CheckPgUserAclNotNull(void);
...
@@ -48,12 +48,8 @@ static void CheckPgUserAclNotNull(void);
*---------------------------------------------------------------------
*---------------------------------------------------------------------
*/
*/
/* This is the old name. Now uses a lower case name to be able to call this
from SQL. */
#define UpdatePgPwdFile() update_pg_pwd()
void
void
update_pg_pwd
()
update_pg_pwd
(
void
)
{
{
char
*
filename
,
char
*
filename
,
*
tempname
;
*
tempname
;
...
@@ -242,7 +238,7 @@ DefineUser(CreateUserStmt *stmt, CommandDest dest)
...
@@ -242,7 +238,7 @@ DefineUser(CreateUserStmt *stmt, CommandDest dest)
* we can be sure no other backend will try to write the flat
* we can be sure no other backend will try to write the flat
* file at the same time.
* file at the same time.
*/
*/
UpdatePgPwdFile
();
update_pg_pwd
();
/*
/*
* Now we can clean up.
* Now we can clean up.
...
@@ -391,7 +387,7 @@ AlterUser(AlterUserStmt *stmt, CommandDest dest)
...
@@ -391,7 +387,7 @@ AlterUser(AlterUserStmt *stmt, CommandDest dest)
* we can be sure no other backend will try to write the flat
* we can be sure no other backend will try to write the flat
* file at the same time.
* file at the same time.
*/
*/
UpdatePgPwdFile
();
update_pg_pwd
();
/*
/*
* Now we can clean up.
* Now we can clean up.
...
@@ -524,7 +520,7 @@ RemoveUser(char *user, CommandDest dest)
...
@@ -524,7 +520,7 @@ RemoveUser(char *user, CommandDest dest)
* we can be sure no other backend will try to write the flat
* we can be sure no other backend will try to write the flat
* file at the same time.
* file at the same time.
*/
*/
UpdatePgPwdFile
();
update_pg_pwd
();
/*
/*
* Now we can clean up.
* Now we can clean up.
...
@@ -758,7 +754,6 @@ AlterGroup(AlterGroupStmt *stmt, CommandDest dest)
...
@@ -758,7 +754,6 @@ AlterGroup(AlterGroupStmt *stmt, CommandDest dest)
*/
*/
if
(
stmt
->
action
==
0
)
/* change sysid */
if
(
stmt
->
action
==
0
)
/* change sysid */
{
{
bool
sysid_exists
=
false
;
ScanKeyData
keys
[
2
];
ScanKeyData
keys
[
2
];
HeapTuple
tuple
;
HeapTuple
tuple
;
HeapScanDesc
scan
;
HeapScanDesc
scan
;
...
...
src/backend/executor/nodeTidscan.c
View file @
93922990
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeTidscan.c,v 1.
2 1999/12/16 22:19:44 wieck
Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeTidscan.c,v 1.
3 1999/12/20 01:14:33 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -104,8 +104,6 @@ TidNext(TidScan *node)
...
@@ -104,8 +104,6 @@ TidNext(TidScan *node)
if
(
estate
->
es_evTuple
!=
NULL
&&
if
(
estate
->
es_evTuple
!=
NULL
&&
estate
->
es_evTuple
[
node
->
scan
.
scanrelid
-
1
]
!=
NULL
)
estate
->
es_evTuple
[
node
->
scan
.
scanrelid
-
1
]
!=
NULL
)
{
{
int
iptr
,
numQuals
;
ExecClearTuple
(
slot
);
ExecClearTuple
(
slot
);
if
(
estate
->
es_evTupleNull
[
node
->
scan
.
scanrelid
-
1
])
if
(
estate
->
es_evTupleNull
[
node
->
scan
.
scanrelid
-
1
])
return
slot
;
/* return empty slot */
return
slot
;
/* return empty slot */
...
...
src/backend/tcop/pquery.c
View file @
93922990
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.2
8 1999/09/24 00:24:53
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.2
9 1999/12/20 01:19:11
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -54,7 +54,6 @@ EState *
...
@@ -54,7 +54,6 @@ EState *
CreateExecutorState
(
void
)
CreateExecutorState
(
void
)
{
{
EState
*
state
;
EState
*
state
;
extern
int
NBuffers
;
/* ----------------
/* ----------------
* create a new executor state
* create a new executor state
...
...
src/backend/utils/adt/tid.c
View file @
93922990
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.1
2 1999/10/11 06:28:26 inoue
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.1
3 1999/12/20 01:23:04 tgl
Exp $
*
*
* NOTES
* NOTES
* input routine largely stolen from boxin().
* input routine largely stolen from boxin().
...
@@ -144,7 +144,7 @@ text_tid(const text *string)
...
@@ -144,7 +144,7 @@ text_tid(const text *string)
if
(
!
string
)
return
(
ItemPointer
)
0
;
if
(
!
string
)
return
(
ItemPointer
)
0
;
str
=
textout
(
string
);
str
=
textout
(
(
text
*
)
string
);
result
=
tidin
(
str
);
result
=
tidin
(
str
);
pfree
(
str
);
pfree
(
str
);
...
@@ -188,7 +188,7 @@ currtid_byrelname(const text *relname, ItemPointer tid)
...
@@ -188,7 +188,7 @@ currtid_byrelname(const text *relname, ItemPointer tid)
if
(
!
relname
)
return
result
;
if
(
!
relname
)
return
result
;
str
=
textout
(
relname
);
str
=
textout
(
(
text
*
)
relname
);
result
=
(
ItemPointer
)
palloc
(
sizeof
(
ItemPointerData
));
result
=
(
ItemPointer
)
palloc
(
sizeof
(
ItemPointerData
));
ItemPointerSetInvalid
(
result
);
ItemPointerSetInvalid
(
result
);
...
...
src/include/commands/user.h
View file @
93922990
...
@@ -21,4 +21,6 @@ extern void CreateGroup(CreateGroupStmt *stmt, CommandDest dest);
...
@@ -21,4 +21,6 @@ extern void CreateGroup(CreateGroupStmt *stmt, CommandDest dest);
extern
void
AlterGroup
(
AlterGroupStmt
*
stmt
,
CommandDest
dest
);
extern
void
AlterGroup
(
AlterGroupStmt
*
stmt
,
CommandDest
dest
);
extern
void
DropGroup
(
DropGroupStmt
*
stmt
,
CommandDest
dest
);
extern
void
DropGroup
(
DropGroupStmt
*
stmt
,
CommandDest
dest
);
extern
void
update_pg_pwd
(
void
);
#endif
/* USER_H */
#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