Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI2AS-0001Cu-GU for pgsql-sql@arkaria.postgresql.org; Mon, 24 Feb 2014 20:30:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WI2AR-00034V-Vx for pgsql-sql@arkaria.postgresql.org; Mon, 24 Feb 2014 20:30:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI2AQ-00034O-WF for pgsql-sql@postgresql.org; Mon, 24 Feb 2014 20:30:23 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WI2AN-0007gb-Rb for pgsql-sql@postgresql.org; Mon, 24 Feb 2014 20:30:22 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WI2AM-0004iL-0V for pgsql-sql@postgresql.org; Mon, 24 Feb 2014 12:30:18 -0800 Date: Mon, 24 Feb 2014 12:30:18 -0800 (PST) From: AlexK To: pgsql-sql@postgresql.org Message-ID: <1393273817988-5793380.post@n5.nabble.com> Subject: Is there an upper limit on the size of an array if it is indexed? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org I have created a unique index on an array of integers, and it works for a small test case: create table i(id int not null primary key, v int[] not null unique ); insert into i(id, v) values(1, ARRAY[1,2]); -- fails insert into i(id, v) values(2, ARRAY[1,2]); -- succeeds insert into i(id, v) values(2, ARRAY[2,1]); Is there an upper limit on the size of an array being indexed? I am currently considering arrays of 2K-3K integers. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Is-there-an-upper-limit-on-the-size-of-an-array-if-it-is-indexed-tp5793380.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql