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
81053002
Commit
81053002
authored
Dec 30, 2005
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallow setting ssl = on if SSL is not compiled in.
parent
edafb4f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+15
-2
No files found.
src/backend/utils/misc/guc.c
View file @
81053002
...
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.30
4 2005/12/28 16:38:38 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.30
5 2005/12/30 00:13:50 petere
Exp $
*
*--------------------------------------------------------------------
*/
...
...
@@ -130,6 +130,7 @@ static const char *show_num_temp_buffers(void);
static
bool
assign_phony_autocommit
(
bool
newval
,
bool
doit
,
GucSource
source
);
static
const
char
*
assign_custom_variable_classes
(
const
char
*
newval
,
bool
doit
,
GucSource
source
);
static
bool
assign_ssl
(
bool
newval
,
bool
doit
,
GucSource
source
);
static
bool
assign_stage_log_stats
(
bool
newval
,
bool
doit
,
GucSource
source
);
static
bool
assign_log_stats
(
bool
newval
,
bool
doit
,
GucSource
source
);
static
bool
assign_transaction_read_only
(
bool
newval
,
bool
doit
,
GucSource
source
);
...
...
@@ -496,7 +497,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL
},
&
EnableSSL
,
false
,
NULL
,
NULL
false
,
assign_ssl
,
NULL
},
{
{
"fsync"
,
PGC_SIGHUP
,
WAL_SETTINGS
,
...
...
@@ -5864,6 +5865,18 @@ assign_custom_variable_classes(const char *newval, bool doit, GucSource source)
return
newval
;
}
static
bool
assign_ssl
(
bool
newval
,
bool
doit
,
GucSource
source
)
{
#ifndef USE_SSL
if
(
newval
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"SSL is not supported by this build"
)));
#endif
return
true
;
}
static
bool
assign_stage_log_stats
(
bool
newval
,
bool
doit
,
GucSource
source
)
{
...
...
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