• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisãoee364a82c58fcac6702de2cee5b0ca1986382f66 (tree)
Hora2014-11-17 18:05:28
AutorKyotaro Horiguchi <horiguchi.kyotaro@lab....>
CommiterKyotaro Horiguchi

Mensagem de Log

Fix exception messages.

Exception messages in definitions of dbms_stats.restore(bid, relname,
colname) were incorrect. This causes incomprehensive message like this,

ERROR: too many parameters specified for RAISE

There's no harm other than the bogus message.

Mudança Sumário

Diff

--- a/ext_scripts/pg_dbms_stats--1.3.4--1.3.5-9.1.sql
+++ b/ext_scripts/pg_dbms_stats--1.3.4--1.3.5-9.1.sql
@@ -120,7 +120,7 @@ BEGIN
120120 RAISE EXCEPTION 'column "%" not found in relation %', $3, $2;
121121 END IF;
122122 IF NOT EXISTS(SELECT * FROM dbms_stats.column_stats_backup WHERE id <= $1 AND starelid = $2 AND staattnum = set_attnum) THEN
123- RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before',$3, $2, $1;
123+ RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before backup id = %',$3, $2, $1;
124124 END IF;
125125 END IF;
126126 PERFORM * FROM dbms_stats.relation_stats_locked r
--- a/ext_scripts/pg_dbms_stats--1.3.4--1.3.5-9.2.sql
+++ b/ext_scripts/pg_dbms_stats--1.3.4--1.3.5-9.2.sql
@@ -112,7 +112,7 @@ BEGIN
112112 RAISE EXCEPTION 'column "%" not found in relation %', $3, $2;
113113 END IF;
114114 IF NOT EXISTS(SELECT * FROM dbms_stats.column_stats_backup WHERE id <= $1 AND starelid = $2 AND staattnum = set_attnum) THEN
115- RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before',$3, $2, $1;
115+ RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before backup id = %',$3, $2, $1;
116116 END IF;
117117 END IF;
118118 PERFORM * FROM dbms_stats.relation_stats_locked r
--- a/ext_scripts/pg_dbms_stats--1.3.4--1.3.5-9.3.sql
+++ b/ext_scripts/pg_dbms_stats--1.3.4--1.3.5-9.3.sql
@@ -113,7 +113,7 @@ BEGIN
113113 RAISE EXCEPTION 'column "%" not found in relation %', $3, $2;
114114 END IF;
115115 IF NOT EXISTS(SELECT * FROM dbms_stats.column_stats_backup WHERE id <= $1 AND starelid = $2 AND staattnum = set_attnum) THEN
116- RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before',$3, $2, $1;
116+ RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before backup id = %',$3, $2, $1;
117117 END IF;
118118 END IF;
119119 PERFORM * FROM dbms_stats.relation_stats_locked r
--- a/ext_scripts/pg_dbms_stats--1.3.4--1.3.5-9.4.sql
+++ b/ext_scripts/pg_dbms_stats--1.3.4--1.3.5-9.4.sql
@@ -113,7 +113,7 @@ BEGIN
113113 RAISE EXCEPTION 'column "%" not found in relation %', $3, $2;
114114 END IF;
115115 IF NOT EXISTS(SELECT * FROM dbms_stats.column_stats_backup WHERE id <= $1 AND starelid = $2 AND staattnum = set_attnum) THEN
116- RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before',$3, $2, $1;
116+ RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before backup id = %',$3, $2, $1;
117117 END IF;
118118 END IF;
119119 PERFORM * FROM dbms_stats.relation_stats_locked r
--- a/ext_scripts/pg_dbms_stats--1.3.5-9.1.sql
+++ b/ext_scripts/pg_dbms_stats--1.3.5-9.1.sql
@@ -492,7 +492,7 @@ BEGIN
492492 RAISE EXCEPTION 'column "%" not found in relation %', $3, $2;
493493 END IF;
494494 IF NOT EXISTS(SELECT * FROM dbms_stats.column_stats_backup WHERE id <= $1 AND starelid = $2 AND staattnum = set_attnum) THEN
495- RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before',$3, $2, $1;
495+ RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before backup id = %',$3, $2, $1;
496496 END IF;
497497 END IF;
498498 PERFORM * FROM dbms_stats.relation_stats_locked r
--- a/ext_scripts/pg_dbms_stats--1.3.5-9.2.sql
+++ b/ext_scripts/pg_dbms_stats--1.3.5-9.2.sql
@@ -522,7 +522,7 @@ BEGIN
522522 RAISE EXCEPTION 'column "%" not found in relation %', $3, $2;
523523 END IF;
524524 IF NOT EXISTS(SELECT * FROM dbms_stats.column_stats_backup WHERE id <= $1 AND starelid = $2 AND staattnum = set_attnum) THEN
525- RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before',$3, $2, $1;
525+ RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before backup id = %',$3, $2, $1;
526526 END IF;
527527 END IF;
528528 PERFORM * FROM dbms_stats.relation_stats_locked r
--- a/ext_scripts/pg_dbms_stats--1.3.5-9.3.sql
+++ b/ext_scripts/pg_dbms_stats--1.3.5-9.3.sql
@@ -522,7 +522,7 @@ BEGIN
522522 RAISE EXCEPTION 'column "%" not found in relation %', $3, $2;
523523 END IF;
524524 IF NOT EXISTS(SELECT * FROM dbms_stats.column_stats_backup WHERE id <= $1 AND starelid = $2 AND staattnum = set_attnum) THEN
525- RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before',$3, $2, $1;
525+ RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before backup id = %',$3, $2, $1;
526526 END IF;
527527 END IF;
528528 PERFORM * FROM dbms_stats.relation_stats_locked r
--- a/ext_scripts/pg_dbms_stats--1.3.5-9.4.sql
+++ b/ext_scripts/pg_dbms_stats--1.3.5-9.4.sql
@@ -522,7 +522,7 @@ BEGIN
522522 RAISE EXCEPTION 'column "%" not found in relation %', $3, $2;
523523 END IF;
524524 IF NOT EXISTS(SELECT * FROM dbms_stats.column_stats_backup WHERE id <= $1 AND starelid = $2 AND staattnum = set_attnum) THEN
525- RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before',$3, $2, $1;
525+ RAISE EXCEPTION 'statistics of column "%" of relation "%" are not found in any backups before backup id = %',$3, $2, $1;
526526 END IF;
527527 END IF;
528528 PERFORM * FROM dbms_stats.relation_stats_locked r