Skip to content

Commit

Permalink
Check function linkage in update test
Browse files Browse the repository at this point in the history
This patch adds a check that all c functions link to the correct
library after an update.
  • Loading branch information
svenklemm committed Oct 13, 2020
1 parent ccfca44 commit 13b98f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/sql/updates/post.functions.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- This file and its contents are licensed under the Apache License 2.0.
-- Please see the included NOTICE for copyright information and
-- LICENSE-APACHE for a copy of the license.

-- check all functions point to the correct library
SELECT
oid::REGPROCEDURE,
probin
FROM
pg_proc
WHERE
probin LIKE '%timescale%'
ORDER BY
oid::REGPROCEDURE::TEXT;

1 change: 1 addition & 0 deletions test/sql/updates/post.v6.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
\ir post.continuous_aggs.v2.sql
\ir post.policies.sql
\ir post.sequences.sql
\ir post.functions.sql

0 comments on commit 13b98f5

Please sign in to comment.