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

expected/pg_pathman.out

Lines changed: 1 addition & 1 deletion
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

init.sql

Lines changed: 2 additions & 2 deletions
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 @extschema@.pathman_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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy