Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uvi1f-00098t-Ky for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Sep 2025 19:59:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uvi1e-007RDu-LM for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Sep 2025 19:59:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uvi1e-007RDj-Bd for pgsql-hackers@lists.postgresql.org; Mon, 08 Sep 2025 19:59:42 +0000 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uvi1b-001GAr-1R for pgsql-hackers@postgresql.org; Mon, 08 Sep 2025 19:59:42 +0000 Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-3f664c47ad2so52822835ab.2 for ; Mon, 08 Sep 2025 12:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757361578; x=1757966378; darn=postgresql.org; 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=raECe4E//ea9HKwmiNOaMhQmkxJ2GGYZGCAy2h2DY44=; b=XHYIueGbbDDGnHnW6U5sc3H6BuInUSc4OIwJ6XrPkuNUVwToe7GTBsEyI8lIM3KCZv uckg0GMY5WZI8hjojGiCTkppvIqu+MgqtCgyr6+RcA+FiK8DxBI2tbAXQhVPaHBIS0/W 7jBgKZd4FkyWbWK8SWMWeZF150hZ+1WVVBg1k49C5IbcurehG3PX9WD4NTjesF8J/QHx BdF5Uf8eQynpBPRJcphmyk822sCRLAUvALiSmefs9abKSHnL4gy03Bi8ivxGwkti3Apg 7/tI52v10ZZBoFlka+Mngsxc9KORkBewiqLoQWt1/7glYkV4tk+Y6qtqHrzTQIorIRkK KWxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757361578; x=1757966378; 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=raECe4E//ea9HKwmiNOaMhQmkxJ2GGYZGCAy2h2DY44=; b=Je5CvwIN8jv26Q1Jp+N5ax9Tp8MW10p3HGq9h0ethlGWDssbPER9d45pFyVn9qTQur n4VL17UtiIn4EdEFgMF67dPptHTnJ4LUzlMPlQ4DSdBfao86ovoliKL5nHoISWD5jw47 KAFn20dV55plBTvfq5vgegfsXEJTmW9XeAdjqs+oVpkAJjGvYyIVLNYXLxCRmErIm+K2 X9igiL2GOEMrUy0dWGERIiC3ikbD7ApRCXrD0SLcCE85DEdLs+y1svZOSlxogLgBsz/D k+AT64grwflUsD8lVMYWuxM6kBEBlSjGwV62d0K8Mmj6QGphE2dPnMH3UIm8JsxBqTMg 014Q== X-Gm-Message-State: AOJu0Yw+IwQmZCwTg9Pj9vtGlpkmHNeMB5e8QHHe6sSs+hJ02+JIcxpu x2EZS8v3LZYAG582xOuEpC21IVUL7Z1fyurMAmJb07wqN3uytZy1nBAk X-Gm-Gg: ASbGncsksVXVRYEKFl8QWebDwOcnRtHDpUIOkN75JOWa7MRKKH/oo/lsKKAJIpYm9rb 4hUQgn2lLgbD89R4QLj2TIkxMuFr1T17fu/t7CMjA/p0zPYHOaqLHXPqMMj20pZfHSEiVHgrxaC /Uy9KMcyPjyLBzwVicqLe4HyFoBHQh8YzPWMuvjiOqtFDzF698l9UD2ksOJChjX2EEQiRqayhMB lWfjD2O7KUgrd0/D8FaZlHkXG0qIj+tUGk39qiKaSUT8/UXbSEF0G+9IjtBfYSjeIG9LTbAuaVE nKXfGtlbPoW1M4yOi9HerwQAsfNg5VWE/ZbCSUr+xMRiB2XEappQuvowH+L+Bm0dtLBx0cb9RBt 8P8i7JItXPHo+WKfMjhHgldD0jDeQD7pPJD0Gk8wYYD509YN0i/9i8gSGKkXCF8hQl4JbCd6mpO vvPdLIvxvhygOq7HXn+SmjAmw= X-Google-Smtp-Source: AGHT+IFZBLwao9Z5E19+A8S+QEOStdG38NWrUNx2nHiJ+F00pTk0SFYN9G347/eMAQtE6CNiDAd5Tg== X-Received: by 2002:a05:6e02:1908:b0:3fb:804b:9ba with SMTP id e9e14a558f8ab-3fd7fc2167amr134516595ab.12.1757361578188; Mon, 08 Sep 2025 12:59:38 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50d8f31caa6sm9285470173.43.2025.09.08.12.59.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Sep 2025 12:59:37 -0700 (PDT) Date: Mon, 8 Sep 2025 14:59:36 -0500 From: Nathan Bossart To: Sami Imseih Cc: pgsql-hackers Subject: Re: GetNamedLWLockTranche crashes on Windows in normal backend Message-ID: References: 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 Mon, Sep 08, 2025 at 02:47:26PM -0500, Sami Imseih wrote: > I think v2 is fine because it is perfectly fine for a normal backend > (EXEC_BACKEND) to call this function as long as it's processing the > startup hook. The goal is to prevent it from being called outside of the > startup hook. I thought the goal was to prevent the crashes... > I think we should commit these tests as well. If you think the tests > should be a separate thread, let me know. Thanks. I think we can discuss them here once we fix $SUBJECT. (BTW it looks like you forgot to attach the patches.) -- nathan