提交 ca45434d 编写于 作者: H Heikki Linnakangas

Remove tidycat test cases.

Now that tidycat.pl doesn't exist anymore, we don't need its test cases
anymore either.
上级 30d97664
...@@ -70,6 +70,4 @@ upg2_pg_type_toadd33.data.in ...@@ -70,6 +70,4 @@ upg2_pg_type_toadd33.data.in
upgrade_pg_partitions.sql upgrade_pg_partitions.sql
upg_catupgrade_*.sql upg_catupgrade_*.sql
pg_class32.data pg_class32.data
tidyddl.sql
tidyproc.sql
wet_region.out wet_region.out
...@@ -16,14 +16,11 @@ mapred.out ...@@ -16,14 +16,11 @@ mapred.out
sreh.out sreh.out
upg2.out upg2.out
ereport.out ereport.out
tidycat.out
filespace.out filespace.out
upgrade.out upgrade.out
auth_constraint.out auth_constraint.out
catversion.out
resource_queue_function.out resource_queue_function.out
table_functions.out table_functions.out
tidycat2.out
tpch500GB.out tpch500GB.out
partindex_test.out partindex_test.out
external_table.out external_table.out
......
...@@ -59,7 +59,7 @@ test: vacuum_gp ...@@ -59,7 +59,7 @@ test: vacuum_gp
# ERROR: parameter "gp_interconnect_type" cannot be set after connection start # ERROR: parameter "gp_interconnect_type" cannot be set after connection start
ignore: gp_portal_error ignore: gp_portal_error
test: external_table partition_indexing column_compression eagerfree mapred tidycat gpdtm_plpgsql alter_table_aocs alter_table_ao alter_distribution_policy ic aoco_privileges test: external_table partition_indexing column_compression eagerfree mapred gpdtm_plpgsql alter_table_aocs alter_table_ao alter_distribution_policy ic aoco_privileges
ignore: icudp_full ignore: icudp_full
test: aocs test: aocs
......
-- --------------------------------------
-- catversion
-- --------------------------------------
-- *********************************************************************
-- *********************************************************************
-- This script will produce diffs if you add or change catalog version
-- in src/include/catalog/catversion.h. If you want to change the results,
-- you must make the changes in regress/output/catversion.source, not
-- regress/expected, and use gpsourcify.pl to generate a ".out" file.
--
-- From the regress directory invoke the command:
--
-- gpsourcify.pl results/catversion.out > output/catversion.source
--
-- *********************************************************************
-- *********************************************************************
-- *********************************************************************
-- *********************************************************************
CREATE EXTERNAL WEB TABLE get_pgvsn (x text)
execute E'(postgres --catalog-version | sed \'s/Catalog version number://g \' | sed -e \'s/ //g\' )'
ON MASTER
FORMAT 'text' (delimiter '|');
CREATE EXTERNAL WEB TABLE get_jvsn (x text)
execute E'(python -c \'import os; import json; from gppylib.gpversion import GpVersion; vsn = GpVersion("main") ; jname = str(vsn.getVersionRelease()) + ".json" ; infil = open(os.path.join("@abs_srcdir@/../../../../gpMgmt/bin/gppylib/data", jname)); d = json.load(infil); print d["__info"]["CATALOG_VERSION_NO"] \')'
ON MASTER
FORMAT 'text' (delimiter '|');
-- start_equiv
select 'version', * from get_jvsn;
select 'version', * from get_pgvsn;
-- end_equiv
drop external table get_pgvsn;
drop external table get_jvsn;
-- --------------------------------------
-- tidycat
-- --------------------------------------
-- start_matchsubs
--
-- # pg_statistic stavalues -- can't define a column of type anyarray
--
-- m/pg\_statistic\s*\|\s*stavalues/
-- s/text/anyarray/
--
-- end_matchsubs
-- *********************************************************************
-- *********************************************************************
-- This script will produce diffs if you add or change catalog table
-- definitions in src/include/catalog. If you want to change the results,
-- you must make the changes in regress/output/tidycat.source, not
-- regress/expected, and use gpsourcify.pl to generate a ".out" file.
--
-- From the regress directory invoke the command:
--
-- gpsourcify.pl results/tidycat.out > output/tidycat.source
--
-- *********************************************************************
-- *********************************************************************
-- *********************************************************************
-- *********************************************************************
\! find @abs_srcdir@/../../include/catalog \( -name 'pg_*.h' -o -name 'gp_*.h' \) | xargs perl @abs_srcdir@/../../include/catalog/tidycat.pl -sql - 2>&1 | perl -ple ' s/^\s*with\s*\(.*\)\s*//gm ' > @abs_srcdir@/data/tidyddl.sql
create schema tidycat;
set search_path to tidycat, "$user", public;
-- start_ignore
\i @abs_srcdir@/data/tidyddl.sql
-- how many tidycat defs?
select pc1.relname
from
pg_class pc1
where
pc1.relnamespace =
(select oid from pg_namespace
where nspname = 'tidycat')
order by relname;
-- end_ignore
-- how many non-tidycat defs? (should be ZERO)
select pc2.relname
from
pg_class pc2
where
pc2.relnamespace =
(select oid from pg_namespace
where nspname = 'pg_catalog')
and pc2.relkind = 'r'
and
pc2.relname not in
(select pc1.relname
from
pg_class pc1
where
pc1.relnamespace =
(select oid from pg_namespace
where nspname = 'tidycat'))
order by relname;
select pc2.relname
from
pg_class pc2
where
pc2.relnamespace =
(select oid from pg_namespace
where nspname = 'tidycat')
and pc2.relkind = 'r'
and
pc2.relname not in
(select pc1.relname
from
pg_class pc1
where
pc1.relnamespace =
(select oid from pg_namespace
where nspname = 'pg_catalog'))
order by relname;
-- start_equiv
select pc1.relname, pa1.attname, pt1.typname
from
pg_attribute pa1,
pg_class pc1,
pg_type pt1
where pt1.oid = pa1.atttypid
and pa1.attnum > 0
and pa1.attisdropped is false
and pc1.oid = pa1.attrelid
and pc1.relnamespace =
(select oid from pg_namespace
where nspname = 'tidycat')
order by relname, pa1.attnum;
select pc1.relname, pa1.attname, pt1.typname
from
pg_attribute pa1,
pg_class pc1,
pg_type pt1
where pt1.oid = pa1.atttypid
and pa1.attnum > 0
and pa1.attisdropped is false
and pc1.oid = pa1.attrelid
and pc1.relnamespace =
(select oid from pg_namespace where nspname = 'pg_catalog')
and pc1.relname in
(select relname from pg_class where relnamespace =
(select oid from pg_namespace where nspname = 'tidycat'))
order by relname, pa1.attnum;
-- end_equiv
set client_min_messages=error;
drop schema tidycat CASCADE;
-- --------------------------------------
-- catversion
-- --------------------------------------
-- *********************************************************************
-- *********************************************************************
-- This script will produce diffs if you add or change catalog version
-- in src/include/catalog/catversion.h. If you want to change the results,
-- you must make the changes in regress/output/catversion.source, not
-- regress/expected, and use gpsourcify.pl to generate a ".out" file.
--
-- From the regress directory invoke the command:
--
-- gpsourcify.pl results/catversion.out > output/catversion.source
--
-- *********************************************************************
-- *********************************************************************
-- *********************************************************************
-- *********************************************************************
CREATE EXTERNAL WEB TABLE get_pgvsn (x text)
execute E'(postgres --catalog-version | sed \'s/Catalog version number://g \' | sed -e \'s/ //g\' )'
ON MASTER
FORMAT 'text' (delimiter '|');
CREATE EXTERNAL WEB TABLE get_jvsn (x text)
execute E'(python -c \'import os; import json; from gppylib.gpversion import GpVersion; vsn = GpVersion("main") ; jname = str(vsn.getVersionRelease()) + ".json" ; infil = open(os.path.join("@abs_srcdir@/../../../../gpMgmt/bin/gppylib/data", jname)); d = json.load(infil); print d["__info"]["CATALOG_VERSION_NO"] \')'
ON MASTER
FORMAT 'text' (delimiter '|');
-- start_equiv
select 'version', * from get_jvsn;
?column? | x
----------+-----------
version | 201107201
(1 row)
select 'version', * from get_pgvsn;
?column? | x
----------+-----------
version | 201107201
(1 row)
-- end_equiv
drop external table get_pgvsn;
drop external table get_jvsn;
此差异已折叠。
...@@ -19,14 +19,11 @@ aocs.sql ...@@ -19,14 +19,11 @@ aocs.sql
appendonly.sql appendonly.sql
bkup_bkupdb.sql bkup_bkupdb.sql
mapred.sql mapred.sql
tidycat.sql
filespace.sql filespace.sql
upgrade.sql upgrade.sql
auth_constraint.sql auth_constraint.sql
catversion.sql
resource_queue_function.sql resource_queue_function.sql
table_functions.sql table_functions.sql
tidycat2.sql
tpch500GB.sql tpch500GB.sql
partindex_test.sql partindex_test.sql
external_table.sql external_table.sql
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册