Skip to content

Commit 51f2235

Browse files
committed
Merge branch 'main' into change-to-5.0
2 parents ab96bec + 6f53a25 commit 51f2235

File tree

10 files changed

+759
-188
lines changed

10 files changed

+759
-188
lines changed

spock.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ bool spock_include_ddl_repset = false;
130130
bool allow_ddl_from_functions = false;
131131
int restart_delay_default;
132132
int restart_delay_on_exception;
133+
int spock_replay_queue_size;
134+
bool check_all_uc_indexes = false;
133135

134136

135137
void _PG_init(void);
@@ -994,6 +996,19 @@ _PG_init(void)
994996
NULL,
995997
NULL);
996998

999+
DefineCustomIntVariable("spock.exception_replay_queue_size",
1000+
"apply-worker replay queue size for exception",
1001+
NULL,
1002+
&spock_replay_queue_size,
1003+
4194304,
1004+
0,
1005+
INT_MAX,
1006+
PGC_SIGHUP,
1007+
0,
1008+
NULL,
1009+
NULL,
1010+
NULL);
1011+
9971012
DefineCustomEnumVariable("spock.readonly",
9981013
gettext_noop("Controls cluster read-only mode."),
9991014
NULL,
@@ -1003,6 +1018,15 @@ _PG_init(void)
10031018
PGC_SUSET, 0,
10041019
NULL, NULL, NULL);
10051020

1021+
DefineCustomBoolVariable("spock.check_all_uc_indexes",
1022+
gettext_noop("Check all valid unique indexes for conflict resolution on INSERT when primary or replica identity index fails."),
1023+
NULL,
1024+
&check_all_uc_indexes,
1025+
false,
1026+
PGC_SIGHUP,
1027+
0,
1028+
NULL, NULL, NULL);
1029+
10061030
if (IsBinaryUpgrade)
10071031
return;
10081032

spock.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ extern bool spock_include_ddl_repset;
5353
extern bool allow_ddl_from_functions;
5454
extern int restart_delay_default;
5555
extern int restart_delay_on_exception;
56+
extern int spock_replay_queue_size;
57+
extern bool check_all_uc_indexes;
5658
extern char *shorten_hash(const char *str, int maxlen);
5759

5860
extern List *textarray_to_list(ArrayType *textarray);

0 commit comments

Comments
 (0)