Commit Graph

6742 Commits (52057bcf5147bf671b0d87b48dbab9f923639393)

Author SHA1 Message Date
Gürkan İndibay 52057bcf51
Merge branch 'main' into alter_user_propagation 2023-09-26 11:45:26 +03:00
Gürkan İndibay a9d28ca96f
Adds make clean to installation steps (#7052)
If you make a fresh install make clean is not
required. However, if you install before, without
a make install, one can get errors


---------

Co-authored-by: aykut-bozkurt <51649454+aykut-bozkurt@users.noreply.github.com>
2023-09-25 12:42:23 +03:00
Gürkan İndibay f271590259
Merge branch 'main' into alter_user_propagation 2023-09-25 12:33:01 +03:00
Onur Tirtir 111b4c19bc
Make sure to disallow creating a replicated distributed table concurrently (#7219)
See explanation in https://github.com/citusdata/citus/issues/7216.
Fixes https://github.com/citusdata/citus/issues/7216.

DESCRIPTION: Makes sure to disallow creating a replicated distributed
table concurrently
2023-09-25 11:14:35 +03:00
Hanefi Onaldi f72cd7ffd2
Update README.md for Citus 12.1 release (#7214)
Also remove old customers from the readme
2023-09-22 18:35:33 +03:00
Hanefi Onaldi 01e3c24793 Update url for release blog 2023-09-22 17:47:57 +03:00
Hanefi Onaldi f17d31fd94 Update PG and Citus versions in readme 2023-09-22 17:47:57 +03:00
Hanefi Onaldi 5926ec8bbb Fix broken blog link 2023-09-22 17:47:57 +03:00
Teresa Giacomini ab8a3fab74 Update README.md
Update README.md to remove old customers
2023-09-22 17:47:57 +03:00
Nils Dijk 0f28a69f12
Use the $(DLSUFFIX) instead of hard coded extensions for cdc (#7221)
When cdc got added the makefiles hardcoded the `.so` extension instead
of using the platform specifc `$(DLSUFFIX)` variable used by `pgxs.mk`.
Also don't remove installed cdc artifacts on `make clean`.
2023-09-22 16:24:18 +02:00
aykut-bozkurt 2c190d0689
Fix the changelog entry for citus_pause_node_within_txn() UDF (#7215) 2023-09-20 16:45:04 +03:00
Jelte Fennema-Nio 71e556e090
Remove useless test output (#7209)
This was sometimes failing when running locally due to some local shard
still existing due to. This fixes that. We normally silence all
`drop schema cascade` output like this anyway to avoid unnecessary
diffs when modifying a test later on.
2023-09-19 14:12:46 +02:00
Gürkan İndibay b0e982d0b5
Removes centos 7 for PG 16 in packaging pipelines (#7205)
centos 7 and oracle 7 is not being supported for newer releases by
Postgres. Therefore, getting package download errors in packaging
pipelines.
This PR removes el/7 and ol/7 Postgres 16 pipelines
2023-09-19 14:37:35 +03:00
gindibay 32ea2246da Merge branch 'alter_user_propagation' of https://github.com/citusdata/citus into alter_user_propagation 2023-09-18 22:59:17 +03:00
Gürkan İndibay 59236a3e81
Merge branch 'main' into alter_user_propagation 2023-09-19 16:41:39 +03:00
gindibay dde6808ed9 Fixed indentation 2023-09-18 22:59:13 +03:00
gindibay b8add7699a Added comments for AppendStatementType 2023-09-18 22:49:21 +03:00
gindibay 0038dc16f1 Merge branch 'alter_user_propagation' of https://github.com/citusdata/citus into alter_user_propagation 2023-09-18 22:23:29 +03:00
Gürkan İndibay 2d977cb65d
Merge branch 'main' into alter_user_propagation 2023-09-19 14:38:10 +03:00
gindibay 04d2e9fb2f Fixes review comments 2023-09-18 22:23:26 +03:00
gindibay 9536ba17b3 Fixes multi_modifying_xacts tests 2023-09-18 16:47:20 +03:00
Jelte Fennema 8a593bf809 Run multi_modifying_xacts using minimal_schedule 2023-09-18 16:48:51 +02:00
Jelte Fennema 423f84f1fe Mark multi_behavioral_analytics_create_talbe as non-repeatable 2023-09-18 16:19:16 +02:00
gindibay 44f1a71fc6 Rollbacks multi_behavioral_analytics_create_table 2023-09-18 15:29:13 +03:00
gindibay 42c71e87ab Adds default connection parameter 2023-09-18 15:17:45 +03:00
gindibay 5cfbcd7878 Merge branch 'alter_user_propagation' of https://github.com/citusdata/citus into alter_user_propagation 2023-09-18 15:05:30 +03:00
Jelte Fennema eec0ab1586 Fix running test alter_role_propagation test with --use-base-schedule flag 2023-09-18 14:47:04 +02:00
gindibay 77d99d6b4d Set default connection limit to -1 2023-09-18 15:05:28 +03:00
gindibay 6b9b12e8ae Rollbacks drop statements 2023-09-18 14:19:51 +03:00
gindibay 7e1697e90c Rollbacks previous commit 2023-09-18 14:07:03 +03:00
gindibay 7c9f4144d8 Fixes flaky tests 2023-09-18 13:54:05 +03:00
gindibay b7abcd201b Fixes multi_behavioural analytics test 2023-09-18 13:48:12 +03:00
gindibay 9726fb589c Fixes flaky tests 2023-09-18 13:39:14 +03:00
gindibay 6dc474e919 Fixes intentation 2023-09-18 13:12:28 +03:00
gindibay 8870829b4f Fixes tests 2023-09-18 13:11:59 +03:00
gindibay aa9f997441 Fixes other tests 2023-09-18 12:52:16 +03:00
Gürkan İndibay aef36116ba
Merge branch 'main' into alter_user_propagation 2023-09-15 15:48:03 +03:00
Naisila Puka 4e46708789
Adds PostgreSQL 16.0 Support (#7201)
This commit concludes PG16.0 Support in Citus.

The main PG16 support work has been done for 16beta3
https://github.com/citusdata/citus/pull/6952
There was some extra work needed for 16rc1
https://github.com/citusdata/citus/pull/7173
And this PR yet introduces some extra work needed to 16.0 :)

`pgstat_fetch_stat_local_beentry` has been renamed to
`pgstat_get_local_beentry_by_index` in PG16.0

Relevant PG commit:
8dfa37b797
8dfa37b797843a83a5756ea3309055e8953e1a86

Sister PR
https://github.com/citusdata/the-process/pull/150
2023-09-15 12:23:04 +03:00
Gürkan İndibay 7c0b289761
Adds alter database set option (#7181)
DESCRIPTION: Adds support for ALTER DATABASE <db_name> SET .. statement
propagation
SET statements in Postgres has a common structure which is already being
used in Alter Function
statement. 
In this PR, I added a util file; citus_setutils and made it usable for
both for
alter database<db_name>set .. and alter function ... set ... statements.
With this PR, below statements will be propagated
```sql
ALTER DATABASE name SET configuration_parameter { TO | = } { value | DEFAULT }
ALTER DATABASE name SET configuration_parameter FROM CURRENT
ALTER DATABASE name RESET configuration_parameter
ALTER DATABASE name RESET ALL
```
Additionally, there was a bug in processing float values in the common
code block.
I fixed this one as well

Previous
```C
case T_Float:
			{
				appendStringInfo(buf, " %s", strVal(value));
				break;
			}
```
Now
```C
case T_Float:
			{
				appendStringInfo(buf, " %s", nodeToString(value));
				break;
			}
```
2023-09-14 16:29:16 +03:00
aykut-bozkurt 26dc407f4a
bump citus and columnar into 12.2devel (#7200) 2023-09-14 12:03:09 +03:00
gindibay 7e7d4a956b Fixes test outputs 2023-09-14 02:57:33 +03:00
gindibay 06b1b16543 Fixes indentations 2023-09-14 02:46:05 +03:00
gindibay 99e9786c7f Adds alter role rename 2023-09-14 02:11:11 +03:00
gindibay 1c3dfba637 Initial commit 2023-09-13 21:22:22 +03:00
aykut-bozkurt 9eafd032da
Changelog entries for 12.1.0 (#7194)
Co-authored-by: naisila <nicypp@gmail.com>
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2023-09-13 12:12:24 +03:00
Gürkan İndibay e0683aab84
Removes ubuntu:kinetic pipelines since it's EOL (#7195)
ubuntu:kinetic is EOL so removing it's pipeline


https://fridge.ubuntu.com/2023/06/14/ubuntu-22-10-kinetic-kudu-reaches-end-of-life-on-july-20-2023/
2023-09-12 14:56:29 +03:00
Gürkan İndibay e5e64b7454
Adds alter database propagation - with and refresh collation (#7172)
DESCRIPTION: Adds ALTER DATABASE WITH ... and REFRESH COLLATION VERSION
support

This PR adds supports for basic ALTER DATABASE statements propagation 
support. Below statements are supported:
ALTER DATABASE <database_name> with IS_TEMPLATE <true/false>;
ALTER DATABASE <database_name> with CONNECTION LIMIT <integer_value>;
ALTER DATABASE <database_name> REFRESH COLLATION VERSION;

---------

Co-authored-by: Jelte Fennema-Nio <jelte.fennema@microsoft.com>
2023-09-12 14:09:15 +03:00
Naisila Puka 1da99f8423
PG16 - Don't propagate GRANT ROLE with INHERIT/SET option (#7190)
We currently don't support propagating these options in Citus
Relevant PG commits:
https://github.com/postgres/postgres/commit/e3ce2de
https://github.com/postgres/postgres/commit/3d14e17

Limitation:
We also need to take care of generated GRANT statements by dependencies
in attempt to distribute something else. Specifically, this part of the
code in `GenerateGrantRoleStmtsOfRole`:
```
grantRoleStmt->admin_opt = membership->admin_option;
```
In PG16, membership also has `inherit_option` and `set_option` which
need to properly be part of the `grantRoleStmt`. We can skip for now
since #7164 will take care of this soon, and also this is not an
expected use-case.
2023-09-12 12:47:37 +03:00
Naisila Puka c1dc378504
Fix WITH ADMIN FALSE propagation (#7191) 2023-09-11 15:58:24 +03:00
Onur Tirtir d628a4c21a
Add citus_schema_move() function (#7180)
Add citus_schema_move() that can be used to move tenant tables within a distributed
schema to another node. The function has two variations as simple wrappers around
citus_move_shard_placement() and citus_move_shard_placement_with_nodeid() respectively.
They pick a shard that belongs to the given tenant schema and resolve the source node
that contain the shards under given tenant schema. Hence their signatures are quite
similar to underlying functions:

```sql
-- citus_schema_move(), using target node name and node port
CREATE OR REPLACE FUNCTION pg_catalog.citus_schema_move(
	schema_id regnamespace,
	target_node_name text,
	target_node_port integer,
	shard_transfer_mode citus.shard_transfer_mode default 'auto')
RETURNS void
LANGUAGE C STRICT
AS 'MODULE_PATHNAME', $$citus_schema_move$$;

-- citus_schema_move(), using target node id
CREATE OR REPLACE FUNCTION pg_catalog.citus_schema_move(
	schema_id regnamespace,
	target_node_id integer,
	shard_transfer_mode citus.shard_transfer_mode default 'auto')
RETURNS void
LANGUAGE C STRICT
AS 'MODULE_PATHNAME', $$citus_schema_move_with_nodeid$$;
```
2023-09-08 12:03:53 +03:00