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

Commit00bcb8a

Browse files
committed
Change "WARN" message generated if a unique index is attempted on a table/key
containing non-unique data
1 parent3605898 commit00bcb8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/access/nbtree/nbtsort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
*
77
* IDENTIFICATION
8-
* $Id: nbtsort.c,v 1.11 1997/02/22 10:04:16 vadim Exp $
8+
* $Id: nbtsort.c,v 1.12 1997/02/25 03:38:23 scrappy Exp $
99
*
1010
* NOTES
1111
*
@@ -171,7 +171,7 @@ _bt_isortcmp(BTSortKey *k1, BTSortKey *k2)
171171
if (_bt_inspool->isunique )
172172
{
173173
_bt_spooldestroy ((void*)_bt_inspool);
174-
elog (WARN,"Cannotinsert a duplicate key into auniqueindex.");
174+
elog (WARN,"Cannotcreate unique index. Table contains non-uniquevalues");
175175
}
176176
return(0);/* 1 = 2 */
177177
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp