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
c4ab2563
Commit
c4ab2563
authored
May 20, 1997
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New VAR r_plans added to enable turn ON/OFF
using right-sided plans.
parent
0f67fb46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
src/backend/tcop/variable.c
src/backend/tcop/variable.c
+37
-1
No files found.
src/backend/tcop/variable.c
View file @
c4ab2563
...
...
@@ -2,7 +2,7 @@
* Routines for handling of 'SET var TO', 'SHOW var' and 'RESET var'
* statements.
*
* $Id: variable.c,v 1.
8 1997/05/16 07:24:13 thomas
Exp $
* $Id: variable.c,v 1.
9 1997/05/20 10:31:42 vadim
Exp $
*
*/
...
...
@@ -17,6 +17,7 @@
extern
Cost
_cpu_page_wight_
;
extern
Cost
_cpu_index_page_wight_
;
extern
bool
_use_geqo_
;
extern
bool
_use_right_sided_plans_
;
/*-----------------------------------------------------------------------*/
#if USE_EURODATES
...
...
@@ -104,6 +105,40 @@ static bool reset_geqo ()
return
TRUE
;
}
static
bool
parse_r_plans
(
const
char
*
value
)
{
if
(
strcasecmp
(
value
,
"on"
)
==
0
)
_use_right_sided_plans_
=
true
;
else
if
(
strcasecmp
(
value
,
"off"
)
==
0
)
_use_right_sided_plans_
=
false
;
else
elog
(
WARN
,
"Bad value for Right-sided Plans (%s)"
,
value
);
return
TRUE
;
}
static
bool
show_r_plans
()
{
if
(
_use_right_sided_plans_
)
elog
(
NOTICE
,
"Right-sided Plans are ON"
);
else
elog
(
NOTICE
,
"Right-sided Plans are OFF"
);
return
TRUE
;
}
static
bool
reset_r_plans
()
{
#ifdef USE_RIGHT_SIDED_PLANS
_use_right_sided_plans_
=
true
;
#else
_use_right_sided_plans_
=
false
;
#endif
return
TRUE
;
}
static
bool
parse_cost_heap
(
const
char
*
value
)
{
float32
res
=
float4in
((
char
*
)
value
);
...
...
@@ -250,6 +285,7 @@ struct VariableParsers
{
"cost_index"
,
parse_cost_index
,
show_cost_index
,
reset_cost_index
},
{
"geqo"
,
parse_geqo
,
show_geqo
,
reset_geqo
},
{
"r_plans"
,
parse_r_plans
,
show_r_plans
,
reset_r_plans
},
{
NULL
,
NULL
,
NULL
}
};
...
...
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