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 1sMXs7-002vzB-Ia for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jun 2024 18:59:59 +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 1sMXr7-0065Oc-KA for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jun 2024 18:58:57 +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 1sMXr6-0065OU-V4 for pgsql-hackers@lists.postgresql.org; Wed, 26 Jun 2024 18:58:57 +0000 Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sMXqz-003Ggt-Ph for pgsql-hackers@lists.postgresql.org; Wed, 26 Jun 2024 18:58:55 +0000 Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-e02c4983bfaso7050790276.2 for ; Wed, 26 Jun 2024 11:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1719428328; x=1720033128; darn=lists.postgresql.org; h=user-agent: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=E2Jy6f6advpVqmGukL6vwhBuZpG8dWkH5AIG+zwP9rY=; b=S652f248s8+U7mivQ4W1acTG6YIpXMODfBLav7xZ7H69ULoYiFaxQnz2mkQhhhvOIQ 90bhs0CX4IcwTDof/9UuKhbLr7FEIjgW5jyWRFTqS1rh3dk+FcBuWJKFu+9Bl6+A8z1i Z3rKfjCLMTLlD1d4cVSUWUAO0h4mYbtBp2uUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719428328; x=1720033128; h=user-agent: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=E2Jy6f6advpVqmGukL6vwhBuZpG8dWkH5AIG+zwP9rY=; b=F2/z79R3pelhq0Xf5srrtt4nstDClA5B2ZYIBxRiWa/t8VWr0Udl2LXQvtlkjW+cQH IK84SEq1yrRGH5bO7zmpBcj4YozBv6Gk69NWz9WIVNyn+7w+7nkQvuqw5lKLdn/IqHmN +Kztri+e+VKXPKA4J+vdF6tHk3/fQtyjx73RGSps8rv2WCETCisnwF9bPU560euAyEu8 c3YRSOq+Bcmaj1yvvnxTwrT6uKHajxWCebL3NNQZuYTc72HqYKIf7j3eEtop8wQIvfRO dUL9Fk32DsTJAFYDbxADY+N3zA2Uy0H1BQhWrXQuK2tZPPmIzuZtRrvU7ERrijImu1Vu /72g== X-Gm-Message-State: AOJu0Yzg9slK4lP61VgqJ6G93B6SoWg8ZPEYR7M5uieNmSsy7cNZcI4d f6myygrn+klZGT9LqUZRydnm6PefryMYgmfUK2MlarEXnjVMcka4VmlUfPHr2g== X-Google-Smtp-Source: AGHT+IEP3Fi2SXIVb+cmNcRHJGicqENICdUT4V4LHlUNhCjYmRMwRBZb+UW4B3Yp1QHUr1pbg0z0XA== X-Received: by 2002:a25:d697:0:b0:dfb:e04:c011 with SMTP id 3f1490d57ef6-e0300fa0e0cmr10273343276.36.1719428328385; Wed, 26 Jun 2024 11:58:48 -0700 (PDT) Received: from google.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e02e65bdcf7sm4425079276.50.2024.06.26.11.58.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2024 11:58:47 -0700 (PDT) Date: Wed, 26 Jun 2024 11:58:44 -0700 From: Noah Misch To: Aleksander Alekseev Cc: Postgres hackers , Alexander Korotkov , Maxim Orlov , Heikki Linnakangas , Japin Li , Andres Freund , Michael Paquier , Pavel Borisov , Peter Eisentraut Subject: Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15) Message-ID: <20240626185844.00.nmisch@google.com> References: <20240626002747.dc.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jun 26, 2024 at 02:09:58PM +0300, Aleksander Alekseev wrote: > > This yielded commit 4ed8f09 "Index SLRUs by 64-bit integers rather than by > > 32-bit integers" and left some expressions coercing SLRU page numbers to int. > > Two sources: > > > > grep -i 'int\b.*page' $(git grep -l SimpleLruInit) > > make && touch $(git grep -l SimpleLruInit) && make PROFILE=-Wconversion 2>&1 | less -p '.int. from .int64. may alter its value' > > > > (Not every match needs to change.) > > I examined the new warnings introduced by 4ed8f09. Most of them seem > to be harmless, for instance: [...] > I prepared the patch for clog.c. The rest of the warnings don't strike > me as something we should immediately act on unless we have a bug > report. Or perhaps there is a particular warning that worries you? Is "int" acceptable or unacceptable in the following grep match? src/backend/commands/async.c:1274: int headPage = QUEUE_POS_PAGE(QUEUE_HEAD);