Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit819c07e

Browse files
committed
remove declaration of function get_attribute_type_pl(), more calamity tests
1 parent6f2eb10 commit819c07e

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

‎expected/pathman_calamity.out

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,13 @@ ERROR: 'parent_relid' should not be NULL
389389
SELECT invoke_on_partition_created_callback('calamity.part_test', NULL, 1);
390390
ERROR: 'partition' should not be NULL
391391
/* check function add_to_pathman_config() -- PHASE #1 */
392-
SELECT add_to_pathman_config('calamity.part_test', NULL);
392+
SELECT add_to_pathman_config(NULL, 'val');/* no table */
393+
ERROR: 'parent_relid' should not be NULL
394+
SELECT add_to_pathman_config('calamity.part_test', NULL);/* no column */
393395
ERROR: 'attname' should not be NULL
394-
SELECT add_to_pathman_config('calamity.part_test', 'val');
396+
SELECT add_to_pathman_config('calamity.part_test', 'V_A_L');/* wrong column */
397+
ERROR: relation "part_test" has no column "V_A_L"
398+
SELECT add_to_pathman_config('calamity.part_test', 'val');/* OK */
395399
add_to_pathman_config
396400
-----------------------
397401
t
@@ -404,7 +408,7 @@ NOTICE: function calamity.part_test_upd_trig_func() does not exist, skipping
404408

405409
(1 row)
406410

407-
SELECT add_to_pathman_config('calamity.part_test', 'val', '10');
411+
SELECT add_to_pathman_config('calamity.part_test', 'val', '10'); /* OK */
408412
add_to_pathman_config
409413
-----------------------
410414
t

‎sql/pathman_calamity.sql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,12 @@ SELECT invoke_on_partition_created_callback(NULL, 'calamity.part_test', 1);
140140
SELECT invoke_on_partition_created_callback('calamity.part_test',NULL,1);
141141

142142
/* check function add_to_pathman_config() -- PHASE #1*/
143-
SELECT add_to_pathman_config('calamity.part_test',NULL);
144-
SELECT add_to_pathman_config('calamity.part_test','val');
143+
SELECT add_to_pathman_config(NULL,'val');/* no table*/
144+
SELECT add_to_pathman_config('calamity.part_test',NULL);/* no column*/
145+
SELECT add_to_pathman_config('calamity.part_test','V_A_L');/* wrong column*/
146+
SELECT add_to_pathman_config('calamity.part_test','val');/* OK*/
145147
SELECT disable_pathman_for('calamity.part_test');
146-
SELECT add_to_pathman_config('calamity.part_test','val','10');
148+
SELECT add_to_pathman_config('calamity.part_test','val','10');/* OK*/
147149
SELECT disable_pathman_for('calamity.part_test');
148150

149151

‎src/pl_funcs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ PG_FUNCTION_INFO_V1( on_partitions_removed );
4141
PG_FUNCTION_INFO_V1(get_number_of_partitions_pl );
4242
PG_FUNCTION_INFO_V1(get_parent_of_partition_pl );
4343
PG_FUNCTION_INFO_V1(get_base_type_pl );
44-
PG_FUNCTION_INFO_V1(get_attribute_type_pl );
4544
PG_FUNCTION_INFO_V1(get_partition_key_type );
4645
PG_FUNCTION_INFO_V1(get_tablespace_pl );
4746

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp