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 1uuEtW-005Ohw-G1 for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Sep 2025 18:41:15 +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 1uuEtU-001av9-VD for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Sep 2025 18:41:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uuEtU-001av1-IV for pgsql-hackers@lists.postgresql.org; Thu, 04 Sep 2025 18:41:13 +0000 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uuEtP-000YI1-0S for pgsql-hackers@postgresql.org; Thu, 04 Sep 2025 18:41:11 +0000 Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-3f665747b4fso7815075ab.0 for ; Thu, 04 Sep 2025 11:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757011265; x=1757616065; 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=B+/yS3a72ty+1PY6Z/dZlQnlb5vaBPo1dj2ne3pcgwk=; b=cLTfSH+VlW1e35S/5+PD0JIZsngc3isPI3Z1YDdM4nU083CpdRgZq6OOrc+bDSs5m0 2+OCv9OR5tiFMKp64pil8ZgkjU4izgsSxPhnvhexI5hGS95/Cm3x+jemc4OetWQqvMK/ FxJsa32+SHyMiBnnBnJCxikxF7BMumNhDrH9+q2MTVf8QGv/WC1UMFoKbSLPwjSZthlK YS5ACZc02STeH2NBddVXAVNEiQJme9H3gFr6iC868EREAqS3tjYk/Jgbny42Ttt/vlDj 82ba2W0fl+1HXYdnXF4bw3cXcDCOPMcKOA+/iuOBPBxxv/hW3WWxuh5pQP+5JiCY0TbO I0iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757011265; x=1757616065; 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=B+/yS3a72ty+1PY6Z/dZlQnlb5vaBPo1dj2ne3pcgwk=; b=A1ivMecOLqv4TdYjIb3fUl1gXZ+IRpO2TGgx0TEBLfUnnmVzCVoxN44Y1CDpUfOzAQ o05O83YUMWdYgjtxs1IX+FL/bTTsi1Z32Bw6WD32ve2Mw0ioSH6AYPsyL7WH9ERYgir7 Jom5Ne1BGq32AxhP7iq5xGD84sfVK4knmWLpqLOluV8WzWeYXJsYmu1TLKncG80hz5D5 WQ0CUBMCEqxijaOgRRbScF3g2ePZfMUwsh0RUgd6ZTxyzU9SKEQA1Ldw6QG31AdUL/M1 PvOi2N6xxyfPcK3w9FX4wcOSGrvqTuvdzJoyMOB5+qVkOXXZ5BQxWuFJR9oNBk6+vkVz t1sg== X-Gm-Message-State: AOJu0Yw1euAa1Edvwg+ySIup9BuAcYu9sXTM6cH96dTnq7dTW4LKedRo DcEbYRffRzpqjvNP0Y6x0mIXEjO7jUNIxAyTPRCymY0YEducjgcHtrhM+F1vaQ== X-Gm-Gg: ASbGncvhJ+uZCLqbNXEF0mJAR5loMN19m0Rb/sxF9e7TiYPSfsAve2czOwvRS8FZUaT atIDve9HyG/coNxxU1rsRrJC81FeqeYINz4Woew9Bnd07jAzsFD/uonK5wUQitUTBrYyDJkLTqL YQIa1qe+NpiVJxJv3hfr0jP9pnz7GWHv/QxwdQTFbguveY758Lbby1Bcafs3afORMwJSAMIEb/P mni+Fdula7gLWpRx2InJNqXkzvhSsGj0BvkiVAvLdGU7qYECEBQQ2LZZucE58k9WoD98XW1XUyb mRTPfU+gbFQjP1wfoMnUDdYqgnhrO89ZrBSdpEpMZ2lKCA1Xwgj19WbO2XwCwvYIHIshrAuxxgd zlo9Zqj0fnKzZNNOaqTm5IREj0typng3jHF+q5vl9iahu26ypCVG8wAy1v452zDomucnX0N9SRD /Guoo8e4Wey0NFdgQYBQJ7sEg= X-Google-Smtp-Source: AGHT+IGro/maBMxVI14y2SHp5AnHrjaGiWthOV1RRK6k/gAgi3bE+lEffHhNY0ynwVjWKR0rP5hrhQ== X-Received: by 2002:a05:6e02:1a86:b0:3f3:5998:f017 with SMTP id e9e14a558f8ab-3f401aede0fmr322675725ab.19.1757011264707; Thu, 04 Sep 2025 11:41:04 -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-5104e42de56sm829780173.32.2025.09.04.11.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Sep 2025 11:41:03 -0700 (PDT) Date: Thu, 4 Sep 2025 13:41:01 -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 Thu, Sep 04, 2025 at 01:23:26PM -0500, Sami Imseih wrote: > I suggest we set an in progres flag for shmem_startup_hook, as we do for > shmem_request_hook, and error out this function if called outside of this > hook. The error will be something like this: > > ``` > ERROR: cannot return the address of LWLocks outside of shmem_startup_hook > ``` > > We can also update the docs. > > If you agree with the above, I'll get the patch ready? Yeah, I think modeling this after commit 4f2400c is a reasonable thing to explore. -- nathan