Commit Graph

2253 Commits (1b1c6374f7ecb2784090f15b7f9cb1584f28dda8)

Author SHA1 Message Date
Önder Kalacı 5ddba6a7cd
Merge pull request #2367 from citusdata/fix_wrong_escaping
Do not recover wrong distributed transactions in MX
2018-09-07 11:44:11 +03:00
Onder Kalaci bf28dd0cff Do not recover wrong distributed transactions in MX 2018-09-07 09:52:46 +03:00
Murat Tuncer e5bba08595
Merge pull request #2366 from citusdata/fix_pg11_build_failure
Reflect changed index for constraint scans in PG11
2018-09-07 08:23:04 +03:00
Murat Tuncer 65276311f7 Reflect changed index for constraint scans in PG11 2018-09-07 08:07:01 +03:00
Murat Tuncer 7b63b23808
Merge pull request #2364 from citusdata/pg11_feature_index_include
Add support for INCLUDE option in index creation
2018-09-06 20:46:33 +03:00
Murat Tuncer d8279569b8 Add support for INCLUDE option in index creation
INCLUDE is a new feature in index creation in PG11.
Included column/expression paramameters are now forwarded to shards
2018-09-06 19:41:06 +03:00
Murat Tuncer 0c1bb26448
Merge pull request #2359 from citusdata/pg11_features
Add regression tests related to new PG11 partitioning features
2018-09-06 19:39:06 +03:00
Murat Tuncer 7d3f7c2bf4 Add regression tests related to new PG11 partitioning features 2018-09-06 19:06:28 +03:00
Murat Tuncer ee27637c11
Merge pull request #2368 from citusdata/allow_pg11_failures
Temporarily allow PG11 failures
2018-09-06 18:48:27 +03:00
Murat Tuncer c7094c083b Temporarily allow PG11 failures
This is a temporary commit to unblock PG11 failures at travis
until end of milestone.
2018-09-06 18:33:43 +03:00
Murat Tuncer 49645d1aee
Merge pull request #2361 from citusdata/pg11_features_part_2
Add regression tests for new PG11 window functions
2018-09-06 08:55:55 +03:00
Murat Tuncer 55cf3e321c Add regression tests for new PG11 window functions
- <offset> preceding/following
- exclude
2018-09-04 10:48:04 +03:00
Önder Kalacı c64f669755
Merge pull request #2343 from citusdata/fix_drop_table_deadlock
Make sure that table (and metadata) is dropped before shards are dropped on Citus MX
2018-09-04 09:44:57 +03:00
Onder Kalaci 1b3257816e Make sure that table is dropped before shards are dropped
This commit fixes a bug where a concurrent DROP TABLE deadlocks
with SELECT (or DML) when the SELECT is executed from the workers.

The problem was that Citus used to remove the metadata before
droping the table on the workers. That creates a time window
where the SELECT starts running on some of the nodes and DROP
table on some of the other nodes.
2018-09-04 08:57:20 +03:00
Önder Kalacı 3ace0ad5eb
Merge pull request #2345 from citusdata/truncate_on_workers
Support TRUNCATE from the MX worker nodes
2018-09-03 15:29:14 +03:00
Onder Kalaci 2ab0e63b30 Fix flaky test 2018-09-03 14:06:32 +03:00
Onder Kalaci 26e308bf2a Support TRUNCATE from the MX worker nodes
This commit enables support for TRUNCATE on both
distributed table and reference tables.

The basic idea is to acquire lock on the relation by sending
the TRUNCATE command to all metedata worker nodes. We only
skip sending the TRUNCATE command to the node that actually
executus the command to prevent a self-distributed-deadlock.
2018-09-03 14:06:31 +03:00
Onder Kalaci 97ba7bf2eb Add the option to skip the node that is executing the node 2018-09-03 14:01:24 +03:00
Marco Slot f34ab55389 Fix bug preventing rollback in stored procedure 2018-08-31 20:49:20 +02:00
Marco Slot 55f46acedf Support TABLESAMPLE in router queries 2018-08-31 13:22:38 +02:00
Burak Velioglu a4c6cefb17
Merge pull request #2351 from citusdata/master-update-changelog-28082018
Add changelog entry for 7.5.1
2018-08-28 14:09:22 +03:00
velioglu b6cee4bb96 Add changelog entry for 7.5.1 2018-08-28 13:34:37 +03:00
Burak Velioglu eb2318f413
Merge pull request #2333 from citusdata/dml_on_ref_mx
Adds support for writing to reference tables from MX nodes.
2018-08-28 09:06:43 +03:00
velioglu bd30e3e908 Add support for writing to reference tables from MX nodes 2018-08-27 18:15:04 +03:00
velioglu 2639149bd8 Enterprise functions about metadata/resource locks 2018-08-27 16:32:20 +03:00
Önder Kalacı 6cea01620a
Merge pull request #2339 from citusdata/fix_modifying_cte
Make sure that modifying CTEs always use the correct execution mode
2018-08-23 15:44:38 +03:00
Onder Kalaci b8af8c359b Make sure that modifying CTEs always use the correct execution mode 2018-08-23 14:53:55 +03:00
Önder Kalacı 1abfce9969
Merge pull request #2346 from citusdata/fix_rte_walker
Improve query pushdown planning for very large number of shards and queries with many tables
2018-08-22 20:37:27 +03:00
Onder Kalaci 910ea392f5 Prevent multiple placements of a single shard to lead huge memory allocations 2018-08-22 19:25:01 +03:00
Onder Kalaci cb481f55cf Prevent excessive number of unnecessary range table traversal 2018-08-22 11:45:00 +03:00
Mehmet Furkan ŞAHİN 235542fe6b
Merge pull request #2342 from citusdata/applyLogRedactionNoop
ApplyLogRedaction noop func is added
2018-08-17 15:11:47 -07:00
mehmet furkan şahin ef9f38b68d ApplyLogRedaction noop func is added 2018-08-17 14:48:54 -07:00
Jason Petersen c3c0d62ca6
Add test showing poolinfo validation works
In other words, that it errors out.
2018-08-16 20:14:18 -06:00
Jason Petersen 900e88057c
Merge pull request #2341 from citusdata/disable_jit
Disable jit for now, make PG11 required

