Commit Graph

6526 Commits (90a4cf886dbb58cdab1b9e5c3b5d5eb1813fbb46)

Author SHA1 Message Date
onderkalaci 90a4cf886d fix insert .. select pushdown 2023-04-28 14:21:24 +03:00
onderkalaci c75950e24f skip columnar table creation 2023-04-28 14:21:10 +03:00
onderkalaci 3d838ba23e PG16 expects explicit exports 2023-04-26 23:24:13 +03:00
onderkalaci 4fdb8cba94 Pg now has its own any_value, see 2ddab010c2777c6a965cea82dc1b809ddc33ecc1 2023-04-26 23:23:25 +03:00
onderkalaci bdc20051ce SqlValueFunction is dropped, TODO: what do to. See commit f193883fc9cebe8fa20359b0797832837a788112 2023-04-26 23:08:29 +03:00
onderkalaci a0cf8361a4 Deadlock detection changes, PG Commit: d137cb52cb7fd44a3f24f3c750fbf7924a4e9532 2023-04-26 22:54:13 +03:00
onderkalaci 9085beb819 File changes and tuple changes in test 2023-04-26 22:54:13 +03:00
onderkalaci d2d7c73863 Change in Var representations, PG commit 2489d76c4906f4461a364ca8ad7e0751ead8aa0d 2023-04-26 22:54:13 +03:00
onderkalaci 39067d3543 Make Scan node abstract, PG commit: 8c73c11a0d39049de2c1f400d8765a0eb21f5228 2023-04-26 22:54:13 +03:00
onderkalaci af0de8b19a PG commit 376dc820531bafcbf105fff74c5b14c23d9950af 2023-04-26 22:54:13 +03:00
onderkalaci 3a773ee18f Not implemented, see PG commit e3ce2de09d814f8770b2e3b3c152b7671bcdb83f 2023-04-26 22:54:13 +03:00
onderkalaci 45259d2b87 Again, permission check refactor, be careful with details, PG commit a61b1f74823c9c4f79c95226a461f1e7a367764b 2023-04-26 22:54:13 +03:00
onderkalaci 5205411e4d PG commit 60684dd834a222fefedd49b19d1f0a6189c1632e 2023-04-26 22:54:13 +03:00
onderkalaci c56c564e80 Needs more attention, PG commit 858e776c84f48841e7e16fba7b690b76e54f3675 2023-04-26 22:54:13 +03:00
onderkalaci 70554b3a7b Minor PG refactor 320f92b744b44f961e5d56f5f21de003e8027a7f 2023-04-26 22:54:13 +03:00
onderkalaci c5f8094639 Remove AssertArg PG: b1099eca8f38ff5cfaf0901bb91cb6a22f909bc6 2023-04-26 22:54:13 +03:00
onderkalaci d536ee5832 pg_clean_ascii 45b1a67a0fcb3f1588df596431871de4c93cb76f 2023-04-26 22:54:13 +03:00
onderkalaci 723d80be82 guc 2023-04-26 22:54:13 +03:00
onderkalaci ecbf368dc0 guc vars 3057465acfbea2f3dd7a914a1478064022c6eecd 2023-04-26 22:54:13 +03:00
onderkalaci 036a96ce68 Placeholder commit for enabling columnar compile 2023-04-26 22:54:13 +03:00
onderkalaci 158b003366 Use RelFileLocator in PG 16 AND vacuum together 2023-04-26 22:54:13 +03:00
onderkalaci 3660b8fb0e PG commit 11470f544e3729c60fab890145b2e839cbc8905e 2023-04-26 22:54:13 +03:00
onderkalaci 2ee6d4cae4 tuplesort PGcommit: d37aa3d35832afde94e100c4d2a9618b3eb76472 2023-04-26 22:54:13 +03:00
onderkalaci 93f487d6d9 refactor ownership changed afbfc02983f86c4d71825efa6befd547fe81a926 2023-04-26 22:54:13 +03:00
onderkalaci eca67443de Use selectedCols from perminfo
Corresponding PG commit a61b1f74823c9c4f79c95226a461f1e7a367764b
2023-04-26 20:22:24 +03:00
onderkalaci 524bfc44e0 drop support for Abs, use fabs
PG commit 357cfefb09115292cfb98d504199e6df8201c957
2023-04-26 20:22:24 +03:00
onderkalaci 65c88fe854 Use RelFileLocator in PG 16
This is PG commit b0a55e43299c4ea2a9a8c757f9c26352407d0ccc
2023-04-26 20:22:24 +03:00
onderkalaci 890deac272 new header for varatt.h 2023-04-26 18:32:51 +03:00
onderkalaci 909ffe4613 enable configure 2023-04-26 18:32:51 +03:00
Hanefi Onaldi 5fc5931506
Skip some versions on changelog (#6882)
We had 10.1.5, 10.0.7, and 9.5.11 in the changelog, but those versions
are already used in enterprise repository. This commit skips those
versions and uses 10.1.6, 10.0.8, and 9.5.12 instead to prevent clashes.
2023-04-26 12:05:27 +03:00
Hanefi Onaldi 15152eac94
Add changelog entries for backport releases (#6869)
We plan to have a series of backport releases. This PR contains separate
commits for each patch version for 11.2 to 9.5 major versions. We plan
to cherry pick each commit to relevant release branches and hence the
need to have separate commits for each version.
2023-04-25 13:21:08 +03:00
Hanefi Onaldi f7fd0dbae7
Add changelog entries for 11.2.1 2023-04-25 13:06:59 +03:00
Hanefi Onaldi c36adc8426
Add changelog entries for 11.1.6 2023-04-25 13:06:01 +03:00
Hanefi Onaldi 214bc39a5a
Add changelog entries for 11.0.8 2023-04-25 13:05:44 +03:00
Hanefi Onaldi 65f957d345
Add changelog entries for 10.2.9 2023-04-25 13:05:20 +03:00
Hanefi Onaldi db77cb084b
Add changelog entries for 10.1.5 2023-04-25 13:04:58 +03:00
Hanefi Onaldi 61c7cc0a96
Add changelog entries for 10.0.7 2023-04-25 13:04:27 +03:00
Hanefi Onaldi da71b74f1d
Add changelog entries for 9.5.11 2023-04-25 13:03:23 +03:00
Jelte Fennema a5f4fece13
Fix running PG upgrade tests with run_test.py (#6829)
In #6814 we started using the Python test runner for upgrade tests in
run_test.py, instead of the Perl based one. This had a problem though,
not all tests in minimal_schedule can be run with the Python runner.
This adds a separate minimal schedule for the pg_upgrade tests which
doesn't include the tests that break with the Python runner.

This PR also fixes various other issues that came up while testing
the upgrade tests.
2023-04-24 15:54:32 +02:00
aykut-bozkurt a6a7271e63
Query generator test tool (#6686)
- Query generator is used to create queries, allowed by the grammar which is documented at `query_generator/query_gen.py` (currently contains only joins). 
- This PR adds a CI test which utilizes the query generator to compare the results of generated queries that are executed on Citus tables and local (undistributed) tables. It fails if there is an unexpected error at results. The error can be related to Citus, the query generator, or even Postgres.
- The tool is configured by the file `query_generator/config/config.yaml`, which limits table counts at generated queries and sets many table related parameters (e.g. row count).
- Run time of the CI task can be configured from the config file. By default, we run 250 queries with maximum table count of 40 inside each query.
2023-04-23 20:28:26 +03:00
aykut-bozkurt 08e2820c67
skip restriction clause if it contains placeholdervar (#6857)
`PlaceHolderVar` is not relevant to be processed inside a restriction
clause. Otherwise, `pull_var_clause_default` would throw error. PG would
create the restriction to physical `Var` that `PlaceHolderVar` points to
anyway, so it is safe to skip this restriction.

DESCRIPTION: Fixes a bug related to WHERE clause list which contains
placeholder.

Fixes https://github.com/citusdata/citus/issues/6758
2023-04-17 18:14:01 +03:00
Emel Şimşek 2675a68218
Make coordinator always in metadata by default in regression tests. (#6847)
DESCRIPTION: Changes the regression test setups adding the coordinator
to metadata by default.

When creating a Citus cluster, coordinator can be added in metadata
explicitly by running `citus_set_coordinator_host ` function. Adding the
coordinator to metadata allows to create citus managed local tables.
Other Citus functionality is expected to be unaffected.

This change adds the coordinator to metadata by default when creating
test clusters in regression tests.

There are 3 ways to run commands in a sql file (or a schedule which is a
sequence of sql files) with Citus regression tests. Below is how this PR
adds the coordinator to metadata for each.

1. `make <schedule_name>`
Changed the sql files (sql/multi_cluster_management.sql and
sql/minimal_cluster_management.sql) which sets up the test clusters such
that they call `citus_set_coordinator_host`. This ensures any following
tests will have the coordinator in metadata by default.
 
2. `citus_tests/run_test.py <sql_file_name>`
Changed the python code that sets up the cluster to always call `
citus_set_coordinator_host`.
For the upgrade tests, a version check is included to make sure
`citus_set_coordinator_host` function is available for a given version.

3. ` make check-arbitrary-configs  `     
Changed the python code that sets up the cluster to always call
`citus_set_coordinator_host `.

#6864 will be used to track the remaining work which is to change the
tests where coordinator is added/removed as a node.
2023-04-17 14:14:37 +03:00
Gokhan Gulbiz 8782ea1582
Ensure partitionKeyValue and colocationId are set for proper tenant stats gathering (#6834)
This PR updates the tenant stats implementation to set partitionKeyValue
and colocationId in ExecuteLocalTaskListExtended, in addition to
LocallyExecuteTaskPlan. This ensures that tenant stats can be properly
gathered regardless of the code path taken. The changes were initially
made while testing stored procedure calls for tenant stats.
2023-04-17 09:35:26 +03:00
Onur Tirtir f87a2d02b0
Move the common logic related to creating a Citus table down to CreateCitusTable (#6836)
.. rather than having it in user facing functions. That way, we
can use the same logic for creating Citus tables from other places
too.

This would be useful for creating tenant tables via a simple function
call in the utility hook, for schema-based sharding purposes.
2023-04-14 16:13:39 +03:00
aykut-bozkurt 3286ec59e9
fix 3 flaky tests in failure schedule (#6846)
Fixed 3 flaky tests in failure tests which caused flakiness in other
tests due to changed node and group sequence ids during node
addition-removal.
2023-04-13 13:13:28 +03:00
Halil Ozan Akgül 9ba70696f7
Add CPU usage to citus_stat_tenants (#6844)
This PR adds CPU usage to `citus_stat_tenants` monitor.
CPU usage is tracked in periods, similar to query counts.
2023-04-12 16:23:00 +03:00
Emel Şimşek e7a25d82c9
When creating a HTAB we need to use HASH_COMPARE flag in order to set a user defined comparison function. (#6845)
DESCRIPTION: Fixes memory errors, caught by valgrind, of type
"conditional jump or move depends on uninitialized value"

When running Citus tests under Postgres with valgrind, the test cases
calling into `NonBlockingShardSplit` function produce valgrind errors of
type "conditional jump or move depends on uninitialized value".

The issue is caused by creating a HTAB in a wrong way. HASH_COMPARE flag
should have been used when creating a HTAB with user defined comparison
function. In the absence of HASH_COMPARE flag, HTAB falls back into
built-in string comparison function. However, valgrind somehow discovers
that the match function is not assigned to the user defined function as
intended.

Fixes #6835
2023-04-11 21:24:33 +03:00
Halil Ozan Akgül 8b50e95dc8
Fix citus_stat_tenants period updating bug (#6833)
Fixes the bug that causes updating the citus_stat_tenants periods
incorrectly.

`TimestampDifferenceExceeds` expects the difference in milliseconds but
it was microseconds, this is fixed.
`tenantStats->lastQueryTime` was updated during monitoring too, now it's
updated only when there are tenant queries.
2023-04-11 17:40:07 +03:00
aykut-bozkurt a20f7e1a55
fixes update propagation bug when `citus_set_coordinator_host` is called more than once (#6837)
DESCRIPTION: Fixes update propagation bug when
`citus_set_coordinator_host` is called more than once.

Fixes https://github.com/citusdata/citus/issues/6731.
2023-04-11 11:27:16 +03:00
rajeshkt78 1713246e1b
Add build-cdc-* temporary directories to .gitignore (#6841)
The CDC decoder buillds different versions of CDC base decoders during
the build. Since the source files are copied to the temporay
directories, they come in git status for files to be added. So these
directories and a temporary CDC TAP test directory(tmpcheck) are added
to .gitignore file.
2023-04-10 15:40:20 +05:30