@@ -213,10 +213,11 @@ x|y |z
213
213
(2 rows)
214
214
215
215
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
216
217
QUERY: INSERT INTO PRIMARY_TBL VALUES (1, 'one');
217
218
QUERY: INSERT INTO PRIMARY_TBL VALUES (2, 'two');
218
219
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
220
221
QUERY: INSERT INTO PRIMARY_TBL VALUES (4, 'three');
221
222
QUERY: INSERT INTO PRIMARY_TBL VALUES (5, 'one');
222
223
QUERY: INSERT INTO PRIMARY_TBL (t) VALUES ('six');
@@ -233,6 +234,7 @@ four|i|t
233
234
QUERY: DROP TABLE PRIMARY_TBL;
234
235
QUERY: CREATE TABLE PRIMARY_TBL (i int, t text,
235
236
PRIMARY KEY(i,t));
237
+ NOTICE:CREATE TABLE/PRIMARY KEY will create implicit index primary_tbl_pkey for table primary_tbl
236
238
QUERY: INSERT INTO PRIMARY_TBL VALUES (1, 'one');
237
239
QUERY: INSERT INTO PRIMARY_TBL VALUES (2, 'two');
238
240
QUERY: INSERT INTO PRIMARY_TBL VALUES (1, 'three');
@@ -252,10 +254,11 @@ three|i|t
252
254
253
255
QUERY: DROP TABLE PRIMARY_TBL;
254
256
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
255
258
QUERY: INSERT INTO UNIQUE_TBL VALUES (1, 'one');
256
259
QUERY: INSERT INTO UNIQUE_TBL VALUES (2, 'two');
257
260
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
259
262
QUERY: INSERT INTO UNIQUE_TBL VALUES (4, 'four');
260
263
QUERY: INSERT INTO UNIQUE_TBL VALUES (5, 'one');
261
264
QUERY: INSERT INTO UNIQUE_TBL (t) VALUES ('six');
@@ -274,11 +277,12 @@ five|i|t
274
277
QUERY: DROP TABLE UNIQUE_TBL;
275
278
QUERY: CREATE TABLE UNIQUE_TBL (i int, t text,
276
279
UNIQUE(i,t));
280
+ NOTICE:CREATE TABLE/UNIQUE will create implicit index unique_tbl_i_key for table unique_tbl
277
281
QUERY: INSERT INTO UNIQUE_TBL VALUES (1, 'one');
278
282
QUERY: INSERT INTO UNIQUE_TBL VALUES (2, 'two');
279
283
QUERY: INSERT INTO UNIQUE_TBL VALUES (1, 'three');
280
284
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
282
286
QUERY: INSERT INTO UNIQUE_TBL VALUES (5, 'one');
283
287
QUERY: INSERT INTO UNIQUE_TBL (t) VALUES ('six');
284
288
QUERY: SELECT '' AS five, * FROM UNIQUE_TBL;