cr: @jasonmp85
2018-08-16 20:11:45 -06:00
Jason Petersen fd32c3590b
Mark PostgreSQL 11 builds as required
We will no longer accept regressions in our support for PostgreSQL 11.
2018-08-16 19:38:55 -06:00
Jason Petersen c4e2349b80
Mark failing PostgreSQL 11 test as ignored
This commit should be reverted once a new PostgreSQL 11 beta is
available: it's due to a bug in the partitioning code which has been
fixed in REL_11_STABLE but (not yet) a released tag.
2018-08-16 19:37:37 -06:00
Jason Petersen a2fb5a84f1
Disable JIT during PostgreSQL 11 test runs
It's causing problems with one of our tests.
2018-08-16 19:37:14 -06:00
Jason Petersen 54789d6896
Merge pull request #2324 from citusdata/test/pg11-compatibility
make tests pass on pg 11 again

cr: @jasonmp85
2018-08-15 23:52:47 -06:00
Nils Dijk 6cf4516fdb
fix \d change for indexes in pg11 2018-08-15 23:27:31 -06:00
Nils Dijk 2a9d47e1a6
fix pg11 tests 2018-08-15 23:27:31 -06:00
Mehmet Furkan ŞAHİN 3f0317dfb8
Merge pull request #2327 from citusdata/master_disable-activate_node_with_superuser
Make master_disable/activate_node runnable when superuser
2018-08-15 01:09:09 -07:00
mehmet furkan şahin 1a3b9f731e Make master_disable/activate_node runnable when superuser 2018-08-15 00:43:35 -07:00
Önder Kalacı 904e1781fa
Merge pull request #2335 from citusdata/fix_mx_schema
Fix DDL execution bug on MX when search_path is used
2018-08-13 19:52:21 +03:00
Onder Kalaci 85d418412d Fix DDL execution problem on MX when search_path is used
Make sure that the coordinator sends the commands when the search
path synchronised with the coordinator's search_path. This is only
important when Citus sends the commands that are directly relayed
to the worker nodes. For example, the deparsed DLL commands or
queries always adds schema qualifications to the queries. So, they
do not require this change.
2018-08-13 16:34:50 +03:00
Burak Velioglu 537d80abdb
Merge pull request #2279 from citusdata/add_create_dist_table_failure
Add create_distributed_table (without data) failure tests
2018-08-13 10:25:55 +03:00
velioglu 44fc9f46fc Add create_distributed_table (without data) failure tests 2018-08-13 09:31:15 +03:00
Önder Kalacı 3fa04d8f2c
Merge pull request #2323 from citusdata/shards_go_behind_schema
Alternative approach for hiding shards on the MX workers for better UX
2018-08-07 16:24:36 +03:00
Onder Kalaci 974cbf11a5 Hide shard names on MX worker nodes
This commit by default enables hiding shard names on MX workers
by simple replacing `pg_table_is_visible()` calls with
`citus_table_is_visible()` calls on the MX worker nodes. The latter
function filters out tables that are known to be shards.

The main motivation of this change is a better UX. The functionality
can be opted out via a GUC.

We also added two views, namely citus_shards_on_worker and
citus_shard_indexes_on_worker such that users can query
them to see the shards and their corresponding indexes.

We also added debug messages such that the filtered tables can
be interactively seen by setting the level to DEBUG1.
2018-08-07 14:21:45 +03:00
Onder Kalaci e13da6a343 Add infrastructure to hide shards on MX worker nodes
Add ability to understand whether a table is a
known shard on MX workers. Note that this is only useful
and applicable for hiding shards on MX worker nodes given
that we can have metadata only there.
2018-08-04 09:03:37 +03:00
Mehmet Furkan ŞAHİN 28fd63bee2
Merge pull request #2280 from citusdata/failure-create_distributed_table-non-empty
Add create_distributed_table (with data) failure tests
2018-08-03 12:55:04 -07:00