3ac30ef9d8 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' into remove-deprecated-gucs-udfs  
							
							
							
						 
						
							2021-01-22 13:06:13 +03:00  
				
					
						
							
							
								 
						
							
							
								790c22c0ce 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4536  from citusdata/fix-bug-create-citus-local-table-with-stats  
							
							... 
							
							
							
							Fix bug creating citus local table with stats 
							
						 
						
							2021-01-22 13:05:56 +03:00  
				
					
						
							
							
								 
						
							
							
								76354ff563 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' into remove-deprecated-gucs-udfs  
							
							
							
						 
						
							2021-01-22 12:47:06 +03:00  
				
					
						
							
							
								 
						
							
							
								887b67953b 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' into fix-bug-create-citus-local-table-with-stats  
							
							
							
						 
						
							2021-01-22 12:46:47 +03:00  
				
					
						
							
							
								 
						
							
							
								b53296b4e4 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4552  from citusdata/columnar_fix_names  
							
							... 
							
							
							
							More meaningful columnar metadata table names 
							
						 
						
							2021-01-21 21:39:52 -08:00  
				
					
						
							
							
								 
						
							
							
								ff38996645 
								
							
								 
							
						 
						
							
							
								
								More meaningful columnar metadata table names  
							
							
							
						 
						
							2021-01-21 21:29:07 -08:00  
				
					
						
							
							
								 
						
							
							
								9051bf485f 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4557  from citusdata/columnar_rename_funcs  
							
							... 
							
							
							
							Don't use 'cstore' in symbols 
							
						 
						
							2021-01-21 21:11:27 -08:00  
				
					
						
							
							
								 
						
							
							
								222fb4d589 
								
							
								 
							
						 
						
							
							
								
								Don't use 'cstore' in function names  
							
							
							
						 
						
							2021-01-21 18:32:21 -08:00  
				
					
						
							
							
								 
						
							
							
								0b5551faaf 
								
									
								
							
								 
							
						 
						
							
							
								
								Columnar: add explain info for chunk filtering ( #4554 )  
							
							... 
							
							
							
							Co-authored-by: Jeff Davis <jefdavi@microsoft.com> 
							
						 
						
							2021-01-21 15:04:42 -08:00  
				
					
						
							
							
								 
						
							
							
								0581df23f4 
								
									
								
							
								 
							
						 
						
							
							
								
								Add columnar test for json ( #4553 )  
							
							... 
							
							
							
							Co-authored-by: Jeff Davis <jefdavi@microsoft.com> 
							
						 
						
							2021-01-21 14:36:38 -08:00  
				
					
						
							
							
								 
						
							
							
								03328e9679 
								
							
								 
							
						 
						
							
							
								
								Rename citus_tables column names to be query-friendly  
							
							
							
						 
						
							2021-01-21 18:58:30 +01:00  
				
					
						
							
							
								 
						
							
							
								9b39b25390 
								
									
								
							
								 
							
						 
						
							
							
								
								Prevent citus local table creation via remote execution ( #4540 )  
							
							... 
							
							
							
							/*
 * Creating Citus local tables relies on functions that accesses
 * shards locally (e.g., ExecuteAndLogDDLCommand()). As long as
 * we don't teach those functions to access shards remotely, we
 * cannot relax this check.
*/ 
							
						 
						
							2021-01-21 11:26:45 +03:00  
				
					
						
							
							
								 
						
							
							
								433062e5d2 
								
									
								
							
								 
							
						 
						
							
							
								
								Add fkeys between citus local and reference tables in some tests ( #4546 )  
							
							
							
						 
						
							2021-01-20 19:30:20 +03:00  
				
					
						
							
							
								 
						
							
							
								89a6fe83f7 
								
							
								 
							
						 
						
							
							
								
								Replace to update_distributed_table_colocation for tests  
							
							
							
						 
						
							2021-01-20 17:30:06 +03:00  
				
					
						
							
							
								 
						
							
							
								ceb6b503c0 
								
							
								 
							
						 
						
							
							
								
								Remove unused UDF mark_tables_colocated  
							
							
							
						 
						
							2021-01-20 17:29:23 +03:00  
				
					
						
							
							
								 
						
							
							
								2fa060a32d 
								
							
								 
							
						 
						
							
							
								
								Fix bug creating citus local table with stats  
							
							
							
						 
						
							2021-01-20 17:17:13 +03:00  
				
					
						
							
							
								 
						
							
							
								64a1fddd9a 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4544  from citusdata/refactor_utility_hook  
							
							... 
							
							
							
							Refactor utility hook 
							
						 
						
							2021-01-20 16:02:48 +03:00  
				
					
						
							
							
								 
						
							
							
								8129ce472f 
								
							
								 
							
						 
						
							
							
								
								Refactor Utility Hook  
							
							... 
							
							
							
							We want to be able to find the "top-level" DDL commands
(not internal/cascading ones). To achieve that, we have
some refactoring. 
							
						 
						
							2021-01-20 15:54:00 +03:00  
				
					
						
							
							
								 
						
							
							
								8df58926c5 
								
							
								 
							
						 
						
							
							
								
								Rename CitusProcessUtility -> ProcessUtilityForNode  
							
							
							
						 
						
							2021-01-20 15:54:00 +03:00  
				
					
						
							
							
								 
						
							
							
								082899ffa4 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4545  from citusdata/alter-into-same-access-method  
							
							... 
							
							
							
							Adds same access method check 
							
						 
						
							2021-01-20 15:50:52 +03:00  
				
					
						
							
							
								 
						
							
							
								434f5af030 
								
							
								 
							
						 
						
							
							
								
								Adds same access method check  
							
							
							
						 
						
							2021-01-20 15:18:03 +03:00  
				
					
						
							
							
								 
						
							
							
								e1376ca106 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4541  from citusdata/normalize_tests  
							
							... 
							
							
							
							Normalize citus_local_tables 
							
						 
						
							2021-01-19 16:15:40 -08:00  
				
					
						
							
							
								 
						
							
							
								8a5b6a43fc 
								
							
								 
							
						 
						
							
							
								
								Normalize citus_local_tables  
							
							
							
						 
						
							2021-01-19 15:56:42 -08:00  
				
					
						
							
							
								 
						
							
							
								131c981502 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4524  from citusdata/metadata_sync_reland  
							
							... 
							
							
							
							Metadata sync reland 
							
						 
						
							2021-01-19 08:20:14 -08:00  
				
					
						
							
							
								 
						
							
							
								0e0fd6599a 
								
							
								 
							
						 
						
							
							
								
								Faster logical replication tests.  
							
							... 
							
							
							
							Logical replication status can take wal_receiver_status_interval
seconds to get updated. Default is 10s, which means tests in
which logical replication is used can take a long time to finish.
We reduce it to 1 second to speed these tests up.
Logical replication apply launcher launches workers every
wal_retrieve_retry_interval, so if we have many shard moves with
logical replication consecutively, they will be throttled by this
parameter. Default is 5s, we reduce it to 1s so we finish tests
faster. 
							
						 
						
							2021-01-19 07:48:47 -08:00  
				
					
						
							
							
								 
						
							
							
								bc01c795a2 
								
							
								 
							
						 
						
							
							
								
								Reland  #4419  
							
							
							
						 
						
							2021-01-19 07:48:47 -08:00  
				
					
						
							
							
								 
						
							
							
								745ffbc691 
								
									
								
							
								 
							
						 
						
							
							
								
								Separate schedules for mixed mode and normal mode in upgrade ( #4420 )  
							
							
							
						 
						
							2021-01-19 14:08:11 +03:00  
				
					
						
							
							
								 
						
							
							
								fbcad34c26 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4522  from citusdata/include-indexes-in-statistics-command  
							
							... 
							
							
							
							Moves Creation of ALTER INDEX STATISTICS Commands Next to Index Commands 
							
						 
						
							2021-01-18 17:25:11 +03:00  
				
					
						
							
							
								 
						
							
							
								27c2bd1599 
								
							
								 
							
						 
						
							
							
								
								Moves creation of ALTER INDEX STATISTICS commands next to index commands  
							
							
							
						 
						
							2021-01-18 16:55:53 +03:00  
				
					
						
							
							
								 
						
							
							
								7124a7715d 
								
									
								
							
								 
							
						 
						
							
							
								
								Skip 'already exists' in CREATE TABLE IF NOT EXISTS PARTITION OF ( #4507 )  
							
							... 
							
							
							
							* Just skip 'already exists' in CT IF NOT EXISTS PARTITION OF
* Generalize to tables that are not already distributed partitions 
							
						 
						
							2021-01-18 15:56:02 +03:00  
				
					
						
							
							
								 
						
							
							
								f1ecbc3a53 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix segfault when adding/dropping fkey from ref to citus local via remote exec ( #4528 )  
							
							
							
						 
						
							2021-01-17 20:43:33 +03:00  
				
					
						
							
							
								 
						
							
							
								5a3e8a6e24 
								
									
								
							
								 
							
						 
						
							
							
								
								Skip postgres tables for UndistributeTable(cascadeViaFKeys) ( #4530 )  
							
							... 
							
							
							
							The reason behind skipping postgres tables is that we support
foreign keys between postgres tables and reference tables
(without converting postgres tables to citus local tables)
when enable_local_reference_table_foreign_keys is false or
when coordinator is not added to metadata. 
							
						 
						
							2021-01-17 20:32:30 +03:00  
				
					
						
							
							
								 
						
							
							
								2e61f93171 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4523  from citusdata/fix-assert-failure-create-statistics  
							
							... 
							
							
							
							Fix assert failure when creating statistics 
							
						 
						
							2021-01-15 19:49:58 +03:00  
				
					
						
							
							
								 
						
							
							
								107097ee28 
								
							
								 
							
						 
						
							
							
								
								Fix assert failure when creating statistics  
							
							
							
						 
						
							2021-01-15 19:36:58 +03:00  
				
					
						
							
							
								 
						
							
							
								7dddfa2d0b 
								
									
								
							
								 
							
						 
						
							
							
								
								Not invalidate fkey cache if citus not installed ( #4521 )  
							
							
							
						 
						
							2021-01-15 18:31:43 +03:00  
				
					
						
							
							
								 
						
							
							
								1e377ec699 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4480  from citusdata/create-table-define-fkey  
							
							... 
							
							
							
							* Convert postgres tables to citus local tables for CREATE TABLE commands defining foreign keys
* Introduce citus.enable_local_reference_table_foreign_keys guc 
							
						 
						
							2021-01-15 18:23:05 +03:00  
				
					
						
							
							
								 
						
							
							
								c35e22d75d 
								
							
								 
							
						 
						
							
							
								
								Skip validation for foreign key creation commands  
							
							... 
							
							
							
							For certaion purposes, we drop and recreate the foreign
keys. As we acquire exclusive locks on the tables in between
drop and re-create, we can safely skip validation phase of
the foreign keys. The reason is purely being performance as
foreign key validation could take a long value. 
							
						 
						
							2021-01-15 18:04:52 +03:00  
				
					
						
							
							
								 
						
							
							
								ae0b92233d 
								
							
								 
							
						 
						
							
							
								
								Rename function  
							
							
							
						 
						
							2021-01-15 18:04:52 +03:00  
				
					
						
							
							
								 
						
							
							
								30d0a65f40 
								
							
								 
							
						 
						
							
							
								
								Adds citus.enable_local_reference_table_foreign_keys  
							
							... 
							
							
							
							When enabled any foreign keys between local tables and reference
tables supported by converting the local table to a citus local
table.
When the coordinator is not in the metadata, the logic is disabled
as foreign keys are not allowed in this configuration. 
							
						 
						
							2021-01-15 18:04:52 +03:00  
				
					
						
							
							
								 
						
							
							
								ed58a404d5 
								
							
								 
							
						 
						
							
							
								
								Release lock on CoordinatorAddedAsWorkerNode()  
							
							... 
							
							
							
							Because master_add_node(or others) might acquire ExclusiveLock
and their initiated sessions may call CoordinatorAddedAsWorkerNode().
With this we prevent potential deadlocks. 
							
						 
						
							2021-01-15 18:04:42 +03:00  
				
					
						
							
							
								 
						
							
							
								e718d24868 
								
							
								 
							
						 
						
							
							
								
								Add support for CREATE TABLE commands defining foreign keys  
							
							
							
						 
						
							2021-01-15 17:46:06 +03:00  
				
					
						
							
							
								 
						
							
							
								66ff912f5d 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4512  from citusdata/remove-unused-gucs-and-functions  
							
							... 
							
							
							
							Remove unused GUCs and functions 
							
						 
						
							2021-01-15 13:47:40 +03:00  
				
					
						
							
							
								 
						
							
							
								9a100bcdb9 
								
							
								 
							
						 
						
							
							
								
								Remove unused GUCs  
							
							... 
							
							
							
							Remove deprecated variables
Remove GUC citus.sslmode
Remove GUC citus.expire_cached_shards
Remove GUC citus.task_tracker_delay
Remove GUC citus.max_assign_task_batch_size
Remove GUC citus.max_tracked_tasks_per_node
Remove GUC citus.max_running_tasks_per_node
Remove GUC citus.large_table_shard_count
Remove GUC citus.max_task_string_size
Remove GUC citus.binary_master_copy_format 
							
						 
						
							2021-01-15 13:30:45 +03:00  
				
					
						
							
							
								 
						
							
							
								787ed643dd 
								
									
								
							
								 
							
						 
						
							
							
								
								Undistribute table when cascade_via_foreign_keys=true even if rel has no fkeys ( #4516 )  
							
							... 
							
							
							
							If relation is not involved in any foreign key relationships,
foreign key graph would not return any relations for given
relationId as expected.
But even if it's the case, we should still undistribute the table
itself. 
							
						 
						
							2021-01-15 12:45:44 +03:00  
				
					
						
							
							
								 
						
							
							
								4d204320d3 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4513  from citusdata/fix-tableconversionreturn-warning  
							
							... 
							
							
							
							Fixes tableConversionReturn Redefinition Warning 
							
						 
						
							2021-01-15 11:58:14 +03:00  
				
					
						
							
							
								 
						
							
							
								9407965817 
								
							
								 
							
						 
						
							
							
								
								Moves struct to the header  
							
							
							
						 
						
							2021-01-15 11:50:11 +03:00  
				
					
						
							
							
								 
						
							
							
								4b9285353d 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4479  from citusdata/alter-table-add-fkey  
							
							... 
							
							
							
							Convert postgres tables to citus local tables for ALTER TABLE commands defining foreign keys 
							
						 
						
							2021-01-14 19:03:49 +03:00  
				
					
						
							
							
								 
						
							
							
								36b418982f 
								
							
								 
							
						 
						
							
							
								
								Add support for ALTER TABLE commands defining foreign keys  
							
							
							
						 
						
							2021-01-14 17:12:00 +03:00  
				
					
						
							
							
								 
						
							
							
								05931b8fe2 
								
							
								 
							
						 
						
							
							
								
								Pass ProcessUtilityContext to .preprocess  
							
							
							
						 
						
							2021-01-14 17:12:00 +03:00  
				
					
						
							
							
								 
						
							
							
								ac7bccd847 
								
							
								 
							
						 
						
							
							
								
								Skip citus tables for CreateCitusLocalTable(cascadeViaFKeys)  
							
							
							
						 
						
							2021-01-14 17:12:00 +03:00