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
60ed8bbe
Commit
60ed8bbe
authored
Oct 05, 1998
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up warning and error messages to use single-quotes aroun strings.
parent
4fe24467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/backend/utils/init/miscinit.c
src/backend/utils/init/miscinit.c
+6
-6
No files found.
src/backend/utils/init/miscinit.c
View file @
60ed8bbe
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.2
2 1998/09/01 04:33:15 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.2
3 1998/10/05 02:48:49 thomas
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -236,12 +236,12 @@ SetDatabaseName(char *name)
...
@@ -236,12 +236,12 @@ SetDatabaseName(char *name)
#ifndef MULTIBYTE
#ifndef MULTIBYTE
/* even if MULTIBYTE is not enabled, this function is neccesary
/* even if MULTIBYTE is not enabled, this function is neccesary
* since pg_proc.h
does have
.
* since pg_proc.h
has an entry for it
.
*/
*/
const
char
*
const
char
*
getdatabaseencoding
()
getdatabaseencoding
()
{
{
elog
(
ERROR
,
"
you need to enable MB
to use this function"
);
elog
(
ERROR
,
"
MultiByte strings (MB) must be enabled
to use this function"
);
return
(
""
);
return
(
""
);
}
}
...
@@ -421,13 +421,13 @@ SetPgUserName()
...
@@ -421,13 +421,13 @@ SetPgUserName()
{
{
/* use the (possibly) authenticated name that's provided */
/* use the (possibly) authenticated name that's provided */
if
(
!
(
p
=
getenv
(
"PG_USER"
)))
if
(
!
(
p
=
getenv
(
"PG_USER"
)))
elog
(
FATAL
,
"SetPgUserName: PG_USER environment variable unset"
);
elog
(
FATAL
,
"SetPgUserName: PG_USER environment variable
is
unset"
);
}
}
else
else
{
{
/* setuid() has not yet been done, see above comment */
/* setuid() has not yet been done, see above comment */
if
(
!
(
pw
=
getpwuid
(
geteuid
())))
if
(
!
(
pw
=
getpwuid
(
geteuid
())))
elog
(
FATAL
,
"SetPgUserName: no entry in passwd file"
);
elog
(
FATAL
,
"SetPgUserName: no entry in
host
passwd file"
);
p
=
pw
->
pw_name
;
p
=
pw
->
pw_name
;
}
}
if
(
UserName
)
if
(
UserName
)
...
@@ -473,7 +473,7 @@ SetUserId()
...
@@ -473,7 +473,7 @@ SetUserId()
PointerGetDatum
(
userName
),
PointerGetDatum
(
userName
),
0
,
0
,
0
);
0
,
0
,
0
);
if
(
!
HeapTupleIsValid
(
userTup
))
if
(
!
HeapTupleIsValid
(
userTup
))
elog
(
FATAL
,
"SetUserId: user
\"
%s
\"
is not in
\"
%s
\"
"
,
elog
(
FATAL
,
"SetUserId: user
'%s' is not in '%s'
"
,
userName
,
userName
,
ShadowRelationName
);
ShadowRelationName
);
UserId
=
(
Oid
)
((
Form_pg_shadow
)
GETSTRUCT
(
userTup
))
->
usesysid
;
UserId
=
(
Oid
)
((
Form_pg_shadow
)
GETSTRUCT
(
userTup
))
->
usesysid
;
...
...
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