Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YvQT7-0000Z8-1L for pgsql-bugs@arkaria.postgresql.org; Thu, 21 May 2015 13:25:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YvQT6-0000Ug-GA for pgsql-bugs@arkaria.postgresql.org; Thu, 21 May 2015 13:25:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YvKh7-0005Ro-Td for pgsql-bugs@postgresql.org; Thu, 21 May 2015 07:15:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YvKh5-0006DX-4H for pgsql-bugs@postgresql.org; Thu, 21 May 2015 07:15:04 +0000 MIME-Version: 1.0 Subject: BUG #13327: Error on insert (gist index) To: pgsql-bugs@postgresql.org From: cpro29a@gmail.com Date: Thu, 21 May 2015 07:14:48 +0000 Message-ID: <20150521071448.26511.8665@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13327 Logged by: Sergey Melekhin Email address: cpro29a@gmail.com PostgreSQL version: 9.3.6 Operating system: Ubuntu 14.04 Description: I stumbled upon error, when multiple inserts or updates on table with gist index on many int[] columns fails. I got "stack depth limit exceded" on update, but when I started to write this test case I did not manage to get to updates - I got error when trying to populate table: ERROR: failed to add item to index page in "test_gist_i" CODE: begin; create table test_gist(id serial primary key, a1 int[],a2 int[], a3 int[], a4 int[], a5 int[]); create index test_gist_i on test_gist using gist (a1,a2,a3,a4,a5); --Simple random array generator create or replace function rnd_arr(p_len int) returns int[] as $$ select array_agg(val) from (select trunc(random()*1000.0)::int val from generate_series(1,trunc(random()*p_len*1.0)::int+1) ) v; $$ language sql; --##THIS FAILS: insert into test_gist(a1,a2,a3,a4,a5) select rnd_arr(10),rnd_arr(10),rnd_arr(10),rnd_arr(10),rnd_arr(10) from generate_series(1,100000); ; --##WITH MESSAGE: --ERROR: failed to add item to index page in "test_gist_i" rollback; -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs