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

Commitc7a8abf

Browse files
committed
slightly improve messages in init.sql
1 parentc521f58 commitc7a8abf

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
DELETEFROM @extschema@.pathman_config_paramsWHERE 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_recIN (SELECT inhrelid::regclass::textAS tbl

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp