Array issue.... - Mailing list pgsql-bugs

From dba
Subject Array issue....
Date
Msg-id 1297684312397-3384334.post@n5.nabble.com
Whole thread Raw
Responses Re: Array issue....  (Chetan Suttraway <chetan.suttraway@enterprisedb.com>)
Re: Array issue....  (Tatsuhito Kasahara <kasahara.tatsuhito@oss.ntt.co.jp>)
List pgsql-bugs
I wanted to create index 0f 3 numeric array. But it is allowing to insert
more than 4 elements

CREATE TABLE abs(no int[3]);
CREATE TABLE

zivah=# INSERT INTO abs VALUES('{1,3,34,343,4342342,342}');
INSERT 0 1

I need a solution to store an elements exactly 3. More than 3 should not be
allowed.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Array-issue-tp3384334p3384334.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.

pgsql-bugs by date:

Previous
From: ""
Date:
Subject: BUG #5883: Error when mixing SPI_returntuple with returning regular HeapTuple
Next
From: Chetan Suttraway
Date:
Subject: Re: Array issue....