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
e0d6630b
Commit
e0d6630b
authored
Aug 13, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix recent guc comment-to-default patch for custom variables.
parent
ab6aa40b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+7
-4
No files found.
src/backend/utils/misc/guc.c
View file @
e0d6630b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.3
39 2006/08/13 02:22:24
momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.3
40 2006/08/13 15:37:02
momjian Exp $
*
*
*--------------------------------------------------------------------
*--------------------------------------------------------------------
*/
*/
...
@@ -4082,9 +4082,9 @@ verify_config_option(const char *name, const char *value,
...
@@ -4082,9 +4082,9 @@ verify_config_option(const char *name, const char *value,
if
(
parse_value
(
elevel
,
record
,
value
,
&
source
,
false
,
NULL
))
if
(
parse_value
(
elevel
,
record
,
value
,
&
source
,
false
,
NULL
))
{
{
/*
/*
* Mark record
like presented
in the config file. Be carefull if
* Mark record
as present
in the config file. Be carefull if
* you use this function for another purpose than config file
* you use this function for another purpose than config file
* verification. It causes confusion
config
file parser.
* verification. It causes confusion
in the config
file parser.
*/
*/
record
->
status
|=
GUC_IN_CONFFILE
;
record
->
status
|=
GUC_IN_CONFFILE
;
...
@@ -5512,7 +5512,10 @@ is_newvalue_equal(struct config_generic *record, const char *newvalue)
...
@@ -5512,7 +5512,10 @@ is_newvalue_equal(struct config_generic *record, const char *newvalue)
{
{
struct
config_string
*
conf
=
(
struct
config_string
*
)
record
;
struct
config_string
*
conf
=
(
struct
config_string
*
)
record
;
return
strcmp
(
*
conf
->
variable
,
newvalue
)
==
0
;
if
(
!*
conf
->
variable
)
/* custom variable with no value yet */
return
false
;
else
return
strcmp
(
*
conf
->
variable
,
newvalue
)
==
0
;
}
}
}
}
...
...
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