Commit Graph

4724 Commits (col/remove-cgroup-row-cnt)

Author SHA1 Message Date
Onur Tirtir ac40014d04 wip 2021-03-31 12:58:30 +03:00
Halil Ozan Akgül 67bc990c1c
Merge pull request #4827 from citusdata/shard-count-parameter-in-distribution
Adds shard_count parameter to create_distributed_table
2021-03-30 12:15:54 +03:00
Halil Ozan Akgul a5038046f9 Adds shard_count parameter to create_distributed_table 2021-03-29 16:22:49 +03:00
Hanefi Onaldi 76a1ddac94
Merge pull request #4612 from citusdata/clean-before-upgrade-tests 2021-03-29 13:17:19 +03:00
Hanefi Önaldı 797538750f Delete all upgrade test artifacts before citus-upgrade-local 2021-03-27 00:46:06 +03:00
SaitTalhaNisanci 3c2efe287e
Merge pull request #4799 from citusdata/drop/pg11
Drop postgres 11 support
2021-03-25 12:46:05 +03:00
Onur Tirtir 7081690480
Add check-columnar-vg regression test target (#4737) 2021-03-25 11:55:58 +03:00
SaitTalhaNisanci 9437d21601
Merge pull request #4848 from citusdata/ignore/modifiedVersions
Ignore config and version modified
2021-03-25 11:48:43 +03:00
SaitTalhaNisanci 3a3171cd04 Ignore temporary output files 2021-03-25 09:59:21 +03:00
SaitTalhaNisanci 03832f353c Drop postgres 11 support 2021-03-25 09:20:28 +03:00
jeff-davis 248c6cb91a
Columnar: do not bother building unnecessary RestrictInfo. (#4852)
Co-authored-by: Jeff Davis <jefdavi@microsoft.com>
2021-03-24 16:05:08 -07:00
Onur Tirtir c01507a91b
Remove columnar/.gitignore (#4825) 2021-03-24 13:04:14 +03:00
Hanefi Onaldi 1b7a1357f1
Merge pull request #4844 from citusdata/update-cl-833
Update Changelog for 8.3.3
2021-03-23 20:25:04 +03:00
Hanefi Onaldi 4a9655e833 Update Changelog for 8.3.3 2021-03-23 19:58:37 +03:00
Nils Dijk 1c1999ed7b
incorporate the fixopen fix for osx users on bigsur (#4837)
comparable to https://github.com/citusdata/tools/pull/88

this patch adds checks to the perl script running the testing harness of citus to start the postgres instances via the fixopen binary when present to work around `Interrupted System` call errors on OSX Big Sur.
2021-03-22 16:22:08 +01:00
Nils Dijk 787ee97867
Tests: foreign key non colocated tests (#4841)
Earlier versions of Citus (pre 9.0) had a bug where a user was able to get in a situation where a foreign key between two non-colocated tables was allowed. This was caused by the wrongful scoping together with only setting to on of a boolean variable in a loop, causing the `true` from an earlier iteration to leak into a new iteration.

This was 'by accident' solved in a refactor that was executed in the preparation of the 9.0 release. Only recently we had a user running into this and it was tracked down to this behaviour.

Given the dire situation a user could get them self into when running into this bug we have backported a fix to the latest 8.3 release branch.

To make sure this regression does not happen anymore in the future I propose we add the tests from the backport to our mainline.

For reference: https://github.com/citusdata/citus/pull/4840
2021-03-22 15:33:56 +01:00
Marco Slot 6876e87f31
Merge pull request #4838 from citusdata/dependabot/pip/src/test/regress/jinja2-2.11.3
Bump jinja2 from 2.11.2 to 2.11.3 in /src/test/regress
2021-03-22 11:03:55 +01:00
dependabot[bot] a1aedc41f1
Bump jinja2 from 2.11.2 to 2.11.3 in /src/test/regress
Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.2 to 2.11.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/2.11.2...2.11.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-20 05:51:26 +00:00
Marco Slot 28719ae79b
Merge pull request #4835 from citusdata/marcocitus/fix-configure
Apply #4834 to configure as well
2021-03-18 14:52:02 +01:00
Marco Slot 4ad88a7a89
Merge pull request #4834 from ProsperWorks/master
More precise error messages for ./configure.
2021-03-18 14:22:09 +01:00
Marco Slot 1e11a34d00 Apply #4834 to configure as well 2021-03-18 01:35:34 +01:00
jhwillett 8bcf3b9887 More precise error messages for ./configure --without-lz4 and --without-zstd. 2021-03-17 12:52:04 -07:00
SaitTalhaNisanci b4620bed87
Merge pull request #4822 from citusdata/changelog/10.0-3
Update CHANGELOG for 10.0.3
2021-03-17 17:54:32 +03:00
Önder Kalacı b5f4320164
Make sure that single task local executions start coordinated transaction (#4831)
With https://github.com/citusdata/citus/pull/4806 we enabled
2PC for any non-read-only local task. However, if the execution
is a single task, enabling 2PC (CoordinatedTransactionShouldUse2PC)
hits an assertion as we are not in a coordinated transaction.

There is no downside of using a coordinated transaction for single
task local queries.
2021-03-17 12:20:57 +01:00
Ahmet Gedemenli 4558132239
Merge pull request #4830 from citusdata/add-udf-citus-get-active-worker-nodes
Add udf citus_get_active_worker_nodes
2021-03-17 13:39:30 +03:00
Ahmet Gedemenli 5e5db9eefa Add udf citus_get_active_worker_nodes 2021-03-17 13:15:59 +03:00
Sait Talha Nisanci 92130ae2a2 Update CHANGELOG for 10.0.3 2021-03-17 11:21:36 +03:00
Marco Slot 946f529826
Merge pull request #4820 from citusdata/marcocitus/copy-guc
Introduce citus.remote_copy_flush_threshold GUC
2021-03-16 19:05:10 +01:00
Marco Slot 43f600bc46
Merge pull request #4808 from citusdata/marcocitus/connection-lifetime 2021-03-16 14:58:06 +01:00
Marco Slot fbc2147e11 Replace MAX_PUT_COPY_DATA_BUFFER_SIZE by citus.remote_copy_flush_threshold GUC 2021-03-16 06:00:38 +01:00
Marco Slot 1646fca445 Add GUC to set maximum connection lifetime 2021-03-16 01:57:57 +01:00
jeff-davis 3b12556401
Columnar: cleanup (#4814)
* Columnar: fix misnamed file.

* Columnar: make compression not dependent on columnar.h.

* Columnar: rename columnar_metadata_tables.c to columnar_metadata.c.

* Columnar: make customscan not depend on columnar.h.

Co-authored-by: Jeff Davis <jefdavi@microsoft.com>
2021-03-15 11:34:39 -07:00
Onur Tirtir b2a7bafcc4
Fix flaky test in multi_foreign_key_relation_graph (#4819) 2021-03-15 17:55:04 +03:00
Marco Slot 7d8d5cad98
Merge pull request #4817 from citusdata/marcocitus/fix-warning
Remove unnecessary AtEOXact_Files call
2021-03-15 09:58:41 +01:00
Marco Slot 6c5d263b7a Remove unnecessary AtEOXact_Files call 2021-03-15 09:34:02 +01:00
Onur Tirtir 1d3e075e62
Support temporary columnar tables (#4766) 2021-03-12 12:01:36 +03:00
Önder Kalacı 56245d232d
Merge pull request #4806 from citusdata/fix_2pc_local_exec
Do not trigger 2PC for reads on local execution
2021-03-12 09:34:34 +01:00
Onder Kalaci e65e72130d Rename use -> shouldUse
Because setting the flag doesn't necessarily mean that we'll
use 2PC. If connections are read-only, we will not use 2PC.
In other words, we'll use 2PC only for connections that modified
any placements.
2021-03-12 08:29:43 +00:00
Onder Kalaci 6a7ed7b309 Do not trigger 2PC for reads on local execution
Before this commit, Citus used 2PC no matter what kind of
local query execution happens.

For example, if the coordinator has shards (and the workers as well),
even a simple SELECT query could start 2PC:
```SQL

WITH cte_1 AS (SELECT * FROM test LIMIT 10) SELECT count(*) FROM cte_1;
```

In this query, the local execution of the shards (and also intermediate
result reads) triggers the 2PC.

To prevent that, Citus now distinguishes local reads and local writes.
And, Citus switches to 2PC only if a modification happens. This may
still lead to unnecessary 2PCs when there is a local modification
and remote SELECTs only. Though, we handle that separately
via #4587.
2021-03-12 08:29:43 +00:00
Onur Tirtir 874d5fd962
Remove foreign keys between columnar metadata tables (#4791)
Postgres keeps AFTER trigger state for each transaction, because we can have deferred AFTER triggers which will be fired at the end of a transaction. Postgres cleans up this state at the end of transaction.

Postgres processes ON COMMIT triggers after cleaning-up the AFTER trigger states. So if we fire any triggers in ON COMMIT, the AFTER trigger state won't be cleaned-up properly and the transaction state will be left in an inconsistent state, which might result in assertion failure.

So with this commit, we remove foreign keys between columnar metadata tables and enforce constraints between them manually when dropping columnar tables.
2021-03-12 11:28:17 +03:00
Naisila Puka 71a9f45513
Fix upgrade and downgrade paths for master/citus_update_table_statistics (#4805) 2021-03-11 14:52:40 +03:00
Marco Slot 69f09556fd
Merge pull request #4809 from joeljuca/readme-code-highlights
Fix incorrect language syntax on README.md
2021-03-10 23:44:45 +01:00
Joel Jucá a770c5fe4e
Fix incorrect language syntax on README.md 2021-03-10 18:18:45 -03:00
Naisila Puka 196064836c
Skip 2PC for readonly connections in a transaction (#4587)
* Skip 2PC for readonly connections in a transaction

* Use ConnectionModifiedPlacement() function

* Remove the second check of ConnectionModifiedPlacement()

* Add order by to prevent flaky output

* Test using pg_dist_transaction
2021-03-10 20:01:37 +03:00
Marco Slot 68a527ba17
Merge pull request #4800 from citusdata/marcocitus/fix-mod-cte 2021-03-09 21:12:46 +01:00
Marco Slot 9c0d7f5c26 Add tests for modifying CTE and SELECT without FROM 2021-03-09 10:39:33 +01:00
Marco Slot 58f85f55c0 Fixes a crash in queries with a modifying CTE and a SELECT without FROM 2021-03-09 10:39:33 +01:00
SaitTalhaNisanci aef7fc3a51
Ignore columnar generated test files (#4796) 2021-03-09 10:52:08 +03:00
Claire Giordano 742db1c5a2
Merge pull request #4789 from citusdata/claire-readme-edit1
Rm Performance H2 section title (temporarily)
2021-03-07 22:25:08 -08:00
Claire Giordano 33a6f763ea
Rm Performance H2 section title (temporarily) 2021-03-07 17:24:24 -08:00