diff --git a/pgxn/neon/communicator.c b/pgxn/neon/communicator.c index 932034e22e..db3e053321 100644 --- a/pgxn/neon/communicator.c +++ b/pgxn/neon/communicator.c @@ -95,7 +95,7 @@ static uint32 local_request_counter; * Various settings related to prompt (fast) handling of PageStream responses * at any CHECK_FOR_INTERRUPTS point. */ -int readahead_getpage_pull_timeout_ms = 0; +int readahead_getpage_pull_timeout_ms = 50; static int PS_TIMEOUT_ID = 0; static bool timeout_set = false; static bool timeout_signaled = false; diff --git a/pgxn/neon/libpagestore.c b/pgxn/neon/libpagestore.c index dfabb6919e..19c14511bd 100644 --- a/pgxn/neon/libpagestore.c +++ b/pgxn/neon/libpagestore.c @@ -75,7 +75,7 @@ char *neon_auth_token; int readahead_buffer_size = 128; int flush_every_n_requests = 8; -int neon_protocol_version = 2; +int neon_protocol_version = 3; static int neon_compute_mode = 0; static int max_reconnect_attempts = 60; @@ -1432,7 +1432,7 @@ pg_init_libpagestore(void) "PageStream connection when we have pages which " "were read ahead but not yet received.", &readahead_getpage_pull_timeout_ms, - 0, 0, 5 * 60 * 1000, + 50, 0, 5 * 60 * 1000, PGC_USERSET, GUC_UNIT_MS, NULL, NULL, NULL); @@ -1440,7 +1440,7 @@ pg_init_libpagestore(void) "Version of compute<->page server protocol", NULL, &neon_protocol_version, - 2, /* use protocol version 2 */ + 3, /* use protocol version 3 */ 2, /* min */ 3, /* max */ PGC_SU_BACKEND,