Nitish Upreti
0445d72cc7
Ensure local copy is triggered in tests
2022-07-12 10:38:18 -07:00
Nitish Upreti
8f8761ed40
Fix null handling when creating AuxiliaryStructures
2022-07-11 17:45:32 -07:00
Nitish Upreti
cf8fea5a3f
Address PR comments
2022-07-11 15:44:48 -07:00
Sameer Awasekar
fd46d8011d
Merge remote-tracking branch 'origin/users/niupre/BlockingSplitAPI' into users/saawasek/non_blocking_split_integrated
2022-07-10 19:35:36 +05:30
Sameer Awasekar
0d26c4c8c7
Non-Blocking Shard Split
2022-07-10 19:14:41 +05:30
Nitish Upreti
5a1a8d5dcb
Fully qualify copy udf name. Run Reindent
2022-07-09 16:35:10 -07:00
Nitish Upreti
a6ca23feda
Fixing bug and modifying test appropriately
2022-07-09 16:27:53 -07:00
Nitish Upreti
d091a6bee2
Test fix Round 2
2022-07-09 00:05:00 -07:00
Nitish Upreti
7eafc95fd3
Fix broken test
2022-07-08 23:50:22 -07:00
Nitish Upreti
f5f352c620
Fix upgrade & downgrade
2022-07-08 23:13:49 -07:00
Nitish Upreti
eb1e2f1450
Merging with main
2022-07-08 22:57:11 -07:00
Nitish Upreti
5c635511d9
Explaining shardGroupSplitIntervalListList
2022-07-08 22:45:07 -07:00
Nitish Upreti
a30c791eeb
Refactor code from review comments
2022-07-08 22:23:38 -07:00
Nitish Upreti
7ef8ea948d
Test name needing to be quoted
2022-07-08 21:44:35 -07:00
Nitish Upreti
a515a49f4c
Misc code review comments
2022-07-08 19:07:25 -07:00
Nitish Upreti
f8c2c2555f
Add Isolation test, fix foreign constraint deadlock issue
2022-07-08 15:03:46 -07:00
Nitish Upreti
fb42c17ac3
Isolation test and bug fix
2022-07-08 11:52:36 -07:00
Nitish Upreti
55770d2816
Fix metadata sync issue. Update regression test
2022-07-06 21:27:25 -07:00
aykutbozkurt
da089d72c5
we should check if relation is valid after fetching a relation
2022-07-06 16:35:01 +03:00
Halil Ozan Akgul
1490acbbe9
Removes incorrect parameter from get_all_active_transactions
2022-07-06 11:35:46 +03:00
Hanefi Onaldi
2b7cf0c097
Replace iso tester func only once ( #5964 )
...
Use Citus helper UDFs by default in iso tests
PostgreSQL isolation test infrastructure uses some UDFs to detect
whether concurrent sessions block each other. Citus implements
alternatives to that UDF so that we are able to detect and report
distributed transactions that get blocked on the worker nodes as well.
We needed to explicitly replace PG helper functions with Citus
implementations in each isolation file. Now we replace them by default.
2022-07-06 11:04:31 +03:00
Sameer Awasekar
49cada7e9e
fix makefile to exclude enterprise-split
2022-07-06 12:40:16 +05:30
Sameer Awasekar
ea9eb103e0
Fix nits
2022-07-06 11:22:19 +05:30
Sameer Awasekar
b6662ff872
Add hashmap, cleanup methods
2022-07-06 11:22:19 +05:30
Sameer Awasekar
213b15071b
Rename methods
2022-07-06 11:22:19 +05:30
Sameer Awasekar
6d55154529
Remove pg_sleep and address nits
2022-07-06 11:22:19 +05:30
Sameer Awasekar
99a21757d4
Fix name
2022-07-06 11:22:19 +05:30
Sameer Awasekar
0b11a324a4
Change value of static variable
2022-07-06 11:22:15 +05:30
Sameer Awasekar
91c9394ec4
Remove '.so' of plugin and have it embedded within Citus
2022-07-06 11:21:46 +05:30
Sameer Awasekar
23237e50a2
Add UDF description
2022-07-06 11:21:46 +05:30
Sameer Awasekar
a23beeb43f
Change return type, shard range as text
2022-07-06 11:21:43 +05:30
Sameer Awasekar
b66067d09f
Addressing review comments
...
1. Changed SM memory header
2. Changed API prototype
3. Refactored testcase using gset
2022-07-06 11:21:04 +05:30
Sameer Awasekar
5b82fd2ea3
Address review comments
2022-07-06 11:20:37 +05:30
Sameer Awasekar
672d198019
Renamed UDF to worker_split_shard_replication_setup
2022-07-06 11:20:34 +05:30
Sameer Awasekar
b425573b08
Revert "Fix testcases"
...
This reverts commit 2b926f6115b3ba11d7bbcdcdf02001dfd64a89fd.
2022-07-06 11:16:58 +05:30
Sameer Awasekar
aeaa1738bd
Fix testcases
2022-07-06 11:16:21 +05:30
Sameer Awasekar
01540d78d6
Rename method to IsCommitRecursive
2022-07-06 11:15:23 +05:30
Sameer Awasekar
f03a0343bc
fix indentations
2022-07-06 11:15:23 +05:30
Sameer Awasekar
f1be4888b9
Address comments
...
1) Created new schema for tests
2) Variable renaming
2022-07-06 11:15:18 +05:30
Sameer Awasekar
65eb62e723
Change encoding of replication slot names. Include table owners
2022-07-06 11:14:52 +05:30
Sameer Awasekar
04c2a92455
Reduced test timings
2022-07-06 11:14:52 +05:30
Sameer Awasekar
5a711a9176
Address comments
...
- Fix warnings
2022-07-06 11:14:52 +05:30
Sameer Awasekar
60ee33cfcc
Add testcase and handling of UPDATE for non-partition column.
...
- Change nodeId to uint32
- some test enchancement
- fix comments
2022-07-06 11:14:52 +05:30
Sameer Awasekar
3864cd3187
Rename file to split_shard_replication_setup.c
2022-07-06 11:14:52 +05:30
Sameer Awasekar
028344b05c
Remove unintentionally added pgoutput.h file
2022-07-06 11:14:52 +05:30
Sameer Awasekar
cbc4a4a11c
Change datatype from integer to bigint
2022-07-06 11:14:52 +05:30
Sameer Awasekar
daae0bb10d
Added colocated shard test
...
- added a new test helper file
2022-07-06 11:14:48 +05:30
Sameer Awasekar
d71ead0e43
Remove unwanted headers
2022-07-06 11:14:02 +05:30
Sameer Awasekar
5da75b84ac
Removed some methods. Handling review comments
2022-07-06 11:14:02 +05:30
Sameer Awasekar
4b064fa321
change name of logical decoding plugin
2022-07-06 11:14:02 +05:30
Sameer Awasekar
25bae46cd6
Fix identations
2022-07-06 11:14:02 +05:30
Sameer Awasekar
121ec8cd51
Change prototype of GetShardSplitInfoSMHeaderFromDSMHandle
2022-07-06 11:14:02 +05:30
Sameer Awasekar
59c3c93aa4
Addressing comments
...
- Changed name of functions
- Moved some functions from .h to .c file
2022-07-06 11:14:02 +05:30
Sameer Awasekar
75c6484e02
Address review comments(partially done)
...
- Parameterize testcase methods
- remove code for handline 'UPDATE'.
- replication slot encoding/decoding logic changed now
2022-07-06 11:14:02 +05:30
Sameer Awasekar
7a61bf1082
Refactored testcase to handle split shard locally
2022-07-06 11:14:02 +05:30
Nitish Upreti
c304b5f8a7
Merge pull request #799 from citusdata/niupre/ShardSplitAPI
...
Introducing 'citus_split_shard_by_split_points' UDF and 'SplitShard' infrastructure API.
2022-07-06 11:13:40 +05:30
Sameer Awasekar
a43cab7e71
Add DELETE scenario
2022-07-06 11:08:16 +05:30
Sameer Awasekar
c9844abea9
Introducing 'split_shard_replication_setup' UDF to handle the catchup phase of
...
citus_split_shard.
2022-07-06 11:08:10 +05:30
aykutbozkurt
d53a7760b0
* alter index/table rename weird syntax supported,
...
* correct the wrong level of lock if the weird syntax is used
2022-07-04 21:27:47 +03:00
aykutbozkurt
ba62c0a148
auto is a valid option for vacuum index_cleanup.
2022-07-04 19:27:55 +03:00
Ahmet Gedemenli
c8e1e243b8
Fix matviews for citus_add_local_table_to_metadata ( #6023 )
2022-07-04 17:00:07 +03:00
Nitish Upreti
e29222458c
Update downgrade script and quote schema/table in COPY statement
2022-07-01 13:35:27 -07:00
Hanefi Onaldi
f60809a6c1
Fix downgrade scripts from 11.0-2 to 11.0-1 ( #6039 )
2022-06-29 22:43:50 +03:00
Nitish Upreti
4fcdff53ae
Addressing open comments
2022-06-28 16:45:26 -07:00
Nitish Upreti
ebd0e9a617
Cleanup on catch
2022-06-28 16:22:37 -07:00
Nitish Upreti
dfec00940d
Update Test
2022-06-28 14:40:06 -07:00
Nitish Upreti
383fc2b6f0
Fix build break
2022-06-28 09:37:11 -07:00
Onder Kalaci
bab4c0a8c3
Fixes a bug that prevents upgrades when there are no worker nodes
2022-06-28 15:54:49 +02:00
Onder Kalaci
bd3a070369
Fixes a bug that prevents upgrades when there COMPRESSION and DEFAULT columns
2022-06-28 13:36:00 +02:00
Nitish Upreti
529f1bc8e3
Reindent
2022-06-27 22:24:23 -07:00
Nitish Upreti
928fa56558
Add support for citus.enable_binary_protocol
2022-06-27 22:21:05 -07:00
Nitish Upreti
75ae1d0265
Remove SplitCopyDestReceiver and use PartitionedResultDestReceiver
2022-06-27 13:45:58 -07:00
Nitish Upreti
0fde80c133
Removing include causing circle-ci build failure
2022-06-24 15:47:42 -07:00
Nitish Upreti
47e67e81e6
ReIndent
2022-06-24 13:48:43 -07:00
Nitish Upreti
9b45e3c6fc
Basic test for shard split workflow
2022-06-24 13:40:27 -07:00
Nitish Upreti
a836a322c4
Cleaning up and adding comments
2022-06-24 11:54:07 -07:00
Nitish Upreti
8b4956e9e9
Reindent
2022-06-24 09:56:06 -07:00
Nitish Upreti
f3a391b80f
Bug fix
2022-06-23 22:14:44 -07:00
Nitish Upreti
2f3f212746
Refactor
2022-06-23 18:38:55 -07:00
Nitish Upreti
686ce21e80
Blocking Split workflow works
2022-06-23 18:35:34 -07:00
aykutbozkurt
8194dc4c62
* Added isolation tests for vacuum,
...
* Added more regression tests for more vacuum options,
* Fixed deadlock for unqualified vacuum when there is only 1 worker,
* Supported lock_skipped for vacuum.
2022-06-23 15:33:14 +03:00
aykutbozkurt
1d6c81245c
fix bug, which is column mismatch of shard tasks when specifying column names for citus tables in vacuum and analyze commands
2022-06-23 15:33:14 +03:00
Aykut Bozkurt
6986f53835
propagate unqualified vacuum and analyze to all worker nodes
2022-06-23 15:33:14 +03:00
Nitish Upreti
aa047bda16
Negative tests
2022-06-22 16:42:27 -07:00
Nitish Upreti
ac29dbabf4
Hello World shard split works
2022-06-22 15:01:00 -07:00
Nitish Upreti
a8e3344a40
Fixing text local copy and adding tests
2022-06-22 13:51:30 -07:00
Nitish Upreti
ce11ab26ac
Local and Remote binary test
2022-06-22 10:27:22 -07:00
Gledis Zeneli
57d9cc1975
Update README.md for handling mitmproxy ( #6019 )
...
Update docs for handling mitmproxy in failure testing.
2022-06-22 14:57:17 +03:00
Nitish Upreti
bb2f72f91e
Remote copy hello world works
2022-06-20 14:20:33 -07:00
Nitish Upreti
91ca1fb0b4
Hello World Local Copy works
2022-06-20 11:53:22 -07:00
Nitish Upreti
58facee439
Fixing UDF definitions
2022-06-19 17:41:38 -07:00
Nitish Upreti
29f0081169
Reindent code
2022-06-19 17:18:28 -07:00
Nitish Upreti
4a05f1f1e8
Fixing executor and misc
2022-06-19 17:07:26 -07:00
Nitish Upreti
c38de446bb
Isolate Tenant and Split Shard Unification
2022-06-17 15:54:50 -07:00
Nitish Upreti
b502526ef1
Split points are text
2022-06-17 11:53:16 -07:00
Nitish Upreti
3e7b3e8f2f
Merge branch 'master' into users/niupre/BlockingSplitAPI
2022-06-17 09:54:29 -07:00
Nitish Upreti
0f1d2bbd1a
UDF calling
2022-06-16 18:06:09 -07:00
Nitish Upreti
77253cdafb
worker_split_copy UDF
2022-06-16 14:47:48 -07:00
Ahmet Gedemenli
1ee3e8b7f4
Fix creating stats bug when CREATE TABLE LIKE ( #6006 )
2022-06-16 12:43:47 +03:00
Jelte Fennema
184c7c0bce
Make enterprise features open source ( #6008 )
...
This PR makes all of the features open source that were previously only
available in Citus Enterprise.
Features that this adds:
1. Non blocking shard moves/shard rebalancer
(`citus.logical_replication_timeout`)
2. Propagation of CREATE/DROP/ALTER ROLE statements
3. Propagation of GRANT statements
4. Propagation of CLUSTER statements
5. Propagation of ALTER DATABASE ... OWNER TO ...
6. Optimization for COPY when loading JSON to avoid double parsing of
the JSON object (`citus.skip_jsonb_validation_in_copy`)
7. Support for row level security
8. Support for `pg_dist_authinfo`, which allows storing different
authentication options for different users, e.g. you can store
passwords or certificates here.
9. Support for `pg_dist_poolinfo`, which allows using connection poolers
in between coordinator and workers
10. Tracking distributed query execution times using
citus_stat_statements (`citus.stat_statements_max`,
`citus.stat_statements_purge_interval`,
`citus.stat_statements_track`). This is disabled by default.
11. Blocking tenant_isolation
12. Support for `sslkey` and `sslcert` in `citus.node_conninfo`
2022-06-16 00:23:46 -07:00