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.98.2) (envelope-from ) id 1xR87d-00000000hwL-3OyC for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Nov 2026 13:12:17 +0000 Received: from localhost ([127.0.0.1]:35736 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xR87c-0000000B3H6-25ul for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Nov 2026 13:12:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:55988) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xR87c-0000000B3Gv-13V0 for pgsql-bugs@lists.postgresql.org; Wed, 11 Nov 2026 13:12:16 +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.98.2) (envelope-from ) id 1xR87b-00000000NNf-0GKg for pgsql-bugs@lists.postgresql.org; Wed, 11 Nov 2026 13:12:15 +0000 Received: from [0.0.0.0] (dsl-hkibng12-56720e-230.dhcp.inet.fi [86.114.14.230]) (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 4jPkSl5nFWz49Pyc; Wed, 11 Nov 2026 15:12:07 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1794402727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jr2uO7lJ7vQ7CJ6Kvkzttcl2YJQB1vXgPoD3rAqwusg=; b=tyIO2g4PX77FOwpra9WsInuxpGBYZ9tcVveZHw+CcQnx7Yg/yDuASOKT/GbrF0eNP0zr5D NW6SoX5FTDWuqBPzkk39V4W4Vh2FwosMBItWU1SE+4IoP4iLKl73cj8hcHghhBVLFZSOXR wIGbJqvI/ydatB4n2vWs9SHCHgwHwc0X6DgZkGGdsl7VLvBgeeOCTOD1ihf6CB4jSX7/wC jM6KQzQ65a8eqCF+rhuLQ9J7F5PPW1Q9+6iIIm3PXOcXqVqCuYAtaT1FeuO1IVqXCx6cdT LqbT8pt5M+4bxxLUd2hV0NnaWIc2N4FUFwLx3ShmhAka8UWXY5hHryZKrzIfAQ== ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=lahtoruutu; cv=none; t=1794402727; b=BJlt90AtSM2ptGM9XCYwN5QT1wCtrNKm5WtxmRwrKVAoEZuyeGGQ9nZMTOOiIEyhwciBkF qCeK1iXGUqWtGe6FWQ3rx8oOFQ1VWkWvOWdsTZVX28JgTJnOD1d/Bo/EhlfSG5NjzhR1C0 eri+lyA05GsR0m0oTMGGYs1ncb3vYhsuHn8NEIYKjZnAPpCSifAMBynOOtkhGCIacrE3z9 nFn6MOvh5VoXasDMtM+PToX9LDb+zw7pPSKPEYU0+mfQV/NP2kwMBFdLb1eQAVPXrN2Pxd hEgtSf+viVRm1n1x/+eNGA+I31eQ0utRqSf+YPpJg1L7UcfyVlBOuhu7tX/piw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1794402727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jr2uO7lJ7vQ7CJ6Kvkzttcl2YJQB1vXgPoD3rAqwusg=; b=Gb4Gjzol0JZw/zk9pwHjs6leCl9DTPjBOHWyE41JugvYWKeiOrJLQ5iz/ROlY/V2TfTxrm Q6smDxolp7H6V/kjijmE8P03BowfLK9V1UytNf7YCByghlDVc9Z04ojWwKGbvtvxgiUSeB 8Eyx524F6a8S6eHsSCeQccC0Mzxw5o5IhskgkAteVzwHZx1bLFqn65ydRsXJbsd6vOVu6W hGLfjXHMakoXMaSLwXYOZlvPPtMICOKCfzdosTmYlk5c0JblLWkO+2HmeyjoT754D7PHTS eG4ITsEZDPtAxtdC/ESayir/3N5FO3GtO7r2PAzDGvKAYyENZi41WUHiirzVSQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi Message-ID: Date: Wed, 11 Nov 2026 15:12:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #19868: pg_resetwal prints uint32 WAL segment size as -1 bytes To: 1548140642@qq.com, pgsql-bugs@lists.postgresql.org References: <19868-5efb930ace5bd191@postgresql.org> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: <19868-5efb930ace5bd191@postgresql.org> 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 11/11/2026 07:48, PG Bug reporting form wrote: > When pg_resetwal -n reads a damaged pg_control whose uint32 xlog_seg_size > field contains 4294967295, its invalid-WAL-segment-size warning prints "-1 > bytes". The diagnostic should preserve the unsigned field value and print > "4294967295 bytes". This is completely inconsequential. Peter Eisentraut experimented with -Wformat=signedness a while back, see https://www.postgresql.org/message-id/a37346d0-96d0-42f1-a5d9-8f31872818c6@eisentraut.org. This particular change was also covered by those patches. - Heikki