Change checks with built-in type

pull/1318/head
velioglu 2017-04-11 13:59:55 +03:00 committed by Metin Doslu
parent cfc0992137
commit 19d0c66fa5
3 changed files with 28 additions and 25 deletions

View File

@ -46,11 +46,11 @@ check-worker: all
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/worker_schedule $(EXTRA_TESTS) -- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/worker_schedule $(EXTRA_TESTS)
check-multi: all tempinstall-main check-multi: all tempinstall-main
$(pg_regress_multi_check) --load-extension=citus --load-extension=ltree \ $(pg_regress_multi_check) --load-extension=citus \
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_schedule $(EXTRA_TESTS) -- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_schedule $(EXTRA_TESTS)
check-multi-vg: all tempinstall-main check-multi-vg: all tempinstall-main
$(pg_regress_multi_check) --load-extension=citus --valgrind --load-extension=ltree \ $(pg_regress_multi_check) --load-extension=citus --valgrind \
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_schedule $(EXTRA_TESTS) -- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_schedule $(EXTRA_TESTS)
check-isolation: all tempinstall-main check-isolation: all tempinstall-main
@ -65,14 +65,14 @@ check-multi-mx: all tempinstall-main
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_mx_schedule $(EXTRA_TESTS) -- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_mx_schedule $(EXTRA_TESTS)
check-multi-task-tracker-extra: all tempinstall-main check-multi-task-tracker-extra: all tempinstall-main
$(pg_regress_multi_check) --load-extension=citus --load-extension=ltree \ $(pg_regress_multi_check) --load-extension=citus \
--server-option=citus.task_executor_type=task-tracker \ --server-option=citus.task_executor_type=task-tracker \
--server-option=citus.large_table_shard_count=1 \ --server-option=citus.large_table_shard_count=1 \
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_task_tracker_extra_schedule $(EXTRA_TESTS) -- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_task_tracker_extra_schedule $(EXTRA_TESTS)
check-multi-binary: all tempinstall-main check-multi-binary: all tempinstall-main
$(pg_regress_multi_check) --load-extension=citus --load-extension=ltree \ $(pg_regress_multi_check) --load-extension=citus \
--server-option=citus.binary_worker_copy_format=on \ --server-option=citus.binary_worker_copy_format=on \
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_binary_schedule $(EXTRA_TESTS) -- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_binary_schedule $(EXTRA_TESTS)

View File

@ -750,16 +750,18 @@ DROP TABLE numbers_hash;
SELECT * FROM run_command_on_workers('DROP USER test_user'); SELECT * FROM run_command_on_workers('DROP USER test_user');
DROP USER test_user; DROP USER test_user;
-- Test with ltree column -- Test copy with built-in type without binary output function
CREATE TABLE test_ltree (path ltree); CREATE TABLE test_smgr (
SELECT create_reference_table('test_ltree'); col1 smgr NOT NULL,
col2 character varying(255) NOT NULL
);
COPY test_ltree FROM STDIN DELIMITER AS ','; SELECT create_reference_table('test_smgr');
Top
Top.Science \COPY test_smgr FROM STDIN WITH (format CSV)
Top.Science.Astronomy magnetic disk, test
\. \.
SELECT path, nlevel(path) AS depth FROM test_ltree ORDER BY depth; SELECT * FROM test_smgr;
DROP TABLE test_ltree; DROP TABLE test_smgr;

View File

@ -1017,21 +1017,22 @@ SELECT * FROM run_command_on_workers('DROP USER test_user');
(2 rows) (2 rows)
DROP USER test_user; DROP USER test_user;
-- Test with ltree column -- Test copy with built-in type without binary output function
CREATE TABLE test_ltree (path ltree); CREATE TABLE test_smgr (
SELECT create_reference_table('test_ltree'); col1 smgr NOT NULL,
col2 character varying(255) NOT NULL
);
SELECT create_reference_table('test_smgr');
create_reference_table create_reference_table
------------------------ ------------------------
(1 row) (1 row)
COPY test_ltree FROM STDIN DELIMITER AS ','; \COPY test_smgr FROM STDIN WITH (format CSV)
SELECT path, nlevel(path) AS depth FROM test_ltree ORDER BY depth; SELECT * FROM test_smgr;
path | depth col1 | col2
-----------------------+------- ---------------+-------
Top | 1 magnetic disk | test
Top.Science | 2 (1 row)
Top.Science.Astronomy | 3
(3 rows)
DROP TABLE test_ltree; DROP TABLE test_smgr;