Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f92ece4

Browse files
MasaoFujiiCommitfest Bot
authored and
Commitfest Bot
committed
Make GUC wal_receiver_timeout user-settable.
When multiple subscribers connect to different publisher servers, it can be useful to set different wal_receiver_timeout values for each connection to better detect failures. However, previously this wasn't possible, which limited flexibility in managing subscriptions. This commit changes wal_receiver_timeout to be user-settable, allowing different values to be assigned using ALTER ROLE SET for each subscription owner. This effectively enables per-subscription configuration.
1 parent 03c53a7 commit f92ece4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

doc/src/sgml/config.sgml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5147,9 +5147,6 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
51475147
If this value is specified without units, it is taken as milliseconds.
51485148
The default value is 60 seconds.
51495149
A value of zero disables the timeout mechanism.
5150-
This parameter can only be set in
5151-
the <filename>postgresql.conf</filename> file or on the server
5152-
command line.
51535150
</para>
51545151
</listitem>
51555152
</varlistentry>

src/backend/utils/misc/guc_tables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2308,7 +2308,7 @@ struct config_int ConfigureNamesInt[] =
23082308
},
23092309

23102310
{
2311-
{"wal_receiver_timeout", PGC_SIGHUP, REPLICATION_STANDBY,
2311+
{"wal_receiver_timeout", PGC_USERSET, REPLICATION_STANDBY,
23122312
gettext_noop("Sets the maximum wait time to receive data from the sending server."),
23132313
gettext_noop("0 disables the timeout."),
23142314
GUC_UNIT_MS

0 commit comments

Comments
 (0)