Move "DROP FUNCTION" for older version of UDF to correct file (#8085)

We never update an older version of a SQL object for consistency across
release tags, so this commit moves "DROP FUNCTION .." for the older
version of "pg_catalog.worker_last_saved_explain_analyze();" to the
appropriate migration script.

See https://github.com/citusdata/citus/pull/8017.
pull/8089/head
Onur Tirtir 2025-07-31 13:30:12 +03:00 committed by GitHub
parent 889aa92ac0
commit c183634207
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,5 @@
-- citus--13.2-1--13.1-1 -- citus--13.2-1--13.1-1
-- downgrade version to 13.1-1 -- downgrade version to 13.1-1
DROP FUNCTION IF EXISTS pg_catalog.worker_last_saved_explain_analyze();
#include "../udfs/worker_last_saved_explain_analyze/9.4-1.sql" #include "../udfs/worker_last_saved_explain_analyze/9.4-1.sql"

View File

@ -1,6 +1,4 @@
DROP FUNCTION IF EXISTS pg_catalog.worker_last_saved_explain_analyze();
CREATE OR REPLACE FUNCTION pg_catalog.worker_last_saved_explain_analyze() CREATE OR REPLACE FUNCTION pg_catalog.worker_last_saved_explain_analyze()
RETURNS TABLE(explain_analyze_output TEXT, execution_duration DOUBLE PRECISION) RETURNS TABLE(explain_analyze_output TEXT, execution_duration DOUBLE PRECISION)
LANGUAGE C STRICT LANGUAGE C STRICT