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.96) (envelope-from ) id 1wgiA6-006LeW-0Y for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jul 2026 12:10:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wgiA4-0002VG-2R for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jul 2026 12:10:56 +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.96) (envelope-from <9erthalion6@gmail.com>) id 1wgiA4-0002V7-1H for pgsql-hackers@lists.postgresql.org; Mon, 06 Jul 2026 12:10:56 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from <9erthalion6@gmail.com>) id 1wgiA1-000000023Mi-0oqt for pgsql-hackers@lists.postgresql.org; Mon, 06 Jul 2026 12:10:56 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-c126553552dso393379166b.1 for ; Mon, 06 Jul 2026 05:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783339852; x=1783944652; darn=lists.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=ypVaRu+zMEW7i5oUiEUhVku0zwzrtZOPlbo1kil8lq8=; b=kfYYylDFMaPzBIbDd+TbKYIOswaUajKSmIjrxs32nqZnxkBMEEtA0wpqDNkr98x/Pf HP2OZdvFZxk1gO2oYkZTi2KrHM6zbE7utYVOXh8Ts1SJEbeEBkh4kqb/a7stbQdyrXfL zeLCJmGMe05/9c5/FeoGQnGucJsRBDeMqCZe41+ulKy54DZR9w1d89c8RzTCNw71QTUk wwkJVIe9KN2dKnopgPDFwVsBmqO3fz7zSsdB23Dj1BBnCvbqjom7F/XJar50Cd1CvJm2 zpMBLBo0LjchoKkl3M1ugXRnVilWJ4TRH2KEMAn0sJuJdD9y3T4eGzYcbQvsonwQSUt6 w/kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783339852; x=1783944652; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ypVaRu+zMEW7i5oUiEUhVku0zwzrtZOPlbo1kil8lq8=; b=Ql7/n06gItMKVL7gxDAzF/hX1NUmdnOfSPYPFJeb36pNQGtMkInbYnM6sUJlkVg+oe T9kWyRT9tNPtLnU7J2ALqP7AFU4i2o+Ih+X5SMdYeLv4oEwGwOCsOLgONwEALGLDDQ5h Iy01JO8yY9WJ20MbNxgNTS/aPtyC49rbKBJtSDSr5yoJNDSex+6EvwnyFJ8thTsMtkcH gffHwEo7BsP4LJXe2slXkU1rH3rVmc0WtKuU79FwyVIqh4m7bn/3eie8X73KLBeWrfqS dCTFbl/GuqsDNeg9bjI/uEJv7Jnzc2k3cBX0K+9LkQLPLaH7xJyNBFWm7kL1svSY85II ivsA== X-Gm-Message-State: AOJu0Ywj35mpJcsg9DjsbukeOcM7vkXXt8jqUTFNs4a2i5ciWv8/V9qA GB6cZrVhbyXKRbG1HGVpQ8l7f8CdEaiMyI8zilhssi/320zihFZSZ87j X-Gm-Gg: AfdE7ck7SqL9fG0nW6wHouVRM3U97uqmj/00WSi+VHOL2bkacOH6Mt/YwjeHOh6wDFO vhDOIXTaeu6f0icZtEyJWzUURifjEyWexXKMvUPC5ZD/VOU/MfM1jiizx33wU8j7ie0B/nBZdc2 n8wlxnSJCoFrOZWaay7qnchLn6HoiaCAU4dLX/uauhsH3HAVxN+vSz8phllcwh5kA+azFc0IRSb cMKvx9rxDTT9tqQzBYm18F7/4XBLn0LkMW6N3Dy3w3GBBQUugd+sl+lOZ17DkCw8ipN74XwBA8m oloseS93YlC9Y5dRiC3un5rS4X4mniwOTRlJXb4cVj6tQo8FGyqUkxJ6eIN1WKp6AZFkAuxXdkq vQg1A70opliFsa/YMT/hBhSWnCI/mmbxG0PUVDYvPVwZPyYtmT5W8KnZaufwAL8rVOUcFtx2LjM sLgFYKMgZ6t7G3ncJ+Actv4ulOL7wM3hVnKDVprJiP9ulG8lCIxuYFxIXKp3TMdOeNZ0UPhmWir IdK/6A3V8wZS9t+P2Uvbggy+6lRmg== X-Received: by 2002:a17:906:c185:b0:bfe:ed06:5a16 with SMTP id a640c23a62f3a-c15a69808ecmr8008566b.52.1783339851454; Mon, 06 Jul 2026 05:10:51 -0700 (PDT) Received: from ddolgov-thinkpadt14sgen1.rmtde.csb (dslb-092-077-217-199.092.077.pools.vodafone-ip.de. [92.77.217.199]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c12b605506csm737463766b.6.2026.07.06.05.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 05:10:50 -0700 (PDT) Date: Mon, 6 Jul 2026 14:10:48 +0200 From: Dmitry Dolgov <9erthalion6@gmail.com> To: Ilmar Yunusov Cc: pgsql-hackers@lists.postgresql.org Subject: Re: File locks for data directory lockfile in the context of Linux namespaces Message-ID: References: <178332300475.2568959.4097339122938147476.pgcf@coridan.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="tks2nr37zts5e6h7" Content-Disposition: inline In-Reply-To: <178332300475.2568959.4097339122938147476.pgcf@coridan.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --tks2nr37zts5e6h7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > On Mon, Jul 06, 2026 at 07:30:04AM +0000, Ilmar Yunusov wrote: > > There is still a build blocker, matching the current CFBot failures. v3 adds a > typedef named LockFile in src/backend/utils/init/miscinit.c, but that name > conflicts with the Windows LockFile() function. The CompilerWarnings log > reports, for example: Thanks for looking into the build failure. I wanted to check it out what was happening on Windows, but after the migration from Cirrus to Github one have to be logged in to see the build logs, and at that moment I found myself logged off. Regarding the name, I'm afraid LockFileData has a chance of causing some confusion due to a common pattern, where structures are named with "Data" suffix and a pointer type definition without. Since it's about a name clash with an external library, I suggest PGLockFile instead, but open for better suggestions. --tks2nr37zts5e6h7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="v4-0001-Use-open-file-description-locks-for-lockfiles.patch"