Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRmSQ-0003Zu-3x for pgsql-committers@arkaria.postgresql.org; Thu, 01 Apr 2021 01:49:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRmSO-0004HK-Kw for pgsql-committers@arkaria.postgresql.org; Thu, 01 Apr 2021 01:49:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRmSO-0004Gg-FX for pgsql-committers@lists.postgresql.org; Thu, 01 Apr 2021 01:49:12 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lRmSK-0000Hp-Hi for pgsql-committers@lists.postgresql.org; Thu, 01 Apr 2021 01:49:11 +0000 Received: by mail-ej1-x630.google.com with SMTP id r12so490371ejr.5 for ; Wed, 31 Mar 2021 18:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=iE3VrHsqeVJIBJ1oPbiuOl6JUCttIgWtRfXiAS7xyRY=; b=hVz+bQZ2sTBmn+rSjAJTECC8ZlSwphl3QtsCypQlOViXC+agy2itj0wNSoWU0lpuqV W1rIPI9ci0F1ay23/2PgScKPZeN+5cpsbmF36Abs2oh7BD8M7VNeUhviOBnoT7vrVHHs 4yf+5gN3fHwXZP0YJv5jk225JM3JuKcMET6ljNw3FyTL/y7Qwj2dRom++zCAfJS8xdZP 9MYNacKieY7YH46ojfARfmhG9mfcG8ykT+jvr3cB562ySv++13Y5U1ZPKohTA06yJAx/ IrW215TusVHvGA2f8PZz9MgS8qh7ksOkDYcmA1ydfziSXQyC3LpsfMimr2pU/ZHucMBC hE2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iE3VrHsqeVJIBJ1oPbiuOl6JUCttIgWtRfXiAS7xyRY=; b=HQPdTOUVAai3NOBI41ltDml93GHlrXozjgHwRgcgW9Dw/ZZd28p9Ct3+J9o9xcQF9w YLARI9TCjWled13c2qXHL26phVLjmUU5SI9QMtzidxCxUb4UmJ2IBrh8agALJ90DuQYW VdZZUILxyO+sOrVhs7EFAayfZfs8Q55amSKsBauvcehblpMbbpAMMRksmwkR3cNvmCCz ltTbQR11QFOdfwDCfHGH9aO8O9cQFECYC9kzdY/3VOoZILhVl+j8R8NGi9GBOCL+Nxqu 6JuMSmZqYXXlK3ASQRER/fr575Zil+MaYZw68078HyrhohkvvjDcVUVXdtc0c14ZCRVW Z0JQ== X-Gm-Message-State: AOAM530i4ZGXRqHe4EZ5qhq874GhCbAgTM7H0Yu6bghA2hlq7i5r8BAP IJAhsLOw9FFqW2ebi7C8mY1D8gDxBgub3ZO7OAGQ8eEpNzGqgcCiRb1/4j7QyVZzzcn+oFNDj0x ViyPHL4N/1AEUoMkGnmQyHSccpRBBfTofvQJRJjZJLn81U6iWgDR5vaQeUl6aTGSMioOTZbruMf +W4yY1vB2oQH4SdX0TjEG6lcb2gzS2cFpvKpf0P+Np3pkKokqZGGxlDnEdONg540alfbDHs8vmC d+M+9cz1CgE1ZDNGcF1K77G9CHYqK5lwlWMQltorCXXcDk6ZRKwTJ5r3BLPYg== X-Google-Smtp-Source: ABdhPJxC3s3lm5AQOstnvuxh5qhw3uWDAN+NOt5L3ODDJ1ZbOh3ktLgaMEDvKTEF5GEKyns90P9tuA== X-Received: by 2002:a17:907:d8b:: with SMTP id go11mr6864941ejc.167.1617241746635; Wed, 31 Mar 2021 18:49:06 -0700 (PDT) Received: from [10.137.0.20] (ip-86-49-253-127.net.upcbroadband.cz. [86.49.253.127]) by smtp.gmail.com with ESMTPSA id wr20sm2046688ejb.111.2021.03.31.18.49.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Mar 2021 18:49:06 -0700 (PDT) Subject: Re: pgsql: Extended statistics on expressions To: David Rowley Cc: Alvaro Herrera , pgsql-committers@lists.postgresql.org References: <20210331170828.GA26795@alvherre.pgsql> From: Tomas Vondra Message-ID: <09dcc19c-f2ed-78ec-5c6a-cce32faa785e@enterprisedb.com> Date: Thu, 1 Apr 2021 03:49:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/1/21 3:43 AM, David Rowley wrote: > On Thu, 1 Apr 2021 at 11:07, Tomas Vondra wrote: >> The attached patch fixes this for me. David, can you check if this >> resolves the issue for you? > > Thanks for taking a look at this. > > I applied your patch and kicked off sqlancer with 64 threads. It's > been going about 30 mins without any crashes so far. > > Previously it crashed within a few mins. I can let it run a bit > longer, but I'll need to use that machine for some other testing > shortly. > I think that's probably sufficient for now. More testing may be useful once I refactor the code a bit to make it more readable. thanks -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company