Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9Jps-0007Kq-Fb for pgsql-committers@arkaria.postgresql.org; Thu, 28 Mar 2019 01:28:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9Jpq-00031B-JL for pgsql-committers@arkaria.postgresql.org; Thu, 28 Mar 2019 01:28:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9Jpq-0002z1-8l for pgsql-committers@lists.postgresql.org; Thu, 28 Mar 2019 01:28:02 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9Jpk-0007FY-TT for pgsql-committers@lists.postgresql.org; Thu, 28 Mar 2019 01:28:01 +0000 Received: by mail-wr1-x444.google.com with SMTP id y13so3097618wrd.3 for ; Wed, 27 Mar 2019 18:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NaDeI0LBHsIAAqqca3m5YLvygNXYMd5g3lIIqrmSrlQ=; b=mTPDcCesgfFtkVC/fJXN3ACt3uueIug+ZfWH5QTdo0PCVUp3LUhxHDSPhvHxkSm+jN 17CGvi9Dj3dSOmhdJzcsdEcy4VcV6IBnsN5XaOKJXooYhlHk0ycZ/dlIobEoKGqn6KQx 48fdSYGNjbjbhejoka48NI8PaZrZNM381HI+vqInCBBTA3PNv3p+iaOZFSPaYykPvQfq XYtBFp9XhTSduaNjR+xJG+qManeUMcuMLRqFe/R/j1oC3zVDEmhLx55FI4y19ZojsPid yqyILFGT697mYaMsTIxzjFN/X+1TM8jo5n2uJbaBZ2vDhij5ZD+PqBWSovi+9OnorxJg cMEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NaDeI0LBHsIAAqqca3m5YLvygNXYMd5g3lIIqrmSrlQ=; b=mC5kiykLlbTdQzX1ts7PsqVV5/b86TB8cUUUw4wlXl/UlDYxmoBXwJXrGykufIN0Re T+OWsuu5XgxrS+TUHhhKdH+W1er4k8x8agBmW+5fwyoMqWkE/1FAcu2XtgZYtKI6l5Cc DXPNPtetQNmF9EjTETa4tZxCZPpymTSklgJzfTYq+8alCBXHUXCtnzGlhP+hpSiA30vV DUrgr6epConl6ivMHAjdTi0dHzK6SKSRRZjLqW3F7U0Cx2ObxJ7NhRyr+VVeIbZqjc1X BM+xbJ5P1c5dYrBETjxcz0Lpj9atZq7PDkRJ08jzHEfK5OjUOtZP4PZV2S97+MElQgmL nffg== X-Gm-Message-State: APjAAAXMyvzNu5Fl4RwO9bY7tz0jUYNGsZxkMSoEs+hbllswx3kQGO04 7Vk5LlsqRslqLZEFRFGUTXaarsYPvCkdJg== X-Google-Smtp-Source: APXvYqxRz5ZtVVJ9LB5lha74Vd3o74cdaZtLtmr9nq+WCmeIH5U0ck3WR3Ju+/rZUyuatmDpaSby3g== X-Received: by 2002:a5d:4f89:: with SMTP id d9mr24577731wru.195.1553736475711; Wed, 27 Mar 2019 18:27:55 -0700 (PDT) Received: from localhost (ip-86-49-243-43.net.upcbroadband.cz. [86.49.243.43]) by smtp.gmail.com with ESMTPSA id g132sm1291006wme.3.2019.03.27.18.27.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 27 Mar 2019 18:27:54 -0700 (PDT) Date: Thu, 28 Mar 2019 02:27:52 +0100 From: Tomas Vondra To: Peter Geoghegan Cc: Andres Freund , Tomas Vondra , pgsql-committers Subject: Re: pgsql: Add support for multivariate MCV lists Message-ID: <20190328012752.GD4406@development> References: <20190327190406.3gmupkthnbx7lvho@alap3.anarazel.de> <20190327201346.GB21957@development> <20190327203353.GC21957@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190327203353.GC21957@development> User-Agent: Mutt/1.11.4+135 (aae3e555) (2019-03-21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Mar 27, 2019 at 09:33:53PM +0100, Tomas Vondra wrote: >On Wed, Mar 27, 2019 at 09:13:46PM +0100, Tomas Vondra wrote: >>On Wed, Mar 27, 2019 at 12:32:34PM -0700, Peter Geoghegan wrote: >>>On Wed, Mar 27, 2019 at 12:04 PM Andres Freund wrote: >>>>Congrats, this was long in the making! >>> >>>+1 >>> >> >>Thanks! I guess it's a Gordie Howe of our patches. >> >>>Buildfarm member aye-aye has a problem with this patch, though: >>> >>>https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=aye-aye&dt=2019-03-27%2019%3A07%3A53 >>> >> >>Damn. And I see locust, prion and dory also seem to have an issue. >>locust is also a power machine, I wonder if that's somehow related. >> >>I'll take a look. >> > >There seems to be a bug in statext_mcv_load - the deserialize happens >after releasing syscache. That's probably why prion is failing, because >it's running with -DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE. Not >sure about aye-aye. > FWIW I can reproduce the issue by simply using the same CFLAGS, and it turns out the MCV deserialization is a bit borked (the value may easily reference memory that already went away). I have a patch that resolves that for me, and I assume it'll address the other failures related to this commit too - for example the segfault on gharial). It's a bit too late for pushing emergency fixes over here, so I'll do more testing tomorrow and then push. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services