naisila
2d2db87093
Mechanical code beautification ruleutils_15.c
...
Relevant PG commit:
23e7b38bfe396f919fdb66057174d29e17086418
2022-08-01 15:38:56 +03:00
naisila
ea2a2d3169
set_deparse_plan: Reuse variable to appease Coverity ruleutils_15.c
...
Relevant PG commit:
e70813fbc4aaca35ec012d5a426706bd54e4acab
2022-08-01 15:38:56 +03:00
naisila
1a2859e4d1
Remove extra blank lines before block-closing braces ruleutils_15.c
...
Relevant PG commit:
24d2b2680a8d0e01b30ce8a41c4eb3b47aca5031
2022-08-01 15:38:56 +03:00
naisila
1b56e96807
Add PLAN function for JSON table in ruleutils_15.c
...
Relevant PG commit:
fadb48b00e02ccfd152baa80942de30205ab3c4f
2022-08-01 15:38:56 +03:00
naisila
d64c1519ef
Adds JSON table functions in ruleutils_15.c
...
Relevant PG commit:
4e34747c88a03ede6e9d731727815e37273d4bc9
2022-08-01 15:38:56 +03:00
naisila
4dd2a7a1da
Adds three different SQL/JSON values to ruleutils_15.c
...
Relevant PG commits:
606948b058dc16bce494270eea577011a602810e
49082c2cc3d8167cca70cfe697afb064710828ca
2022-08-01 15:38:56 +03:00
naisila
65db3321f6
Add SQL/JSON query functions to ruleutils_15.c
...
Relevant PG commit:
1a36bc9dba8eae90963a586d37b6457b32b2fed4
2022-08-01 15:38:56 +03:00
naisila
2f0d46d59a
Add IS JSON predicate to ruleutils_15.c
...
Relevant PG commit:
33a377608fc29cdd1f6b63be561eab0aee5c81f0
2022-08-01 15:38:56 +03:00
naisila
827ae745b7
Adds support for MERGE in ruleutils_15.c
...
Relevant PG commit:
7103ebb7aae8ab8076b7e85f335ceb8fe799097c
2022-08-01 15:38:56 +03:00
naisila
a928a0f2de
Adds SQL/JSON constructors to ruleutils_15.c
...
Relevant PG commits:
f4fb45d15c59d7add2e1b81a9d477d0119a9691a
cc7401d5ca498a84d9b47fd2e01cebd8e830e558
2022-08-01 15:38:56 +03:00
naisila
1362414d1e
Adds grammar support for SQL/JSON clauses in ruleutils_15.c
...
Relevant PG commit:
f79b803dcc98d707450e158db3638dc67ff8380b
2022-08-01 15:38:56 +03:00
naisila
90b827ab47
Fix assorted missing logic for GroupingFunc nodes in ruleutils_15.c
...
Relevant PG commit:
2591ee8ec44d8cbc8e1226550337a64c684746e4
2022-08-01 15:38:56 +03:00
naisila
66e0b53cff
Fix ruleutils_15.c's dumping of whole-row Vars in more contexts
...
Relevant PG commit:
43c2175121c829c8591fc5117b725f1f22bfb670
2022-08-01 15:38:56 +03:00
naisila
481bf7c7e3
Fix display of SQL-std func's args in INSERT/SELECT in ruleutils_15.c
...
Relevant PG commit:
a8d8445a7b2f80f6d0bfe97b19f90bd2cbef8759
2022-08-01 15:38:56 +03:00
naisila
8152d9719c
Adds find_recursive_union to ruleutils_15.c
...
Relevant PG commit:
3f50b82639637c9908afa2087de7588450aa866b
2022-08-01 15:38:56 +03:00
naisila
7181bab642
Change varno from Index (unsigned int) to int in ruleutils_15.c
...
Relevant PG commit:
e3ec3c00d85bd2844ffddee83df2bd67c4f8297f
2022-08-01 15:38:56 +03:00
naisila
cde3174c23
Clean up code using "(expr) ? true : false" in ruleutils_15.c
...
Relevant PG commit:
fd0625c7a9c679c0c1e896014b8f49a489c3a245
2022-08-01 15:38:56 +03:00
naisila
ff6b5c79ef
Uses get_namespace_name_or_temp in ruleutils_15.c
...
Relevant PG commit:
48c5c9068211e0a04fd9553c8714b2821ed3ad17
2022-08-01 15:38:56 +03:00
naisila
b999a84a61
Adds copy of ruleutils_14.c as ruleutils_15.c
2022-08-01 15:38:56 +03:00
naisila
af934cf5fd
Adjust configure script to allow PG15
2022-08-01 15:38:56 +03:00
Naisila Puka
5060d0ab17
Remove leftover PG version_above_11 checks from tests ( #6112 )
2022-08-01 15:38:19 +03:00
Naisila Puka
85324f3acc
Clean up multi_shard_commit_protocol guc leftovers ( #6110 )
2022-08-01 15:22:02 +03:00
Naisila Puka
f9b02946b1
Delete PG version_above_ten alternative test outputs ( #6111 )
2022-08-01 14:32:36 +03:00
Onur Tirtir
0a04b115aa
Add CHANGELOG entries for 11.0.5 ( #6108 )
2022-08-01 12:39:56 +02:00
aykut-bozkurt
f372e93d22
we supress notice log during looking up function oid to not break pg vanilla tests. ( #6082 )
2022-08-01 10:14:35 +03:00
Önder Kalacı
5490c85f49
Merge pull request #6097 from citusdata/fix_relation_acess_2
...
Add missing relation access record for local utility command
2022-07-29 17:00:17 +02:00
Önder Kalacı
cbdc2b3019
Merge branch 'main' into fix_relation_acess_2
2022-07-29 16:45:02 +02:00
Marco Slot
ccc3b1bacf
Merge pull request #6105 from citusdata/marcocitus/fix-process-exit
...
Fixes a crash that can happen due to catalog read in shmem_exit
2022-07-29 14:22:20 +02:00
Marco Slot
6d6e44166f
Avoid catalog read via superuser() call in DecrementSharedConnectionCounter
2022-07-29 14:05:41 +02:00
Onder Kalaci
bdaeb40b51
Add missing relation access record for local utility command
...
While testing 5670dffd33
, I realized
that we have a missing RecordNonDistTableAccessesForTask() for
local utility commands.
Although we don't have to record the relation access for local
only cases, we really want to keep the behaviour for scale-out
be the same with single node on all aspects. We wouldn't want
any single node complex transaction to work on single machine,
but not on multi node cluster. Hence, we apply the same restrictions.
For example, on a distributed cluster, the following errors, and
after this commit this errors locally as well
```SQL
CREATE TABLE ref(a int primary key);
INSERT INTO ref VALUES (1);
CREATE TABLE dist(a int REFERENCES ref(a));
SELECT create_reference_table('ref');
SELECT create_distributed_table('dist', 'a');
BEGIN;
SELECT * FROM dist;
TRUNCATE ref CASCADE;
ERROR: cannot execute DDL on table "ref" because there was a parallel SELECT access to distributed table "dist" in the same transaction
HINT: Try re-running the transaction with "SET LOCAL citus.multi_shard_modify_mode TO 'sequential';"
COMMIT;
```
We also add the comprehensive test suite and run the same locally.
2022-07-29 11:36:33 +02:00
Önder Kalacı
51a43dce4b
Merge pull request #6091 from citusdata/minor_fixes
...
Remove useless PG version compats
2022-07-29 10:46:17 +02:00
Onder Kalaci
149771792b
Remove useless version compats
...
most likely leftover from earlier versions
2022-07-29 10:31:55 +02:00
Onder Kalaci
24a9735e1c
Remove unusued gitattributes
2022-07-29 10:30:14 +02:00
Ying Xu
7c1a93b26b
Removed USE_PGXS snippet in Makefile that was blocking citus build when flag is set ( #6101 )
...
Code snippet in Makefile was blocking Citus build when USE_PGXS flag was set. This was included for port to FSPG but is not needed for Citus engine and can be safely removed.
2022-07-28 14:15:45 -07:00
aykut-bozkurt
a218198e8f
reindex object address should return invalid addresses for unsepported object types in reindex stmt ( #6096 )
2022-07-28 15:31:49 +03:00
Marco Slot
e001ef76cf
Merge pull request #6059 from citusdata/marcocitus/fix-insert-select
2022-07-28 13:35:30 +02:00
Marco Slot
cff013a057
Fix issues with insert..select casts and column ordering
2022-07-28 13:23:57 +02:00
aykut-bozkurt
789d5b9ef9
null check for server in GetObjectAddressByServerName ( #6095 )
2022-07-28 13:13:28 +03:00
Önder Kalacı
5670dffd33
Merge pull request #6092 from citusdata/fix_relation_acess
...
Fix relation access tracking for local only transactions
2022-07-28 11:35:40 +02:00
Onder Kalaci
b41c3fd30d
Add tests
2022-07-28 11:27:59 +02:00
Onder Kalaci
0a5112964d
Call relation access hash clean-up irrespective of remote transaction state
...
Mainly because local-only transactions should be cleaned up
2022-07-28 11:27:59 +02:00
Onder Kalaci
d67cf907a2
Detach relation access tracking from connection management
2022-07-28 11:27:59 +02:00
Ying Xu
fdf090758b
Bugfix for IN clause to be considered during planner phase in Columnar ( #6030 )
...
Reported bug #5803 shows that we are currently not sending the IN clause to our planner for columnar. This PR fixes it by checking for ScalarArrayOpExpr in ExtractPushdownClause so that we do not skip it. Also added a test case for this new addition.
2022-07-27 11:06:49 -07:00
Jelte Fennema
0f50bef696
Avoid possible information leakage about existing users ( #6090 )
2022-07-27 17:46:32 +02:00
Ahmet Gedemenli
2b2a529653
Error out for views with circular dependencies ( #6051 )
...
Adds error check for views with circular dependencies
2022-07-27 17:57:45 +03:00
aykut-bozkurt
b08e5ec29d
added some missing object address callbacks ( #6056 )
2022-07-27 17:36:04 +03:00
Naisila Puka
1259d83511
Smallfix in CreateCollationDDL logic ( #6089 )
2022-07-27 14:33:31 +03:00
Önder Kalacı
14c56ce0dd
Merge pull request #6066 from citusdata/fix_colocation_lock
...
Use colocation locks in lower level UDFs and create_distributed_table
2022-07-27 10:10:25 +02:00
Onder Kalaci
5bc8a81aa7
Add colocation checks for shard splits
2022-07-27 10:01:19 +02:00
Onder Kalaci
12fa3aaf6b
Concurrent shard move/copy and colocated table creation fix
...
It turns out that create_distributed_table
and citus_move/copy_shard_placement does not
work well concurrently.
To fix that, we need to acquire a lock, which
sounds like a good use of colocation lock.
However, the current usage of colocation lock is
limited to higher level UDFs like rebalance_table_shards
etc. Those usage of lock is still useful, but
we cannot acquire the same lock on citus_move_shard_placement
etc. because the coordinator connects to itself to acquire
the lock. Hence, the high level UDF blocks itself.
To fix that, we use one more colocation lock, with the placements
are the main objects to consider.
2022-07-27 10:01:19 +02:00