</varlistentry>
<varlistentry id="guc-bgwriter-flush-after" xreflabel="bgwriter_flush_after">
- <term><varname>bgwriter_flush_after</varname> (<type>int</type>)
+ <term><varname>bgwriter_flush_after</varname> (<type>integer</type>)
<indexterm>
<primary><varname>bgwriter_flush_after</> configuration parameter</primary>
</indexterm>
</varlistentry>
<varlistentry id="guc-backend-flush-after" xreflabel="backend_flush_after">
- <term><varname>backend_flush_after</varname> (<type>int</type>)
+ <term><varname>backend_flush_after</varname> (<type>integer</type>)
<indexterm>
<primary><varname>backend_flush_after</> configuration parameter</primary>
</indexterm>
and <literal>2MB</literal>. The default is <literal>128Kb</> on
Linux, <literal>0</> elsewhere. (Non-default values of
<symbol>BLCKSZ</symbol> change the default and maximum.)
- This parameter can only be set in the <filename>postgresql.conf</>
- file or on the server command line.
</para>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry id="guc-checkpoint-flush-after" xreflabel="checkpoint_flush_after">
- <term><varname>checkpoint_flush_after</varname> (<type>int</type>)
+ <term><varname>checkpoint_flush_after</varname> (<type>integer</type>)
<indexterm>
<primary><varname>checkpoint_flush_after</> configuration parameter</primary>
</indexterm>
than the OS's page cache, where performance might degrade. This
setting may have no effect on some platforms. The valid range is
between <literal>0</literal>, which disables controlled writeback,
- and <literal>2MB</literal>. The default is <literal>128Kb</> on
+ and <literal>2MB</literal>. The default is <literal>256Kb</> on
Linux, <literal>0</> elsewhere. (Non-default values of
<symbol>BLCKSZ</symbol> change the default and maximum.)
This parameter can only be set in the <filename>postgresql.conf</>
NULL, NULL, NULL
},
+ {
+ {"checkpoint_flush_after", PGC_SIGHUP, WAL_CHECKPOINTS,
+ gettext_noop("Number of pages after which previously performed writes are flushed to disk."),
+ NULL,
+ GUC_UNIT_BLOCKS
+ },
+ &checkpoint_flush_after,
+ /* see bufmgr.h: OS dependent default */
+ DEFAULT_CHECKPOINT_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
+ NULL, NULL, NULL
+ },
+
{
{"wal_buffers", PGC_POSTMASTER, WAL_SETTINGS,
gettext_noop("Sets the number of disk-page buffers in shared memory for WAL."),
NULL, NULL, NULL
},
+ {
+ {"bgwriter_flush_after", PGC_SIGHUP, RESOURCES_BGWRITER,
+ gettext_noop("Number of pages after which previously performed writes are flushed to disk."),
+ NULL,
+ GUC_UNIT_BLOCKS
+ },
+ &bgwriter_flush_after,
+ /* see bufmgr.h: OS dependent default */
+ DEFAULT_BGWRITER_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
+ NULL, NULL, NULL
+ },
+
{
{"effective_io_concurrency",
PGC_USERSET,
},
{
- {"checkpoint_flush_after", PGC_SIGHUP, RESOURCES_ASYNCHRONOUS,
- gettext_noop("Number of pages after which previously performed writes are flushed to disk."),
- NULL,
- GUC_UNIT_BLOCKS
- },
- &checkpoint_flush_after,
- /* see bufmgr.h: OS dependent default */
- DEFAULT_CHECKPOINT_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
- NULL, NULL, NULL
- },
-
- {
- {"backend_flush_after", PGC_USERSET, WAL_CHECKPOINTS,
+ {"backend_flush_after", PGC_USERSET, RESOURCES_ASYNCHRONOUS,
gettext_noop("Number of pages after which previously performed writes are flushed to disk."),
NULL,
GUC_UNIT_BLOCKS
NULL, NULL, NULL
},
- {
- {"bgwriter_flush_after", PGC_SIGHUP, WAL_CHECKPOINTS,
- gettext_noop("Number of pages after which previously performed writes are flushed to disk."),
- NULL,
- GUC_UNIT_BLOCKS
- },
- &bgwriter_flush_after,
- /* see bufmgr.h: 16 on Linux, 0 otherwise */
- DEFAULT_BGWRITER_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
- NULL, NULL, NULL
- },
-
{
{"max_worker_processes",
PGC_POSTMASTER,
#bgwriter_delay = 200ms # 10-10000ms between rounds
#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round
+#bgwriter_flush_after = 0 # 0 disables,
+ # default is 512kb on linux, 0 otherwise
# - Asynchronous Behavior -
#max_parallel_degree = 0 # max number of worker processes per node
#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
# (change requires restart)
+#backend_flush_after = 0 # 0 disables,
+ # default is 128kb on linux, 0 otherwise
#------------------------------------------------------------------------------
#max_wal_size = 1GB
#min_wal_size = 80MB
#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
+#checkpoint_flush_after = 0 # 0 disables,
+ # default is 256kb on linux, 0 otherwise
#checkpoint_warning = 30s # 0 disables
# - Archiving -