GIN bugs in master branch

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Subject: GIN bugs in master branch
Date: 2013-11-12 19:33:49
Message-ID: 5282829D.7090002@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Suppose, some last changes in GIN are broken, 9.3 works fine.

CREATE OR REPLACE FUNCTION generate_tags()
RETURNS int[]
LANGUAGE SQL VOLATILE AS
$$
SELECT ARRAY(
SELECT
(random()*random()*1000)::int4
FROM
generate_series(1, 1 + (random()*random()*100)::int4)
);
$$;

DROP TABLE IF EXISTS t;

SELECT
i AS id,
generate_tags() AS tags
INTO t
FROM
generate_series(1, 1000000) AS i;

CREATE INDEX tagidx ON t USING gin (tags);

TRAP: FailedAssertion("!(( ( (GinPageOpaque) ( ((void) ((bool) ((!
assert_enabled) || ! (!(((const void*)(page) != ((void *)0)))) ||
(ExceptionalCondition("!(((const void*)(page) != ((void *)0)))",
("FailedAssertion"), "gindatapage.c", 51), 0)))), (char *) ((char *) (page) +
((PageHeader) (page))->pd_special) ) )->flags & (1 << 0) ))", File:
"gindatapage.c", Line: 51)

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeffrey Walton 2013-11-12 20:17:18 Re: Clang 3.3 Analyzer Results
Previous Message Tomas Vondra 2013-11-12 19:30:08 writable FDWs / update targets confusion