Gokhan Gulbiz
54114f76c1
Merge branch 'multi-tenant-monitoring-annotation-parsing' into multi-tenant-monitoring-annotate-local-queries
2023-03-28 14:32:02 +03:00
Gokhan Gulbiz
96cf7d00e2
Test special and multibyte characters in tenant attribute
2023-03-28 08:46:32 +03:00
Gokhan Gulbiz
bac337debd
Increase citus.stats_tenants_limit to 10
2023-03-28 08:33:02 +03:00
Gokhan Gulbiz
b86f2b5607
Indent
2023-03-28 08:33:02 +03:00
Gokhan Gulbiz
508ee987e6
Rewrite ExtractTopComment by using strstr() and stringinfo
2023-03-28 08:33:02 +03:00
Gokhan Gulbiz
0b06e64c3f
Use stringinfo for escaping/unescaping
2023-03-28 08:33:02 +03:00
Gokhan Gulbiz
0744384bac
Update comment
...
Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
2023-03-28 08:33:02 +03:00
Gokhan Gulbiz
5e9dd3c894
Add an additional comment
...
Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
2023-03-28 08:33:01 +03:00
Gokhan Gulbiz
2ac56ef955
Revert "Use text_substr for getting top comment"
...
This reverts commit 9531cfd3bf
.
2023-03-28 08:33:01 +03:00
Gokhan Gulbiz
81953d7ac6
Convert char* to text for text_substr call
2023-03-28 08:33:01 +03:00
Gokhan Gulbiz
426cfd3ce5
Indent
2023-03-28 08:33:01 +03:00
Gokhan Gulbiz
8b09a4f8c0
Handle no comment end chars
2023-03-28 08:33:01 +03:00
Gokhan Gulbiz
fc23fd5061
Use text_substr for getting top comment
2023-03-28 08:33:00 +03:00
Gokhan Gulbiz
905cc5b4f3
Use palloc instead of malloc
2023-03-28 08:33:00 +03:00
Gokhan Gulbiz
3ec2994abd
Indent
2023-03-28 08:33:00 +03:00
Gokhan Gulbiz
3a5c7c3280
Indent
2023-03-28 08:33:00 +03:00
Gokhan Gulbiz
486e2a622a
Refactoring to reduce nesting
2023-03-28 08:33:00 +03:00
Gokhan Gulbiz
8e1e827242
Remove unnecessary check
2023-03-28 08:32:59 +03:00
Gokhan Gulbiz
5e6ac25885
Renamings
2023-03-28 08:32:59 +03:00
Gokhan Gulbiz
a355825bfe
Set INVALID_COLOCATION_ID if colocationId doesn't exist in the annotation.
2023-03-28 08:32:59 +03:00
Gokhan Gulbiz
c60de03d6a
Indent
2023-03-28 08:32:21 +03:00
Gokhan Gulbiz
da24f2fd62
Indent
2023-03-28 08:32:20 +03:00
Gokhan Gulbiz
3cfa197f69
Escape/Unescape sql comment chars
2023-03-28 08:32:20 +03:00
Gokhan Gulbiz
80dd73711e
Minor renamings and refactorings
2023-03-28 08:32:20 +03:00
Gokhan Gulbiz
dbc26cacb5
Add comment chars escaping
2023-03-28 08:32:20 +03:00
Gokhan Gulbiz
89e6623960
Fix attribute prefix
2023-03-28 08:32:20 +03:00
Gokhan Gulbiz
bb4aacb92f
Fix tenant statistics annotations normalization
2023-03-28 08:32:19 +03:00
Gokhan Gulbiz
e9a6f8a7c5
Indent
2023-03-28 08:32:19 +03:00
Gokhan Gulbiz
21298f6661
Validate attribute prefix existance on query string
2023-03-28 08:32:19 +03:00
Gokhan Gulbiz
6d8cd8a9a0
Validate input string length
2023-03-28 08:31:26 +03:00
Gokhan Gulbiz
eaa896e744
Normalize multiline sql comment statements
2023-03-28 08:31:26 +03:00
Gokhan Gulbiz
517ceb2d22
Use strncpy_s instead of strncpy
2023-03-28 08:31:26 +03:00
Gokhan Gulbiz
fda680d22e
Use palloc instead of malloc
2023-03-28 08:31:26 +03:00
Gokhan Gulbiz
024526ab2f
Introduce JSON based annotation parsing
2023-03-28 08:31:25 +03:00
Gokhan Gulbiz
9d2d97fe67
Add ExtractFieldInt32(..) to jsonbutils
2023-03-28 08:03:26 +03:00
Halil Ozan Akgül
b989e8872c
Citus stats tenants collector view ( #6761 )
...
Add a view that collects statistics from all nodes
2023-03-27 17:42:22 +03:00
Halil Ozan Akgul
d6603390ab
Add multi tenant statistics monitoring
2023-03-27 17:13:24 +03:00
Onur Tirtir
372a93b529
Make 8 more tests runnable multiple times via run_test.py ( #6791 )
...
Soon I will be doing some changes related to #692 in router planner
and those changes require updating ~5/6 tests related to router
planning. And to make those test files runnable by run_test.py
multiple times, we need to make some other tests (that they're
run in parallel / they badly depend on) ready for run_test.py too.
2023-03-27 12:19:06 +03:00
Gokhan Gulbiz
161ec751d1
Validate tenantId and colocationId
2023-03-23 12:22:03 +03:00
Gokhan Gulbiz
0efb897706
Test local cached queries & prepared statements
2023-03-23 11:51:09 +03:00
Gokhan Gulbiz
931554fb32
Merge branch 'multi-tenant-monitoring-annotation-parsing' into multi-tenant-monitoring-annotate-local-queries
2023-03-23 11:13:18 +03:00
Gokhan Gulbiz
7dfe0c7659
Test special and multibyte characters in tenant attribute
2023-03-23 11:12:16 +03:00
Gokhan Gulbiz
ad91298568
Increase citus.stats_tenants_limit to 10
2023-03-23 11:10:29 +03:00
Gokhan Gulbiz
3d9f40d22a
Indent
2023-03-23 10:20:50 +03:00
Teja Mupparti
da7db53c87
Refactor some of the planning code to accomodate a new planning path for MERGE SQL
2023-03-22 11:29:24 -07:00
Gokhan Gulbiz
46ae3a37d5
Indent
2023-03-22 17:13:24 +03:00
Gokhan Gulbiz
bb2ab9e93c
Move adding tenant statistic attributes to local_executor to keep track of both local shard queries and local cached queries
2023-03-22 16:39:10 +03:00
Onur Tirtir
e1f1d63050
Rename AllRelations.. functions to AllDistributedRelations.. ( #6789 )
...
Because they're only interested in distributed tables. Even more,
this replaces HasDistributionKey() check with
IsCitusTableType(DISTRIBUTED_TABLE) because this doesn't make a
difference on main and sounds slightly more intuitive. Plus, this
would also allow safely using this function in
https://github.com/citusdata/citus/pull/6773 .
2023-03-22 15:15:23 +03:00
Gokhan Gulbiz
9a0ed9844f
Merge branch 'multi-tenant-monitoring-annotation-parsing' into multi-tenant-monitoring-annotate-local-queries
2023-03-22 11:05:15 +03:00
Gokhan Gulbiz
125532e98a
temp - local query monitoring
2023-03-22 11:03:13 +03:00