Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpgpb-0006bs-PG for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Aug 2018 21:26:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpgpZ-0007Hr-PU for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Aug 2018 21:26:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpgpY-000738-5V for pgsql-hackers@lists.postgresql.org; Tue, 14 Aug 2018 21:26:20 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fpgpT-0004NO-S7 for pgsql-hackers@postgresql.org; Tue, 14 Aug 2018 21:26:18 +0000 Received: by mail-wr1-x441.google.com with SMTP id g1-v6so18412585wru.2 for ; Tue, 14 Aug 2018 14:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qIsLkFXhD5+vwOTY2xnMUYOrd8SDeaFARqiMnAOkH6k=; b=D/NrXxPmBbttW0G9p5ObsgyPlEY4n5d774XOd7MyZGfYF09cV/Ne8JZ7xUslVBcy6I at15MiQGH/OEqkWnozASosAqBxhROfsjdooUac3Zn0cwj8oFkzP3zthVJp4Xc4KCOoA5 wVW7a5/ojldBur0Z4KZUtFZoVWZc2NKviopc+nhczkzMe0P3bl9v/XP6HL5CUVhiVfQv GwlgcpXHf1TgSrMpt2+haxkTdOXSyXOX9kJ0+t+05AmGHqmzzR9735GjAsFB+R0YjaOg sGAQHQgCmh5BEqBbLM+X92gbzqrsooVxUG/XrvtObLkal1duDiEAjERMUeUCUkzvyYd8 jxDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qIsLkFXhD5+vwOTY2xnMUYOrd8SDeaFARqiMnAOkH6k=; b=fD38lXw3nkdYOib2UdkGV2csu6zPnC6ozLhNtd4eiyELP2IGLLmMIAgLWBSiimAJh4 xpV3f5hqMFFI94KwFCrIjs4inGLRtDc0AFKmD72ikgL/gC3PSPZCG1C6eTZ+Y4HQd/w7 AgbhMFZZDf9+a3yS9f4DLLYcinv1dAQ/UkeVgSx/KNPNrDayOlm+wAEvbmWYNmKZmSf3 Nkee3muAAc4ZeN68O3Ju5FP0oPj2k7XG6nuwxS7jgEIbnV7UslWnvtxPMPL6DhK33isl mukwx68lvh7GzKmqG8TyQ0ZS291OeaJl4hx/PEC2ugwK+kS3VMr434DBvrlrswcQtkif WBzQ== X-Gm-Message-State: AOUpUlHmxElle/RJJlKQ3FChvBg8u9Q4x40phHNROvEdrtFEUdae2cIE B8wXZJ3bCDo4/XcCoTkSKzCK5rHthJv51pPPvOjnWltWv++gMDUmA8yPVYafGopSb0NwDkFLIvO 35bkSd9UViVzTXwJPJIdViX+5BC3WsgqHwiJCWNgzxRTFRU9Ys8Q/nyjTpsFPuhkln2iZzrLNVa D7xYD/vP5VNFE= X-Google-Smtp-Source: AA+uWPzL3N6Sf6kWsLUV430uScZvExOR7qwft0spoTWvoqXp2pe8l4Qjbkm8AnQoLjgIyyxQtulLhA== X-Received: by 2002:adf:a789:: with SMTP id j9-v6mr14294500wrc.277.1534281973066; Tue, 14 Aug 2018 14:26:13 -0700 (PDT) Received: from [10.137.0.20] (cst-prg-1-181.cust.vodafone.cz. [46.135.1.181]) by smtp.gmail.com with ESMTPSA id w3-v6sm16408459wrn.16.2018.08.14.14.26.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 14:26:12 -0700 (PDT) Subject: Re: logical decoding / rewrite map vs. maxAllocatedDescs From: Tomas Vondra To: Andres Freund , Alvaro Herrera Cc: PostgreSQL-development References: <20180813144630.hmzdrbviwao64ube@alvherre.pgsql> <20180813144946.fn4zpdwpucx43emz@alap3.anarazel.de> <9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com> Message-ID: <094c73aa-4617-9f21-ee87-8e6ef3850277@2ndquadrant.com> Date: Tue, 14 Aug 2018 17:26:30 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/14/18 10:05 AM, Tomas Vondra wrote: > ... > > I take that back - I can reproduce the crashes, both with and without > the patch, all the way back to 9.6. Attached is a bunch of backtraces > from various versions. There's a bit of variability depending on which > pgbench script gets started first (insert.sql or vacuum.sql) - in one > case (when vacuum is started before insert) the crash happens in > InitPostgres/RelationCacheInitializePhase3, otherwise it happens in > exec_simple_query. > > Another observation is that the failing COPY is not necessary, I can > reproduce the crashes without this (so even with wal_level=replica). > BTW I have managed to reproduce this on an old test server. If anyone wants to take a look, I can arrange ssh access to that machine (for trustworthy developers). Let me know. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services