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
0892ecbc
Commit
0892ecbc
authored
Sep 16, 2013
by
Heikki Linnakangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a GUC to report whether data page checksums are enabled.
Bernd Helmle
parent
cdeb79ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+13
-0
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+4
-0
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+12
-0
No files found.
doc/src/sgml/config.sgml
View file @
0892ecbc
...
...
@@ -6169,6 +6169,19 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
</listitem>
</varlistentry>
<varlistentry id="guc-data-checksums" xreflabel="data_checksums">
<term><varname>data_checksums</varname> (<type>boolean</type>)</term>
<indexterm>
<primary><varname>data_checksums</> configuration parameter</primary>
</indexterm>
<listitem>
<para>
Reports whether data checksums are enabled for this cluster.
See <xref linkend="app-initdb-data-checksums"> for more information.
</para>
</listitem>
</varlistentry>
<varlistentry id="guc-integer-datetimes" xreflabel="integer_datetimes">
<term><varname>integer_datetimes</varname> (<type>boolean</type>)</term>
<indexterm>
...
...
src/backend/access/transam/xlog.c
View file @
0892ecbc
...
...
@@ -4844,6 +4844,10 @@ ReadControlFile(void)
" but the server was compiled without USE_FLOAT8_BYVAL."
),
errhint
(
"It looks like you need to recompile or initdb."
)));
#endif
/* Make the fixed settings visible as GUC variables, too */
SetConfigOption
(
"data_checksums"
,
DataChecksumsEnabled
()
?
"yes"
:
"no"
,
PGC_INTERNAL
,
PGC_S_OVERRIDE
);
}
void
...
...
src/backend/utils/misc/guc.c
View file @
0892ecbc
...
...
@@ -466,6 +466,7 @@ static int max_identifier_length;
static
int
block_size
;
static
int
segment_size
;
static
int
wal_block_size
;
static
bool
data_checksums
;
static
int
wal_segment_size
;
static
bool
integer_datetimes
;
static
int
effective_io_concurrency
;
...
...
@@ -1457,6 +1458,17 @@ static struct config_bool ConfigureNamesBool[] =
NULL
,
NULL
,
NULL
},
{
{
"data_checksums"
,
PGC_INTERNAL
,
PRESET_OPTIONS
,
gettext_noop
(
"Shows whether data checksums are turned on for this cluster"
),
NULL
,
GUC_NOT_IN_SAMPLE
|
GUC_DISALLOW_IN_FILE
},
&
data_checksums
,
false
,
NULL
,
NULL
,
NULL
},
/* End-of-list marker */
{
{
NULL
,
0
,
0
,
NULL
,
NULL
},
NULL
,
false
,
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