Naisila Puka
10198b18e8
Technical readme small fixes ( #7261 )
2023-10-23 13:43:43 +03:00
Naisila Puka
1fe16fa746
Remove unnecessary pre-fastpath code ( #7262 )
...
This code was here because we first implemented
`fast path planner` via
[#2606 ](https://github.com/citusdata/citus/pull/2606 )
and then later `deferred pruning`
[#3369 ](https://github.com/citusdata/citus/pull/3369 )
So, for some years, this code was useful.
2023-10-23 13:01:48 +03:00
gindibay
690276c516
Fixes indentation
2023-10-23 12:35:53 +03:00
gindibay
ea0a908702
Fixes pg_dist_objects record in coordinators
2023-10-23 12:31:25 +03:00
gindibay
dad81042a5
Adds undistribute sql
2023-10-23 10:01:18 +03:00
zhjwpku
2d1444188c
Fix wrong comments around HasDistributionKey() ( #7223 )
...
HasDistributionKey & HasDistributionKeyCacheEntry returns true when the
corresponding table has a distribution key, the comments state the
opposite,
which should be fixed.
Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2023-10-18 10:53:00 +02:00
Onur Tirtir
db13afaa7b
Fix flaky columnar_create.sql test ( #7266 )
2023-10-17 16:58:17 +03:00
Gürkan İndibay
71a4633dad
Fixes typo and renames multi_process_utility ( #7259 )
2023-10-17 16:39:37 +03:00
Jelte Fennema-Nio
788e09a39a
Add a test for citus_shards where table names have spaces ( #7224 )
...
There was a bug reported for previous versions of Citus where
shard\_size was returning NULL for tables with spaces in them. It works
fine on the main branch though, but I'm still adding a test for this to
the main branch because it seems a good test to have.
2023-10-16 11:38:24 +02:00
gindibay
1e91b144e2
Fixed review issues
2023-10-14 20:49:26 +03:00
gindibay
a497a78239
Fixes review comments
2023-10-14 20:39:39 +03:00
gindibay
c6d1ef9e41
Rollbacks enable_create_database_propagation
2023-10-14 20:19:18 +03:00
gindibay
674fd3226c
Sets enable_create_database_propagation true
2023-10-14 19:50:32 +03:00
gindibay
3a6fdada11
Changes if to switch statements
2023-10-14 05:35:34 +03:00
gindibay
30bbfe444d
Fixes review notes
2023-10-13 18:45:58 +03:00
gindibay
ba3123455e
Fixes review notes
2023-10-13 18:43:06 +03:00
gindibay
ef920b0252
Fixes compile errors
2023-10-13 14:49:34 +03:00
gindibay
7ab86cf4ae
Fixes indentation
2023-10-13 14:30:50 +03:00
Gürkan İndibay
c3a9a37ae2
Merge branch 'create_alter_database' into alter_database_additional_options
2023-10-16 14:44:32 +03:00
gindibay
ca5e234821
Adds EnableCreateDatabasePropagation for drop db
2023-10-13 14:17:14 +03:00
gindibay
abf9dd9e59
Adds EnableCreateDatabasePropagation check
2023-10-13 14:17:14 +03:00
gindibay
333f77a267
Fixes distributed_object management
2023-10-13 14:17:14 +03:00
gindibay
c31479d2eb
Fixes review notes
2023-10-13 14:17:14 +03:00
gindibay
a274ffcb51
Adds If exists statement for drop database
2023-10-13 14:17:14 +03:00
gindibay
8cc67921cb
Fixes review comments
2023-10-13 14:17:14 +03:00
gindibay
875f347238
Fixes indentation
2023-10-13 14:17:14 +03:00
gindibay
f2092d2f44
Clarifies the code
2023-10-13 14:17:14 +03:00
gindibay
7bdeb2f866
Fixes indentation
2023-10-13 14:17:14 +03:00
gindibay
fb6dd413ad
Fixes PostprocessCreateDatabaseStmt comment
2023-10-13 14:17:14 +03:00
gindibay
d88a1e7785
Fixes compile error
2023-10-13 14:17:14 +03:00
gindibay
d0ef13dc89
Fixes review comments
2023-10-13 14:17:14 +03:00
gindibay
480c22acc2
Fixes the comment
2023-10-13 14:17:14 +03:00
gindibay
d778bb1ed6
Adds PG_VERSION_15 constant
2023-10-13 14:17:14 +03:00
gindibay
d46a8394a3
Fixes compile error
2023-10-13 14:17:14 +03:00
gindibay
df715a0402
Fixes indent
2023-10-13 14:17:14 +03:00
gindibay
134ec8f428
Fixes compile error for PG 14
2023-10-13 14:17:14 +03:00
gindibay
6096a0ed57
Adds missing types
2023-10-13 14:17:14 +03:00
gindibay
e7f8058016
Removes T_Boolean since it breaks pg14 compile
2023-10-13 14:17:14 +03:00
gindibay
82358fb37d
Fixes indentation
2023-10-13 14:17:13 +03:00
gindibay
0bf1c2c139
Refactors the code to make more managable
2023-10-13 14:17:13 +03:00
gindibay
09d201d1a8
Fixes pg15 output
2023-10-13 14:17:13 +03:00
gindibay
7bccf93183
Fixes icu locale
2023-10-13 14:17:13 +03:00
gindibay
d55ecc23ae
Updates test results
2023-10-13 14:17:13 +03:00
gindibay
32d74d9521
Fixes collate and ctype
2023-10-13 14:17:13 +03:00
gindibay
ddea1c897b
Removes iculocale
2023-10-13 14:17:13 +03:00
gindibay
da46878a8f
Fixes Locale
2023-10-13 14:17:13 +03:00
gindibay
031b6480f2
Fixes locale
2023-10-13 14:17:13 +03:00
gindibay
576264ceca
Fixes UTF error
2023-10-13 14:17:13 +03:00
gindibay
3050b0eab9
Fixes pg15 tests
2023-10-13 14:17:13 +03:00
gindibay
214ebc4374
Fixes encodings for pg16
2023-10-13 14:17:13 +03:00
gindibay
6f36556724
Revert "Removes pg15 changes to test unusal failures"
...
This reverts commit 85963e9cb5
.
2023-10-13 14:17:13 +03:00
gindibay
a7112fb965
Adds tablespace to test tablespace statement
2023-10-13 14:17:13 +03:00
gindibay
6913496f42
Fixes tests
2023-10-13 14:17:13 +03:00
gindibay
94abb07409
Fixes indentation
2023-10-13 14:17:13 +03:00
gindibay
1f578791bb
Fixes pg_dist_object delete problem
2023-10-13 14:17:13 +03:00
gindibay
51d1560b34
Adds OID to see the error cause
2023-10-13 14:17:13 +03:00
gindibay
c3d773ac6f
Changes test order
2023-10-13 14:17:13 +03:00
gindibay
1d9c02fab9
Changes schedule location
2023-10-13 14:17:13 +03:00
gindibay
5eb87839b6
Rollbacks last test
2023-10-13 14:17:13 +03:00
gindibay
acece9818c
Rollbacks pg_regress_multi
2023-10-13 14:17:13 +03:00
gindibay
c7304abd54
Fixes pg15 file
2023-10-13 14:17:13 +03:00
gindibay
14618878c8
Tests error cause
2023-10-13 14:17:13 +03:00
gindibay
29093e042a
Removes pg15 changes to test unusal failures
2023-10-13 14:17:13 +03:00
gindibay
aa47ca8bda
Fixes tablespace results
2023-10-13 14:17:13 +03:00
gindibay
4c79788936
Fixes tablespace error
2023-10-13 14:17:13 +03:00
gindibay
b01c9ffb45
Removes unnecessary fileds from selects
2023-10-13 14:17:13 +03:00
gindibay
d0bd20c9b1
Fixes tests
2023-10-13 14:17:13 +03:00
gindibay
25488afccd
Changes encoding
2023-10-13 14:17:13 +03:00
gindibay
a5e0b9411a
Adds tests for create and drop database
2023-10-13 14:17:13 +03:00
gindibay
8c98369e21
Fixes affected tests
2023-10-13 14:17:13 +03:00
gindibay
5c50d58757
Changes EnableCreateDatabasePropagation to false
...
to fix failing tests
2023-10-13 14:17:13 +03:00
gindibay
3735bef156
Fixes sql comments
2023-10-13 14:17:13 +03:00
gindibay
cef9ac702e
Fixes indentation
2023-10-13 14:17:13 +03:00
gindibay
1e7c18cb61
Removes unnecessary code
2023-10-13 14:17:13 +03:00
gindibay
40893e6ffc
Removes unnecessary files
2023-10-13 14:17:13 +03:00
gindibay
eb1f093381
Fixes runtime and compile errors
2023-10-13 14:17:13 +03:00
gindibay
ca36833b5c
Fix for Pg16 compile error
2023-10-13 14:16:43 +03:00
gindibay
bd398a627b
Fixes compile errors
2023-10-13 14:16:43 +03:00
gindibay
39cb7977ce
Fixes additional compile errors
2023-10-13 14:16:43 +03:00
gindibay
0d5c2f9350
Adds first commit
2023-10-13 14:16:43 +03:00
gindibay
cd4ffd1878
Fixes merge errors
2023-10-13 06:16:12 +03:00
Gürkan İndibay
c38e856f13
Merge branch 'create_alter_database' into alter_database_additional_options
2023-10-14 08:15:45 +03:00
gindibay
0fdb3384d9
Adds EnableCreateDatabasePropagation for drop db
2023-10-13 04:46:53 +03:00
gindibay
06050a1411
Adds EnableCreateDatabasePropagation check
2023-10-13 04:36:49 +03:00
gindibay
bc0a283221
Fixes distributed_object management
2023-10-13 04:26:03 +03:00
gindibay
761fb13ac8
Fixes review notes
2023-10-13 03:10:17 +03:00
gindibay
e5a6b7880c
Adds If exists statement for drop database
2023-10-13 01:36:01 +03:00
gindibay
4087d1941d
Fixes review comments
2023-10-13 00:12:38 +03:00
gindibay
f8962380a1
Adds expected test result
2023-10-12 19:36:13 +03:00
gindibay
8d6d27a241
Adds set tablespace support
2023-10-12 19:06:27 +03:00
gindibay
a72e474c3a
Fixes test error
2023-10-11 21:25:49 +03:00
gindibay
7278968365
Adds additional tests for set tablespace
2023-10-11 20:40:26 +03:00
gindibay
80e450b860
Adds tests
2023-10-11 20:21:08 +03:00
gindibay
959d26db89
Fixes code indents
2023-10-11 20:01:12 +03:00
gindibay
6a333ca742
Adds alter database rename stmt propagation
2023-10-11 19:59:33 +03:00
gindibay
fd521f2792
Fixes indentation
2023-10-11 18:09:45 +03:00
gindibay
37d2a5f5a8
Adds seperate set tablespace on each node support
2023-10-11 18:09:00 +03:00
gindibay
2d9da93d3d
Adds connection limit
2023-10-11 17:28:40 +03:00
Gürkan İndibay
f7f768168b
Merge branch 'main' into create_alter_database
2023-10-10 11:02:40 +03:00
Emel Şimşek
e9035f6d32
Send keepalive messages in split decoder periodically to avoid wal receiver timeouts during large shard splits. ( #7229 )
...
DESCRIPTION: Send keepalive messages during the logical replication
phase of large shard splits to avoid timeouts.
During the logical replication part of the shard split process, split
decoder filters out the wal records produced by the initial copy. If the
number of wal records is big, then split decoder ends up processing for
a long time before sending out any wal records through pgoutput. Hence
the wal receiver may time out and restarts repeatedly causing our split
driver code catch up logic to fail.
Notes:
1. If the wal_receiver_timeout is set to a very small number e.g. 600ms,
it may time out before receiving the keepalives. My tests show that this
code works best when the` wal_receiver_timeout `is set to 1minute, which
is the default value.
2. Once a logical replication worker time outs, a new one gets launched.
The new logical replication worker sets the pg_stat_subscription columns
to initial values. E.g. the latest_end_lsn is set to 0. Our driver logic
in `WaitForGroupedLogicalRepTargetsToCatchUp` can not handle LSN value
to go back. This is the main reason for it to get stuck in the infinite
loop.
2023-10-09 22:33:08 +03:00