-- run this test only when old citus version is earlier than 11.0
\set upgrade_test_old_citus_version `echo "$CITUS_OLD_VERSION"`
SELECT substring(:'upgrade_test_old_citus_version', 'v(\d+)\.\d+\.\d+')::int < 11
AS upgrade_test_old_citus_version_lt_11_0;
 upgrade_test_old_citus_version_lt_11_0
---------------------------------------------------------------------
 f
(1 row)

\gset
\if :upgrade_test_old_citus_version_lt_11_0
\else
\q
