Skip to content

Commit c7a8abf

Browse files
committed
slightly improve messages in init.sql
1 parent c521f58 commit c7a8abf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: expected/pg_pathman.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ INSERT INTO messages SELECT g, md5(g::text) FROM generate_series(1, 10) as g;
16901690
INSERT INTO replies SELECT g, g, md5(g::text) FROM generate_series(1, 10) as g;
16911691
SELECT create_range_partitions('messages', 'id', 1, 100, 2);
16921692
WARNING: Foreign key 'replies_message_id_fkey' references to the relation 'messages'
1693-
ERROR: Relation 'messages' is referenced from other relations
1693+
ERROR: Relation "messages" is referenced from other relations
16941694
ALTER TABLE replies DROP CONSTRAINT replies_message_id_fkey;
16951695
SELECT create_range_partitions('messages', 'id', 1, 100, 2);
16961696
NOTICE: sequence "messages_seq" does not exist, skipping

Diff for: init.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ BEGIN
341341
END LOOP;
342342

343343
IF is_referenced THEN
344-
RAISE EXCEPTION 'Relation ''%'' is referenced from other relations', p_relation;
344+
RAISE EXCEPTION 'Relation "%" is referenced from other relations', p_relation;
345345
END IF;
346346

347347
RETURN TRUE;
@@ -515,7 +515,7 @@ BEGIN
515515
DELETE FROM @[email protected]_config_params WHERE partrel = parent_relid;
516516

517517
IF conf_num_del = 0 THEN
518-
RAISE EXCEPTION 'table % has no partitions', parent_relid::text;
518+
RAISE EXCEPTION 'Relation "%" has no partitions', parent_relid::text;
519519
END IF;
520520

521521
FOR v_rec IN (SELECT inhrelid::regclass::text AS tbl

0 commit comments

Comments
 (0)