1SET search_path TO upgrade_distributed_function_before, public; 2-- make sure that the metadata synced 3SELECT bool_and(metadatasynced) FROM pg_dist_node WHERE isactive AND noderole = 'primary'; 4 bool_and 5--------------------------------------------------------------------- 6 t 7 (1 row) 8 9SET client_min_messages TO DEBUG1; 10-- these are simple select functions, so doesn't have any 11-- side effects, safe to be called without BEGIN;..;ROLLBACK; 12SELECT count_values(11); 13DEBUG: pushing down the function call 14 count_values 15--------------------------------------------------------------------- 16 1 17 (1 row) 18 19SELECT count_values(12); 20DEBUG: pushing down the function call 21 count_values 22--------------------------------------------------------------------- 23 1 24 (1 row) 25 26