Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG17 compatibility: Adjust print_extension_changes function for extra type outputs in PG17 #7761

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

naisila
Copy link
Member

@naisila naisila commented Nov 22, 2024

In PG17, Auto-generated array types, multirange types, and relation rowtypes
are treated as dependent objects, hence changing the output of the
print_extension_changes function.

Relevant PG commit:
e5bc9454e527b1cba97553531d8d4992892fdeef
postgres/postgres@e5bc945

Here we create a table with only the basic extension types
in order to avoid printing extra ones for now.
This can be removed when we drop PG16 support.

https://github.com/citusdata/citus/actions/runs/11960253650/attempts/1#summary-33343972656

                  | table pg_dist_local_group 
                  | table pg_dist_node 
                  | table pg_dist_node_metadata 
                  | table pg_dist_partition 
                  | table pg_dist_placement 
                  | table pg_dist_poolinfo 
                  | table pg_dist_rebalance_strategy 
                  | table pg_dist_shard 
                  | table pg_dist_transaction 
                  | type citus.distribution_type 
+                 | type citus.distribution_type[] 
+                 | type citus.pg_dist_object 
+                 | type citus.pg_dist_object[] 
                  | type citus.shard_transfer_mode 
+                 | type citus.shard_transfer_mode[] 
                  | type citus_copy_format 
+                 | type citus_copy_format[] 
+                 | type citus_dist_stat_activity 
+                 | type citus_dist_stat_activity[] 
+                 | type citus_lock_waits 
+                 | type citus_lock_waits[] 
+                 | type citus_shard_indexes_on_worker 
+                 | type citus_shard_indexes_on_worker[] 
+                 | type citus_shards_on_worker 
+                 | type citus_shards_on_worker[] 
+                 | type citus_stat_statements 
+                 | type citus_stat_statements[] 
+                 | type citus_worker_stat_activity 
+                 | type citus_worker_stat_activity[] 
                  | type noderole 
+                 | type noderole[] 
+                 | type pg_dist_authinfo 
+                 | type pg_dist_authinfo[] 
+                 | type pg_dist_colocation 
+                 | type pg_dist_colocation[] 
+                 | type pg_dist_local_group 
+                 | type pg_dist_local_group[] 
+                 | type pg_dist_node 
+                 | type pg_dist_node[] 
+                 | type pg_dist_node_metadata 
+                 | type pg_dist_node_metadata[] 
+                 | type pg_dist_partition 
+                 | type pg_dist_partition[] 
+                 | type pg_dist_placement 
+                 | type pg_dist_placement[] 
+                 | type pg_dist_poolinfo 
+                 | type pg_dist_poolinfo[] 
+                 | type pg_dist_rebalance_strategy 
+                 | type pg_dist_rebalance_strategy[] 
+                 | type pg_dist_shard 
+                 | type pg_dist_shard[] 
+                 | type pg_dist_shard_placement 
+                 | type pg_dist_shard_placement[] 
+                 | type pg_dist_transaction 
+                 | type pg_dist_transaction[] 
                  | view citus_dist_stat_activity 
                  | view citus_lock_waits 
                  | view citus_shard_indexes_on_worker 
                  | view citus_shards_on_worker 
                  | view citus_stat_statements 
                  | view citus_worker_stat_activity 
                  | view pg_dist_shard_placement 
-(186 rows)
+(228 rows)

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release-13.0@65dcc59). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release-13.0    #7761   +/-   ##
===============================================
  Coverage                ?   89.64%           
===============================================
  Files                   ?      274           
  Lines                   ?    59582           
  Branches                ?     7436           
===============================================
  Hits                    ?    53413           
  Misses                  ?     4035           
  Partials                ?     2134           
---- 🚨 Try these New Features:

@naisila naisila force-pushed the naisila/pg17_print_extension_changes branch from 85b11f9 to 636ba7e Compare November 22, 2024 11:50
In PG17, Auto-generated array types, multirange types, and relation rowtypes
are treated as dependent objects, hence changing the output of the
print_extension_changes function.

Relevant PG commit:
e5bc9454e527b1cba97553531d8d4992892fdeef
postgres/postgres@e5bc945

Here we create a table with only the basic extension types
in order to avoid printing extra ones for now
This can be removed when we drop PG16 support.
@naisila naisila force-pushed the naisila/pg17_print_extension_changes branch from 636ba7e to 36fb41b Compare November 22, 2024 12:51
@naisila naisila merged commit 12dd9c1 into release-13.0 Nov 22, 2024
120 of 121 checks passed
@naisila naisila deleted the naisila/pg17_print_extension_changes branch November 22, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants