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
201e5b28
Commit
201e5b28
authored
Oct 13, 2009
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new PGC_S_DATABASE_USER enum value to several places missed by my patch
last week. Per note and patch from Jeff Davis.
parent
8d54c248
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+5
-2
src/include/utils/guc.h
src/include/utils/guc.h
+3
-1
No files found.
src/backend/utils/misc/guc.c
View file @
201e5b28
...
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.52
0 2009/10/03 18:04:57 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.52
1 2009/10/13 14:18:40 alvherre
Exp $
*
*--------------------------------------------------------------------
*/
...
...
@@ -460,6 +460,7 @@ const char *const GucSource_Names[] =
/* PGC_S_ARGV */
"command line"
,
/* PGC_S_DATABASE */
"database"
,
/* PGC_S_USER */
"user"
,
/* PGC_S_DATABASE_USER */
"database user"
,
/* PGC_S_CLIENT */
"client"
,
/* PGC_S_OVERRIDE */
"override"
,
/* PGC_S_INTERACTIVE */
"interactive"
,
...
...
@@ -4556,7 +4557,8 @@ set_config_option(const char *name, const char *value,
*/
elevel
=
IsUnderPostmaster
?
DEBUG3
:
LOG
;
}
else
if
(
source
==
PGC_S_DATABASE
||
source
==
PGC_S_USER
)
else
if
(
source
==
PGC_S_DATABASE
||
source
==
PGC_S_USER
||
source
==
PGC_S_DATABASE_USER
)
elevel
=
WARNING
;
else
elevel
=
ERROR
;
...
...
@@ -5762,6 +5764,7 @@ define_custom_variable(struct config_generic * variable)
break
;
case
PGC_S_DATABASE
:
case
PGC_S_USER
:
case
PGC_S_DATABASE_USER
:
case
PGC_S_CLIENT
:
case
PGC_S_SESSION
:
default:
...
...
src/include/utils/guc.h
View file @
201e5b28
...
...
@@ -7,7 +7,7 @@
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.10
7 2009/10/07 22:14:26
alvherre Exp $
* $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.10
8 2009/10/13 14:18:40
alvherre Exp $
*--------------------------------------------------------------------
*/
#ifndef GUC_H
...
...
@@ -77,6 +77,8 @@ typedef enum
* as the actual source of any value). This is an interactive case, but
* it needs its own source value because some assign hooks need to make
* different validity checks in this case.
*
* NB: see GucSource_Names in guc.c if you change this.
*/
typedef
enum
{
...
...
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