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

Commit405740a

Browse files
author
Thomas G. Lockhart
committed
Include informational messages added for implicit index creation.
1 parent2ac4cf5 commit405740a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎src/test/regress/output/constraints.source

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,11 @@ x|y |z
213213
(2 rows)
214214

215215
QUERY: CREATE TABLE PRIMARY_TBL (i int PRIMARY KEY, t text);
216+
NOTICE:CREATE TABLE/PRIMARY KEY will create implicit index primary_tbl_pkey for table primary_tbl
216217
QUERY: INSERT INTO PRIMARY_TBL VALUES (1, 'one');
217218
QUERY: INSERT INTO PRIMARY_TBL VALUES (2, 'two');
218219
QUERY: INSERT INTO PRIMARY_TBL VALUES (1, 'three');
219-
WARN:Cannot insert a duplicate key into a unique index.
220+
WARN:Cannot insert a duplicate key into a unique index
220221
QUERY: INSERT INTO PRIMARY_TBL VALUES (4, 'three');
221222
QUERY: INSERT INTO PRIMARY_TBL VALUES (5, 'one');
222223
QUERY: INSERT INTO PRIMARY_TBL (t) VALUES ('six');
@@ -233,6 +234,7 @@ four|i|t
233234
QUERY: DROP TABLE PRIMARY_TBL;
234235
QUERY: CREATE TABLE PRIMARY_TBL (i int, t text,
235236
PRIMARY KEY(i,t));
237+
NOTICE:CREATE TABLE/PRIMARY KEY will create implicit index primary_tbl_pkey for table primary_tbl
236238
QUERY: INSERT INTO PRIMARY_TBL VALUES (1, 'one');
237239
QUERY: INSERT INTO PRIMARY_TBL VALUES (2, 'two');
238240
QUERY: INSERT INTO PRIMARY_TBL VALUES (1, 'three');
@@ -252,10 +254,11 @@ three|i|t
252254

253255
QUERY: DROP TABLE PRIMARY_TBL;
254256
QUERY: CREATE TABLE UNIQUE_TBL (i int UNIQUE, t text);
257+
NOTICE:CREATE TABLE/UNIQUE will create implicit index unique_tbl_i_key for table unique_tbl
255258
QUERY: INSERT INTO UNIQUE_TBL VALUES (1, 'one');
256259
QUERY: INSERT INTO UNIQUE_TBL VALUES (2, 'two');
257260
QUERY: INSERT INTO UNIQUE_TBL VALUES (1, 'three');
258-
WARN:Cannot insert a duplicate key into a unique index.
261+
WARN:Cannot insert a duplicate key into a unique index
259262
QUERY: INSERT INTO UNIQUE_TBL VALUES (4, 'four');
260263
QUERY: INSERT INTO UNIQUE_TBL VALUES (5, 'one');
261264
QUERY: INSERT INTO UNIQUE_TBL (t) VALUES ('six');
@@ -274,11 +277,12 @@ five|i|t
274277
QUERY: DROP TABLE UNIQUE_TBL;
275278
QUERY: CREATE TABLE UNIQUE_TBL (i int, t text,
276279
UNIQUE(i,t));
280+
NOTICE:CREATE TABLE/UNIQUE will create implicit index unique_tbl_i_key for table unique_tbl
277281
QUERY: INSERT INTO UNIQUE_TBL VALUES (1, 'one');
278282
QUERY: INSERT INTO UNIQUE_TBL VALUES (2, 'two');
279283
QUERY: INSERT INTO UNIQUE_TBL VALUES (1, 'three');
280284
QUERY: INSERT INTO UNIQUE_TBL VALUES (1, 'one');
281-
WARN:Cannot insert a duplicate key into a unique index.
285+
WARN:Cannot insert a duplicate key into a unique index
282286
QUERY: INSERT INTO UNIQUE_TBL VALUES (5, 'one');
283287
QUERY: INSERT INTO UNIQUE_TBL (t) VALUES ('six');
284288
QUERY: SELECT '' AS five, * FROM UNIQUE_TBL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp