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 1vd8zF-00EUpe-1b for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jan 2026 15:28:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vd8zD-008hsH-08 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jan 2026 15:28:43 +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 1vd8zC-008hs6-2D for pgsql-hackers@lists.postgresql.org; Tue, 06 Jan 2026 15:28:43 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vd8z6-004YJd-13 for pgsql-hackers@lists.postgresql.org; Tue, 06 Jan 2026 15:28:37 +0000 Received: from [10.0.2.15] (unknown [130.41.208.2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4dlw6f2sQfz49PtJ; Tue, 06 Jan 2026 17:28:26 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1767713307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/h1yJyVod25cIByKUvoKhNzwA70WFMvi71TA5hs1sw8=; b=rD+VCZGLqHob5q5uQAq09JMtASD+4IegHQzx85HPv85pU2Jn3maaa4/FNgSCFT/jfTLLEt zTEkL2zHjLE5MTM/2FatCLyWIo1YFTpYXSYmVuv2+LBbDlg2O4orZcpOiO31Lfh6kYCKWS Yb6dFYYuvxvnuytK3/+YxgKb3jEgCr44tRCTo+xonh61R2AJuRS0xFPwXRDeS05f6joFrR jOoPBu4mg8RFD30ofuYkQ56dMZJx6OzBHa2J6GE1XA/mQaUaUypjEJ2hH1ann4wLykQzGb 5vs09N9LqmVVxy++4QVblpR4JbjGjvvUe1EY08kvyStvQnsxdmDKHlKFfEXsBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1767713307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/h1yJyVod25cIByKUvoKhNzwA70WFMvi71TA5hs1sw8=; b=JmvLrgAwoTCUPshSf/VGZgMSlI4CZHj6FtwWZ/muSOYGpTxE/PhenEMoBUe23wzyRSeWJV UgdEVgGuplaJH9o2m3bq/wtv0o/vF+lXkTMvpCjyCAoQBKhg1WjAnrNoS62AcmDXocIHTV K+QodoezfW1OfvCjmUKfb/IUG5++xpdFnZMOSABDWIdWkb9Z68qNeY7SZGv75Dc5HxaLKs nDxq19cJBAxnTEPJjGWION7iwXqTVv72lV4lsSQWRouoRXhBjZLOVhBl5KZRSKwQjuo91F VkXJhHYr8RQXSGVCxQ8ttS/lHWijn7Gw57qT4nuc4UdqcydJHu0YKkWwtQqODg== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=lahtoruutu; cv=none; t=1767713307; b=veasGputY7XAPcZVOhUvcayQXYidu61vCBahvX+aEJRi5tfCA6dtU4wi4TPeQM52CV3iV0 2+4E7rZjZfTPFDoPY4mQ2I06zNyU9eWHTVtWuS7y0Hu1TItkHfmG3LKGFmjaht5ms03tNi iyjmvN+h0n6ZxyqCS7elNEc7ImanOvL228/EMAuE1WXcSWHgDOFoeR48zBsHm9dwBJuVi1 jnJ0r05tyFr/rJS1cWsf28qPsKTTslw68cznIStTPoEAXHuF0rCQ+gRbdefl/F0gm7l6N+ 98ETbxXDR5LIdzR5XJKIkUxnAepYnQzS0tkmLelt2TCoW0XVYiFiaWqc4Z66vA== Message-ID: <8da558b6-14fe-4f04-a6bd-98e9961c9ff5@iki.fi> Date: Tue, 6 Jan 2026 17:28:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Refactor SLRU to always use long file names To: Aleksander Alekseev , pgsql-hackers@lists.postgresql.org Cc: Rustam ALLAKOV , Michael Paquier References: <174319365391.60294.17413945943923890743.pgcf@coridan.postgresql.org> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 06/01/2026 17:18, Aleksander Alekseev wrote: > +static void > +check_slru_segment_filenames(void) > +{ > + int i; > + static const char* dirs[] = { > + "pg_xact", > + "pg_commit_ts", > + "pg_multixact/offsets", > + "pg_multixact/members", > + "pg_subtrans", > + "pg_serial", > + }; > + > + if(old_cluster.controldata.cat_ver >= SLRU_SEG_FILENAMES_CHANGE_CAT_VER) > + return; > + > + for (i = 0; i < sizeof(dirs)/sizeof(dirs[0]); i++) > + rename_slru_segments(dirs[i]); > +} Since commit bd8d9c9bdf "Widen MultiXactOffset to 64 bits", "pg_multixact/members" should not be in that list anymore. Also, it seems misleading that a function called "check_*" doesn't merely check for things, but renames files. Also, it seems silly to first copy/link the files with the old short names, and rename them later. Could we copy/link them with the new long names to begin with? (No comment on whether this is a good idea in general or the rest of the patch) - Heikki