Marco Slot
ce344a54cb
Merge pull request #4431 from citusdata/marcocitus/time-partitions
2021-01-08 14:07:11 +01:00
Onur Tirtir
5289785da4
Add cascade_via_foreign_keys option to create_citus_local_table ( #4462 )
2021-01-08 15:13:26 +03:00
Marco Slot
e7f13978b5
Add a view for simple (time) partitions and their access methods
2021-01-08 11:28:15 +01:00
Marco Slot
9c851817f1
Merge pull request #4400 from citusdata/marcocitus/rebalancer
...
Add the shard rebalancer implementation
2021-01-07 19:15:48 +01:00
Marco Slot
011283122b
Add the shard rebalancer implementation
2021-01-07 16:51:55 +01:00
Onur Tirtir
d9a3e26f20
Fix flaky test in multi_foreign_key_relation_graph ( #4476 )
...
CREATE TABLE does not invalidate foreign key graph but some other set of
ddl commands do.
Previously, as we run multi_foreign_key & multi_foreign_key_relation_graph
in parallel, it's possible that multi_foreign_key invalidates foreign key
graph via some ddl commands and create table test in
multi_foreign_key_relation_graph becomes flaky.
So we un-parallelize those two tests.
2021-01-07 16:19:11 +03:00
Onur Tirtir
47cd1db209
Merge pull request #4457 from citusdata/cascade-udf
...
* Add infrastructure to cascade citus table functions on foreign keys
* Add cascade_via_foreign_keys option to undistribute_table
2021-01-07 15:52:08 +03:00
Onur Tirtir
f3801143fb
Add cascade option to undistribute_table
2021-01-07 15:41:49 +03:00
Onur Tirtir
2e3e680ba9
Add infra to cascade citus table functions
2021-01-07 15:41:48 +03:00
Marco Slot
952d1ee2cd
Merge pull request #4477 from citusdata/marcocitus/revert-metadata-sync-fix
2021-01-07 13:27:26 +01:00
Marco Slot
47c1b19174
Revert "Do metadata sync in a separate background worker."
...
This reverts commit 4df723cf9b
.
2021-01-07 10:30:04 +01:00
Marco Slot
d9f175532b
Revert "Trigger metadata sync at transaction commit"
...
This reverts commit a2c73bef27
.
2021-01-07 10:30:00 +01:00
Marco Slot
75c533ca02
Merge pull request #4473 from citusdata/marcocitus/fix-insert-select-local-execution
...
Support local execution for INSERT..SELECT with re-partitioning
2021-01-06 16:55:03 +01:00
Marco Slot
5de3337b2f
Support local execution for INSERT..SELECT with re-partitioning
2021-01-06 16:15:53 +01:00
Önder Kalacı
26c8f1632f
Merge pull request #4474 from citusdata/remove_warn_leak
...
Remove "WarnAboutLeakedPreparedTransaction" function
2021-01-06 16:13:36 +03:00
Onder Kalaci
2fe158961b
Remove "WarnAboutLeakedPreparedTransaction" function
...
We used to need WarnAboutLeakedPreparedTransaction()
as we didn't have auto 2PC recovery. But, we long have
2PC recovery by https://github.com/citusdata/citus/pull/1574
So, we don't need anymore.
2021-01-06 15:48:58 +03:00
Naisila Puka
bcfc0aa4e9
Rethrow original concurrent index creation failure message ( #4469 )
...
* Rethrow original concurrent index creation failure message
* Alter test outputs for concurrent index creation
* Detect duplicate table failure in concurrent index creation
* Add test for conc. index creation w/out duplicates
2021-01-06 15:27:13 +03:00
Onur Tirtir
0d7aea3a22
Move pre undistribute_table chekcs into C API ( #4456 )
2021-01-06 10:49:35 +03:00
Ahmet Gedemenli
1f36ff7c17
Prevent deadlock for long named partitioned index creation on single node ( #4461 )
...
* Prevent deadlock for long named partitioned index creation on single node
* Create IsSingleNodeCluster function
* Use both local and sequential execution
2021-01-05 13:39:13 +03:00
Ahmet Gedemenli
f27649754b
Add alter index set statistics support ( #4455 )
...
* Add alter index set statistics support
* Use attNum instead of attName
2021-01-05 13:23:11 +03:00
Onur Tirtir
e91e745dbc
Implement ConstraintWithNameIsOfType ( #4451 )
2020-12-29 11:53:06 +03:00
Onur Tirtir
c0e7f31eb0
Merge pull request #4452 from citusdata/implement-GetPgDependTuplesForDependingObjects
...
Implement GetPgDependTuplesForDependingObjects
2020-12-29 01:13:38 +03:00
Onur Tirtir
e74acf11fe
Merge branch 'master' into implement-GetPgDependTuplesForDependingObjects
2020-12-29 00:34:31 +03:00
Onur Tirtir
87e5276bdd
Fix fkey graph test for self reference ( #4450 )
2020-12-28 12:47:39 +03:00
Onur Tirtir
feda8bdd37
Now that we use tuples after closing pg_depend, don't release lock
2020-12-25 18:03:28 +03:00
Onur Tirtir
04a4167a8a
Implement GetPgDependTuplesForDependingObjects
2020-12-25 18:03:28 +03:00
Halil Ozan Akgül
a8626d1944
Fixes the table used in the error message ( #4449 )
2020-12-25 16:48:50 +03:00
Naisila Puka
b9cd91ef08
Merge pull request #4409 from citusdata/issue4237
...
Prevent empty placement creation in the coordinator
2020-12-25 12:43:42 +03:00
Naisila Puka
04aeb6938b
Merge branch 'master' into issue4237
2020-12-25 12:36:40 +03:00
Hadi Moshayedi
52164450eb
Merge pull request #4419 from citusdata/metadata_sync
...
Do metadata sync in a separate background worker.
2020-12-24 09:15:16 -08:00
Hadi Moshayedi
a2c73bef27
Trigger metadata sync at transaction commit
2020-12-24 08:28:38 -08:00
Hadi Moshayedi
4df723cf9b
Do metadata sync in a separate background worker.
2020-12-24 08:25:55 -08:00
Ahmet Gedemenli
299d3fcbc5
Merge pull request #4444 from citusdata/alter-statistics-propagation
...
Propagate alter statistics
2020-12-24 18:35:52 +03:00
Naisila Puka
0bb2c991f9
Merge branch 'master' into issue4237
2020-12-24 18:05:27 +03:00
Ahmet Gedemenli
5af585269a
Add separate pg13 test for stats targets
2020-12-24 18:01:25 +03:00
naisila
59a81491e8
Add test for master_create_empty_shard on coordinator
2020-12-24 17:59:40 +03:00
Ahmet Gedemenli
d4bc17f6f0
Propagate statistics with altered targets
2020-12-24 17:10:12 +03:00
Ahmet Gedemenli
48ca1637a4
Propagate alter stats owner
2020-12-24 17:10:12 +03:00
Ahmet Gedemenli
f7c70f9a63
Propagate alter stats target
2020-12-24 17:10:12 +03:00
Ahmet Gedemenli
5a1607b6c0
Propagate alter stats schema
2020-12-24 17:10:12 +03:00
Ahmet Gedemenli
bdce4a7e67
Propagate rename statistics
2020-12-24 17:10:12 +03:00
Onur Tirtir
5ed9197041
Implement infra to get foreign key connected relations ( #4439 )
...
On top of our foreign key graph, implement the infrastructure to get
list of relations that are connected to input relation via a foreign key
graph.
We need this to support cascading create_citus_local_table &
undistribute_table operations.
Also add regression tests to see what our foreign key graph is able to
capture currently.
2020-12-24 16:42:40 +03:00
Onur Tirtir
0db21bbe14
Remove fkey graph visited flags & rework GetConnectedListHelper ( #4446 )
...
With this commit, we remove visited flags from ForeignConstraintRelationshipNode
struct since keeping local state in global object is both dangerous and
meaningless.
Also to improve readability, this commit also converts needless recursion to
iterative DFS to avoid passing local hash-map as another parameter to
GetConnectedListHelper function.
2020-12-24 12:38:48 +03:00
SaitTalhaNisanci
1ac9cb3fd2
Update pg upgrade tester tag ( #4447 )
2020-12-24 12:13:24 +03:00
Onur Tirtir
57e7defa3c
Support CREATE INDEX commands without index name on citus tables ( #4273 )
2020-12-23 23:15:39 +03:00
Marco Slot
f7b182ebeb
Merge pull request #4445 from citusdata/marcocitus/remove-upgrade-to-reference-table
...
Remove upgrade_to_reference_table UDF
2020-12-23 17:41:57 +01:00
Halil Ozan Akgül
9fd3f62cb6
Refactor foreign key functions to use table types ( #4424 )
...
* Reuses extractReferencing/Referenced variables
* Refactors GetForeignKeyOids function to check table types
* Converts flags to inclusive
2020-12-23 17:05:09 +03:00
Onur Tirtir
d1b3eaf767
Refactor ColumnAppearsInForeignKeyToReferenceTable ( #4441 )
2020-12-23 11:44:02 +03:00
jeff-davis
90d63cb792
Add columnar pg_dump test. ( #4433 )
2020-12-22 15:57:35 -08:00
Marco Slot
e3dcc278e0
Remove upgrade_to_reference_table UDF
2020-12-23 00:40:14 +01:00