Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK92d-0008Tr-JG for pgsql-general@arkaria.postgresql.org; Tue, 06 Nov 2018 21:37:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gK92c-00068E-0f for pgsql-general@arkaria.postgresql.org; Tue, 06 Nov 2018 21:37:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK92b-000683-Jr; Tue, 06 Nov 2018 21:37:41 +0000 Received: from mxc2.seznam.cz ([2a02:598:2::1023]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK92Y-0004Xk-94; Tue, 06 Nov 2018 21:37:40 +0000 Received: from email.seznam.cz by email-smtpc10a.ng.seznam.cz (email-smtpc10a.ng.seznam.cz [10.23.11.45]) id 66319fd895e0123c66a31789; Tue, 06 Nov 2018 22:37:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=email.cz; s=beta; t=1541540254; bh=oBsJTQDfbdVUt1V7zaF4js7H/8qsrbjeb3ToYZoSoRE=; h=Received:Subject:To:Cc:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding; b=T1eGvIIYHPxF3KIIytTAeLxRamGgVPP1YjPHaqP4N1YBMm0lYxLd82B+cbvDGoSfI ENe8Ypu1RpIzIIcTP83hVARTGZQoUjC29Mj/ALwfLAOJXgQdegX5PpHOwXxygLHLCE 0t4UxNMP+hvbapPumpKE6pdoCcl46h/EKbpjH3cA= Received: from [192.168.0.110] (ip-94-112-39-7.net.upcbroadband.cz [94.112.39.7]) by email-relay28.ng.seznam.cz (Seznam SMTPD 1.3.102) with ESMTP; Tue, 06 Nov 2018 22:37:32 +0100 (CET) Subject: Re: backend crash on DELETE, reproducible locally To: Tom Lane , Alvaro Herrera Cc: pgsql-hackers@lists.postgresql.org, pgsql-general@lists.postgresql.org References: <20181106194553.dynhd2xuivo56ymd@alvherre.pgsql> <33d144b9-5208-8d32-7e95-94ed4d2931b8@email.cz> <450.1541535425@sss.pgh.pa.us> <134c09b5-3eb0-bafd-2aeb-f383e1e21b8a@email.cz> <2432.1541538215@sss.pgh.pa.us> <2877.1541538838@sss.pgh.pa.us> From: =?UTF-8?Q?Ond=c5=99ej_Bouda?= Message-ID: Date: Tue, 6 Nov 2018 22:37:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <2877.1541538838@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: cs Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > Ondřej, as a short-term workaround you could prevent the crash > by setting that index's recheck_on_update property to false. Thanks for the tip. I am unsuccessful using it, though: # ALTER INDEX public.schedulecard_overlap_idx SET (recheck_on_update = FALSE); ERROR: unrecognized parameter "recheck_on_update" Creating a new index is wrong, too: # CREATE INDEX schedulecard_overlap_idx2 ON public.schedulecard USING gist (scheduletemplate_id, (period_day::integer % 7), timerange) WITH (recheck_on_update = FALSE); ERROR: unrecognized parameter "recheck_on_update" It only succeeds if not USING gist: # CREATE INDEX schedulecard_overlap_idx2 ON public.schedulecard (scheduletemplate_id, (period_day::integer % 7), timerange) WITH (recheck_on_update = FALSE); CREATE INDEX Is there any other workaround for a gist index, please? Maybe we will just drop the index until the bug gets fixed - better slow queries than crashing servers... Thanks, Ondřej Bouda