mirror of https://github.com/citusdata/citus.git
26 lines
791 B
Plaintext
26 lines
791 B
Plaintext
SET search_path TO upgrade_distributed_function_before, public;
|
|
-- make sure that the metadata synced
|
|
SELECT bool_and(metadatasynced) FROM pg_dist_node WHERE isactive AND noderole = 'primary';
|
|
bool_and
|
|
---------------------------------------------------------------------
|
|
t
|
|
(1 row)
|
|
|
|
SET client_min_messages TO DEBUG1;
|
|
-- these are simple select functions, so doesn't have any
|
|
-- side effects, safe to be called without BEGIN;..;ROLLBACK;
|
|
SELECT count_values(11);
|
|
DEBUG: pushing down the function call
|
|
count_values
|
|
---------------------------------------------------------------------
|
|
1
|
|
(1 row)
|
|
|
|
SELECT count_values(12);
|
|
DEBUG: pushing down the function call
|
|
count_values
|
|
---------------------------------------------------------------------
|
|
1
|
|
(1 row)
|
|
|