Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 1B4D4420B3E for ; Wed, 1 Feb 2012 20:35:34 -0400 (AST) Received: from mail-bk0-f46.google.com ([209.85.214.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RskeD-0006gs-5b for pgsql-bugs@postgresql.org; Thu, 02 Feb 2012 00:35:33 +0000 Received: by bkcjm19 with SMTP id jm19so1560015bkc.19 for ; Wed, 01 Feb 2012 16:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=MPAztzn+7PqNjiLRWbw2I7o75auo7hhE8ClJXRF9pVE=; b=L3ErORTWZVSEE3sHIotU5QUO+WAZCtyvm/TN+E0ZmlvUjrkmj0LUOKig7e3/r+mfVL Ktsrm7f8nURGxuSeGhcslAyDSg8XzkOzpmkqoFP0PZ3u3srC4W4E3wurW0x9yUDtNvUx plhP6jMaThRrwfvsrMC3klyIMLKOp65kozemA= Received: by 10.204.156.213 with SMTP id y21mr357141bkw.21.1328142919860; Wed, 01 Feb 2012 16:35:19 -0800 (PST) Received: from home.progtech.ru (os.progtech.ru. [80.252.153.41]) by mx.google.com with ESMTPS id ew13sm1796610bkb.1.2012.02.01.16.35.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Feb 2012 16:35:18 -0800 (PST) From: Sergey Burladyan To: Tom Lane Cc: don@rosfirm.ru, pgsql-bugs@postgresql.org Subject: Re: BUG #6407: Crash on queries to gin index with multiply values References: <4354.1327300766@sss.pgh.pa.us> <87y5sm5c8k.fsf@home.progtech.ru> Date: Thu, 02 Feb 2012 04:35:16 +0400 In-Reply-To: <87y5sm5c8k.fsf@home.progtech.ru> (Sergey Burladyan's message of "Thu, 02 Feb 2012 04:07:39 +0400") Message-ID: <87ty3a5ayj.fsf@home.progtech.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201202/28 X-Sequence-Number: 32371 Sergey Burladyan writes: > #1 0x00007fe1efbbc2b2 in get_leftop (clause=0x7fe1f1d85230) at /home/martin/debian/psql/9.1/build-area/postgresql-9.1-9.1.2/build/../src/backend/optimizer/util/clauses.c:189 I set breakpoint at src/backend/optimizer/util/clauses.c:188 and do some trace, may be this can help: Breakpoint 1, get_leftop (clause=0x7fe1f1d5af30) (gdb) print *expr $1 = {xpr = {type = T_OpExpr}, opno = 96, opfuncid = 65, opresulttype = 16, opretset = 0 '\000', opcollid = 0, inputcollid = 0, args = 0x7fe1f1d5cb98, location = 0} Breakpoint 1, get_leftop (clause=0x7fe1f1d5c4b0) (gdb) print *expr $2 = {xpr = {type = T_OpExpr}, opno = 96, opfuncid = 65, opresulttype = 16, opretset = 0 '\000', opcollid = 0, inputcollid = 0, args = 0x7fe1f1d5cc40, location = 0} Breakpoint 1, get_leftop (clause=0x7fe1f1d5c0b8) (gdb) print *expr $3 = {xpr = {type = T_ScalarArrayOpExpr}, opno = 96, opfuncid = 65, opresulttype = 1, opretset = 0 '\000', opcollid = 0, inputcollid = 4057317752, args = 0x1b, location = -237649736} -- Sergey Burladyan