Commit Graph

2912 Commits (c563e0825c6e564160aa007056681c102ebf1740)

Author SHA1 Message Date
Halil Ozan Akgül 3e465a6449
Merge pull request #3028 from citusdata/mx_isolation_test_drop_alter_index_select_for_update
MX Isolation Tests for Drop, Alter, Index and Select For Update
2019-09-26 10:56:08 +03:00
Halil Ozan Akgul d56ab6274c Created isolation tests for drop, alter, index and select for update on MX. 2019-09-26 10:47:14 +03:00
SaitTalhaNisanci e3dcc9504f
Update all docker images with pg 11.5 (#3012) 2019-09-26 10:44:18 +03:00
SaitTalhaNisanci 24a56d2257
Add postgres upgrade job (#2973) 2019-09-25 17:31:19 +03:00
Halil Ozan Akgül cc5d68577a
Merge pull request #3025 from citusdata/mx_isolation_test_truncate
MX Isolation Tests for Truncate
2019-09-25 17:14:42 +03:00
Halil Ozan Akgul d426fb2159 Created isolation tests for truncate on MX. 2019-09-25 16:51:20 +03:00
Halil Ozan Akgül 198535b752
Merge pull request #3010 from citusdata/mx_isolation_test_copy
MX Isolation Tests for Copy
2019-09-25 15:54:45 +03:00
Halil Ozan Akgul 62b6852923 Created isolation tests for copy on MX. 2019-09-25 15:36:05 +03:00
Önder Kalacı cefedf5b00
Merge pull request #3026 from citusdata/improve_test
Improve some tests around local execution and CTE inlining on pg 12
2019-09-25 11:07:28 +02:00
Onder Kalaci 219f3676a0 Improve some tests around local execution and CTE inlining on pg 12 2019-09-25 10:53:19 +02:00
Philip Dubé 4f60e3a149 Feedback 2019-09-24 17:31:09 +00:00
Marco Slot c1e43b25da Use the new create_distributed_function API in some call tests 2019-09-24 17:31:09 +00:00
Marco Slot ca478defeb Deparse CALL statement instead of using original query string 2019-09-24 17:31:09 +00:00
Philip Dubé 90e1f1442a Annotated tests for multi_mx_call.
Co-authored-by: pykello <hadi.moshayedi@microsoft.com>
2019-09-24 17:31:09 +00:00
Marco Slot e269d990c9 Cast the distribution argument value when possible 2019-09-24 17:31:09 +00:00
Philip Dubé c95d46b4f3 Extend multi_mx_call with some of Hadi's suggestions for better test coverage 2019-09-24 17:31:09 +00:00
Philip Dubé 432a8ef85b Hadi's feedback
Co-authored-by: pykello <hadi.moshayedi@microsoft.com>
Co-authored-by: serprex <serprex@users.noreply.github.com>
2019-09-24 17:31:09 +00:00
Philip Dubé 16b8d17aba Test: multi_mx_call 2019-09-24 17:31:09 +00:00
Philip Dubé bc1ad67eb5 Distribute CALL on distributed procedures to metadata workers
Lots taken from https://github.com/citusdata/citus/pull/2829
2019-09-24 17:31:09 +00:00
Önder Kalacı 932a407f07
Merge pull request #3029 from citusdata/relax_colocation_checks
Relax the colocation checks for distributed functions
2019-09-24 16:37:36 +02:00
Onder Kalaci 18de78f386 Relax the colocation checks for distributed functions
As long as the types can be coerced, it is safe to pushdown
functions.
2019-09-24 16:31:08 +02:00
Jelte Fennema 7172c7f727
Add editorconfig settings for yaml files (#3027) 2019-09-24 16:09:20 +02:00
Jelte Fennema 0f90c2497e Use synchronous replication for follower tests 2019-09-24 15:51:49 +02:00
Jelte Fennema 78ccc323d1 Remove stuff needed only for PG 9.6 from test runner 2019-09-24 15:51:49 +02:00
Jelte Fennema bd2103e597 Remove flappy test 2019-09-24 14:15:33 +02:00
Jelte Fennema 897ec1bdeb Revert "Temporarily disable flappy test"
This reverts commit 4b4459ee62.
2019-09-24 14:15:33 +02:00
Marco Slot 4acca9b9fe
Merge pull request #3016 from citusdata/fix/swap_sequences
Swap pg_dist_node groupid and nodeid sequences
2019-09-24 12:46:16 +02:00
Marco Slot 42be8afd74 Swap pg_dist_node groupid and nodeid sequences 2019-09-24 12:03:44 +02:00
Marco Slot 0dea485c68 Fix misspelling in multi_colocation_utils 2019-09-24 11:27:30 +02:00
Marco Slot 4b4459ee62 Temporarily disable flappy test 2019-09-24 11:02:34 +02:00
Hadi Moshayedi e293230712
Merge pull request #3020 from citusdata/fix-pg12
Fix pg12
2019-09-23 15:18:43 -07:00
Hadi Moshayedi 48078a30e6 Fix wait_until_metadata_sync() for postgres 12.
Postgres 12 now has an assertion that the calls to WaitLatchOrSocket
handle postmaster death.
2019-09-23 14:15:35 -07:00
Philip Dubé 06faba91c0 Include ifdefs for pg12 API changes, update local_shard_executiuon test to avoid CTE inlining 2019-09-23 20:22:35 +00:00
Önder Kalacı ec9fee1c92
Merge pull request #3005 from citusdata/sync_metadata_to_node
Sync metadata to worker nodes after create_distributed_function
2019-09-23 19:01:38 +02:00
Onder Kalaci d37745bfc7 Sync metadata to worker nodes after create_distributed_function
Since the distributed functions are useful when the workers have
metadata, we automatically sync it.

Also, after master_add_node(). We do it lazily and let the deamon
sync it. That's mainly because the metadata syncing cannot be done
in transaction blocks, and we don't want to add lots of transactional
limitations to master_add_node() and create_distributed_function().
2019-09-23 18:30:53 +02:00
Marco Slot 59fe461d4a
Merge pull request #3009 from citusdata/small_serial
Support serial and smallserial when syncing metadata
2019-09-23 17:53:40 +02:00
Marco Slot b749d4fb65
Merge pull request #3008 from citusdata/fix/select_for_update
Fix assert failure in bare SELECT FROM reference table FOR UPDATE in MX
2019-09-23 17:41:04 +02:00
Marco Slot 5f23b951c7 Support serial and smallserial when syncing metadata 2019-09-23 17:39:21 +02:00
Marco Slot e58d76c5f6 Fix assert failure in bare SELECT FROM reference table FOR UPDATE in MX 2019-09-23 17:00:09 +02:00
SaitTalhaNisanci 71e7047e65
Enhance pg upgrade tests (#3002)
* Enhance pg upgrade tests

* Add a specific upgrade test for pg_dist_partition

We store the index of distribution column, and when a column with an
index that is smaller than distribution column index is dropped before
an upgrade, the index should still match the distribution column after
an upgrade
2019-09-23 17:37:14 +03:00
SaitTalhaNisanci 7bf04a999c
Refactor circleci config for better readability (#3013) 2019-09-23 16:21:21 +03:00
Marco Slot 9474bee98b
Merge pull request #3006 from citusdata/router_row_types
Support anonymous composite types on the target list in router queries
2019-09-23 15:02:19 +02:00
Marco Slot d85d77634d Handle anonymous composite types on the target list 2019-09-23 14:53:02 +02:00
Önder Kalacı 03fa3628f1
Merge pull request #2989 from citusdata/mx_isolation_test_update_delete_upsert
MX Isolation Tests for Update, Delete and Upsert
2019-09-23 14:43:21 +02:00
Halil Ozan Akgul b55b275a30 Created isolation tests for update, delete and upsert on MX 2019-09-23 14:13:29 +03:00
Önder Kalacı 900f5a61fc
Merge pull request #2990 from citusdata/add_function_arguments
Add arguments to `create_distributed_function()`
2019-09-23 08:35:32 +02:00
Onder Kalaci d7e2968120 Add parameters to create_distributed_function()
With this commit, we're changing the API for create_distributed_function()
such that users can provide the distribution argument and the colocation
information.
2019-09-22 21:53:33 +02:00
Önder Kalacı ff100b2720
Merge pull request #3001 from citusdata/fix_add_node_func
Make sure that functions are also listed in `SupportedDependencyByCitus`
2019-09-20 11:09:16 +02:00
Onder Kalaci e1fe8d60b4 Make sure that functions are also listed in SupportedDependencyByCitus
We've recently merged two commits, db5d03931d
and eccba1d4c3, which actually operates
on the very similar places.

It turns out that we've an integration issue, where master_add_node()
fails to replicate the functions to newly added node.
2019-09-20 11:02:50 +02:00
Hadi Moshayedi 4875c3c81c
Merge pull request #2997 from citusdata/fix_master_update_node
Set current snapshot in maintenance daemon.
2019-09-19 09:50:50 -07:00