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 1pVKpe-0008RK-1e for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2023 23:16:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pVKpc-000896-Tb for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2023 23:16:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVKpc-00088x-K0 for pgsql-hackers@lists.postgresql.org; Thu, 23 Feb 2023 23:16:56 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pVKpa-0003E5-8z for pgsql-hackers@lists.postgresql.org; Thu, 23 Feb 2023 23:16:55 +0000 Received: by mail-pj1-x1030.google.com with SMTP id u10so14669580pjc.5 for ; Thu, 23 Feb 2023 15:16:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Ocs+rSns1T8NpDCNCzSrNUdiNPdBH5bFBGMkSina23o=; b=D4bqKAIB9Qv7G3s1WixaCTWhfhWuriUYpOfSbFOQLY0ajeKRPswwTLow/0XsbaLls7 an4NshLrBTrHKHXgsDL684qnxkc+42Mu7y9sucaQD0apGQ4W0KXfd2OWNYn6Il6RWuku a7uH1gZRJAlVHM3iscOHYYoYrt2jl2rNdSeyc7SVkuAV9cYOF5OfH5Kr5odH8D+61+gc cCRBKfMPpa0xchE2Fw/QS0ACAXj8dltkfvDJ1s/ARc9zcZ8NXQcoD7pyXabVRz00c+D+ /22eESPjH8ty00Boe/X8oemqN/5AOOS+gF8J3NqHFVLp0k2ED+YUdf/jqe3eVPJJWdcd BKwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ocs+rSns1T8NpDCNCzSrNUdiNPdBH5bFBGMkSina23o=; b=MTCrRx0aT95gs8k2zi2Ty9k/+94FgI4p5oW/E3F3ofuKv7R+Qc8viw9iNw/SBEU1Qa SqgdVFIpkDgm49YoLbeUA8IMkhOurDhomfqzw2e/yAjZ811XOvrf9aKm0YWDynrMzUVZ JZ4xEgapENKhx7lh5dd5bYw4lfyl2DMH40szY4buPt3vxLIyDyL3JgLkywQ20O6vhARA V2F7jZ2yl6d7+L0voRTwCQI7fSECNbqK5z0t5aImTk2/RtBOlKbKQfcR6I4DFd9s3tdb QsrCXbrSiJNRAVLNHDPISv7phKa2UaO9ltl5l2zqESAcwQuijm4vDGwUIg7n5LsOWLkr bXdw== X-Gm-Message-State: AO0yUKWnFSomqEdBvD2r+AQDHXZFiUDB8Q3OrJ/hfhJG6ZXbYEHJRRsF 4niPs9J8ZlDRjfBmZkMCj1U= X-Google-Smtp-Source: AK7set+z+cWLQHhm8h1sNyjgUbq8/VlsSXReBtPXnsBZvwJFVG56bMk3ud7I8QDxYLqWNphU7C0w+A== X-Received: by 2002:a17:90a:e7cb:b0:237:30ef:e481 with SMTP id kb11-20020a17090ae7cb00b0023730efe481mr9425103pjb.30.1677194213164; Thu, 23 Feb 2023 15:16:53 -0800 (PST) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id j190-20020a6380c7000000b004fb681ea0e1sm7218271pgd.84.2023.02.23.15.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 15:16:52 -0800 (PST) Date: Thu, 23 Feb 2023 15:16:50 -0800 From: Nathan Bossart To: Thomas Munro Cc: Michael Paquier , Andres Freund , Robert Haas , Tom Lane , Fujii Masao , Postgres hackers Subject: Re: Weird failure with latches in curculio on v15 Message-ID: <20230223231650.GB743455@nathanxps13> References: <20230209002413.GA603595@nathanxps13> <3907196.1675957889@sss.pgh.pa.us> <20230209192952.jvx56yuutlxuvjjf@awork3.anarazel.de> <20230214174755.GA1348509@nathanxps13> <20230221045039.GA4026654@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 22, 2023 at 09:48:10PM +1300, Thomas Munro wrote: > On Tue, Feb 21, 2023 at 5:50 PM Nathan Bossart wrote: >> On Tue, Feb 21, 2023 at 09:03:27AM +0900, Michael Paquier wrote: >> > Perhaps beginning a new thread with a patch and a summary would be >> > better at this stage? Another thing I am wondering is if it could be >> > possible to test that rather reliably. I have been playing with a few >> > scenarios like holding the system() call for a bit with hardcoded >> > sleep()s, without much success. I'll try harder on that part.. It's >> > been mentioned as well that we could just move away from system() in >> > the long-term. >> >> I'm happy to create a new thread if needed, but I can't tell if there is >> any interest in this stopgap/back-branch fix. Perhaps we should just jump >> straight to the long-term fix that Thomas is looking into. > > Unfortunately the latch-friendly subprocess module proposal I was > talking about would be for 17. I may post a thread fairly soon with > design ideas + list of problems and decision points as I see them, and > hopefully some sketch code, but it won't be a proposal for [/me checks > calendar] next week's commitfest and probably wouldn't be appropriate > in a final commitfest anyway, and I also have some other existing > stuff to clear first. So please do continue with the stopgap ideas. I've created a new thread for the stopgap fix [0]. [0] https://postgr.es/m/20230223231503.GA743455%40nathanxps13 -- Nathan Bossart Amazon Web Services: https://aws.amazon.com