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 1wxJ9x-002b9L-18 for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Aug 2026 06:55:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wxJ9w-00C6Vc-14 for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Aug 2026 06:55:24 +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.96) (envelope-from ) id 1wxJ9w-00C6VU-07 for pgsql-hackers@lists.postgresql.org; Fri, 21 Aug 2026 06:55:24 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wxJ9u-00000001hh6-1rmO for pgsql-hackers@postgresql.org; Fri, 21 Aug 2026 06:55:23 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-47fe89fb333so353232f8f.3 for ; Thu, 20 Aug 2026 23:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787295321; x=1787900121; darn=postgresql.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=iYYlcD2snbVJrA+OYymbQmYCGbwsTP96okkgWxkU/6k=; b=BcGiSRYO+Jlpfv6b5cHnze0Buw26Y4rgpD1BXGf7hDUMjW/3A8q6ojrJ3BL40XDQqX 05PQJvBUq1y2kkOr34Qp8k9TvjGDIP+AObyv5RZ76NuTGOx9hEC21IzG1r3/uZQwKpNN Z86AbvLemQgDKu+9nL2t8WFSBiSciOU5V+lvnDJfoWTy/XFD2y1lqYwuSEwy5ZZI5Mpo MexjV/dnNh5vxd1qV31IWRjqN9XuXzJco0E1zr1tit9ALluV96r0A4cHFFL3sZbykDrc olX3P1ykWtN9Z537py+lC4gfUDgAF0PhPCIrcbXF3iAsBM16K6LPYvAoBvU6O++ruw8m Ez3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787295321; x=1787900121; h=in-reply-to:content-disposition:content-type: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 :content-type; bh=iYYlcD2snbVJrA+OYymbQmYCGbwsTP96okkgWxkU/6k=; b=fA/Mvci9EnLmmua6jRJodq6TDOqcF3QIIJieMIypNkAn7kMhwsO3L/+FDOcbO0H6yA qY09dzgm9jkHL6voVYuQzQ1loJQKqhG9pFwIr7tiBqdTD7Y69Dq0y5ontxY/25SGQaOp vS12uwGX7XscOBRQ/GsteEtNPqoqUYYLL19aJy+r46K/ouafHOFHR1eBY2LF8RVvSfk+ qqAGBQe28TWu7meQ8ixM+ieQMmG0FUztUv7yrJTg3zhpWLF9sbYso89rMKLP3xxTftvq 6tIZkibobIeGCDCAjc2lsItjlPfqP35s1Y/k8oBiyw8krZIKmUvw1FUaIxXAwuwKfAhI NQDQ== X-Gm-Message-State: AFuF++me78UlfW0sw17honoB1U3ohpTEpgbDY0eIvCsVStiV+cJeyZQn Yw00JaD1fAqhZqifj3rkXaApRADiVXdyb3eodZAlQb8ozU4PWuRANJXb1Gd5Vg== X-Gm-Gg: AR+sD11rXNHX4QLAKyPMfguP0p6IO2Lg1iXpS48j9kgF54C+x0oQFCJWG4t38U6y+dP Z7Qzmqey0Sih55BOlTUPFMzDQwTb1eqZxyyzajoYBnjfP6Jmvkpu6Ml5wudEQfExGwoE808NQJO fDcIftpOF4u4INZncWjt4YZ7raJMrdN+uaJVPff6rCrYHk0Iq5ESPh9B0kg/DZBNLiFFx+UfWbx GO1GEm7bLNYvqUqcFg+odxsDnGpTsNsrwN+WVooLSMJzXeEIRkGES+yvVXcgnluhrfAGhfVORHO KhT1arqc3rbyelR2kofyUW7YfHbfAb8Nkls0lGBQsI6cDB/XpWs47UPviLtLgxuyLA2rZq4cbYg 4Rf2W8SLfR6i37jmoM/gjQO5zgg27/RSakD8N9q5s0c2bMrz9f47OJwJ8oRv1w4ILb2KddlfDku /h5QuJWDVTPfeoNQlkWu4mhQGhFrf/yuemquMC2YbGKbzu2x048EJWUAh4/xCdNBEa0tqru7DD2 1g9QyNslvJOZb4ERTPBe5K01CMu0HXQW0r6r0WYzta9/HJq X-Received: by 2002:a05:6000:2412:b0:47f:9ac6:ca60 with SMTP id ffacd0b85a97d-482c0b05a84mr5364506f8f.0.1787295320745; Thu, 20 Aug 2026 23:55:20 -0700 (PDT) Received: from bdtpg (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-482bf82594esm2416260f8f.29.2026.08.20.23.55.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 23:55:20 -0700 (PDT) Date: Fri, 21 Aug 2026 06:55:19 +0000 From: Bertrand Drouvot To: Ashutosh Sharma Cc: pgsql-hackers , Andres Freund Subject: Re: Orphaned Files in PostgreSQL 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 Hi, On Thu, Aug 20, 2026 at 02:40:25PM +0530, Ashutosh Sharma wrote: > Hi All, > > I am revisiting this thread to propose a possible fix for this known issue. Thanks for working on this! > This ordering guarantees that relation storage cannot become durable > without either a durable marker or WAL capable of reconstructing that > marker. I wonder if logging XLOG_SMGR_CREATE before smgrcreate() could interact badly with a concurrent checkpoint? I looked at [1] and it looks like it used a separate PRECREATE record and kept the usual CREATE record after physical creation. Could this be reused here, independently of the rest of its undo infrastructure? [1]: https://postgr.es/m/CAEepm%3D0ULqYgM2aFeOnrx6YrtBg3xUdxALoyCG%2BXpssKqmezug%40mail.gmail.com Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com