@@ -320,7 +320,7 @@ SELECT validate_relname(NULL);
320320ERROR: relation should not be NULL
321321/* check function validate_expression() */
322322SELECT validate_expression(1::regclass, NULL); /* not ok */
323- ERROR: relation "1" does not exist
323+ ERROR: identifier "1" must be normal Oid
324324SELECT validate_expression(NULL::regclass, NULL); /* not ok */
325325ERROR: 'relid' should not be NULL
326326SELECT validate_expression('calamity.part_test', NULL); /* not ok */
@@ -426,19 +426,19 @@ SELECT build_sequence_name(NULL) IS NULL;
426426
427427/* check function partition_table_concurrently() */
428428SELECT partition_table_concurrently(1::REGCLASS); /* not ok */
429- ERROR: relation "1" has no partitions
429+ ERROR: identifier "1" must be normal Oid
430430SELECT partition_table_concurrently('pg_class', 0); /* not ok */
431431ERROR: 'batch_size' should not be less than 1 or greater than 10000
432432SELECT partition_table_concurrently('pg_class', 1, 1E-5); /* not ok */
433433ERROR: 'sleep_time' should not be less than 0.5
434434SELECT partition_table_concurrently('pg_class'); /* not ok */
435- ERROR: relation "pg_class" has no partitions
435+ ERROR: identifier "1259" must be normal Oid
436436/* check function stop_concurrent_part_task() */
437437SELECT stop_concurrent_part_task(1::REGCLASS); /* not ok */
438438ERROR: cannot find worker for relation "1"
439439/* check function drop_range_partition_expand_next() */
440440SELECT drop_range_partition_expand_next('pg_class'); /* not ok */
441- ERROR: relation "pg_class" is not a partition
441+ ERROR: identifier "1259" must be normal Oid
442442SELECT drop_range_partition_expand_next(NULL) IS NULL;
443443 ?column?
444444----------
@@ -560,7 +560,7 @@ DROP FUNCTION calamity.dummy_cb(arg jsonb);
560560SELECT add_to_pathman_config(NULL, 'val'); /* no table */
561561ERROR: 'parent_relid' should not be NULL
562562SELECT add_to_pathman_config(0::REGCLASS, 'val'); /* no table (oid) */
563- ERROR: relation "0" does not exist
563+ ERROR: identifier "0" must be normal Oid
564564SELECT add_to_pathman_config('calamity.part_test', NULL); /* no expr */
565565ERROR: 'expression' should not be NULL
566566SELECT add_to_pathman_config('calamity.part_test', 'V_A_L'); /* wrong expr */
0 commit comments