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 1vxSYW-00FDHd-2N for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Mar 2026 16:25:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vxSXU-007lme-32 for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Mar 2026 16:24:05 +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 1vxSXU-007lmV-12 for pgsql-hackers@lists.postgresql.org; Tue, 03 Mar 2026 16:24:05 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vxSXS-00000000Cfj-1Rr3 for pgsql-hackers@lists.postgresql.org; Tue, 03 Mar 2026 16:24:03 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 707367A01C4; Tue, 3 Mar 2026 11:24:01 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Tue, 03 Mar 2026 11:24:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1772555040; x= 1772641440; bh=HPv0z5KF3nnyMRZH41wP9h7RFa+8HaG6JJs371Pkr6I=; b=p NpWEvlczyWnWvWKHiCw/f6uTcJzilxJ30LG2tFbFRY9FYrKI6lDsa6l3ZweK74U2 qaZ2YSx4OtguTLs+ZvdLcrcDMf11ouDjlEV+EBcPYJiTrXNWXYPnrvtNnye9oM7U uRQETeZLbjzlNlfDTEJjHInMWUqhd1xfIw0Sl9HB2W5xcF/L0Sn63yIP/1xWNHhd xnrDUiAOzm9LDn0svhAm0n9LUt2SZx7LU1XahbIzEFXqHF97deuH5LVEMJ1N+1uI jm7mDvwcjp/OwYYC52EgsTmZlRBojNFnH5s4K1z0r64QG1G4kF/ipNOUJvCpKhpf 0qrxNHU0SQ6WJoB9Y2fWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1772555040; x=1772641440; bh=H Pv0z5KF3nnyMRZH41wP9h7RFa+8HaG6JJs371Pkr6I=; b=CZiUBwFOcBEB1LFrO 2a3/AWSOJzfdM9qA1/FN5plpJBfW5tMzT2Sz5vh2A1D4aTheAzRzhaGqUM3kio4I HytbgeLeRHvXcs7hUlgLVZ1HOdJGAOxpxgdxdEXFJ4/uMIY1O22JCFKTONB/HG3/ wOBOZUGSFS7eyysaQp5bn+wJBd0PVK/OnSiTGeiXJLm78qurqqyibXWcnK7/djhM azlZ5+qT4nsGwzTJd4JIQyoaRlZn80d9xdvD1Ye3/WBDI0RDbk6sAnzQiYdnOOEf W9CV8Cdn9juQvvxK9t0/KBfvklEtxXq12Afi+yL9iwKlbE3FC3BZpqq1sPzK7mbe AsXwg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddviedutdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfggtggugfgjsehtkeertd dttdejnecuhfhrohhmpemllhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvges khhurhhilhgvmhhurdguvgeqnecuggftrfgrthhtvghrnhepteeuvdehffekvefgueehve etveekgfegtddtueefueehuddutdfhfeffhfejfeffnecuffhomhgrihhnpegvnhhtvghr phhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdpnhgspghrtghp thhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheplhhirdgvvhgrnhdrtg hhrghosehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhgrrhhkfihkmhesghhmrghilhdr tghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsth hgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Mar 2026 11:23:59 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1772555038; bh=ABSB0eZ/0EyAQ0iaJbGIgQwtJF3rE2k8Qi9J26ky/Io=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=iKNFPlvAuSFfbAhXitQudPa+fSpnBIcnL6+bM7gcgpNf50FK0gqB3RaK5YAtI5fjM foR/mod6HrpdzJDG4UfOS1uanBQFGu6C9ALZXUX6gNtCQmAcWtcwam5X6HenYt4LPa NedPOU7y9zbfJxSjwID/VmD8zB4ztPcc5wbGpJolSJ5ZfNiARxreE67ubLjYhNqqXW M3a45eP2tFBolUgPf1+ViEvjXXjS1i13BCaU1+8s0KBtVwGNkWkHDxjWKeAseD0ide AFyZS7eVCwwZHq2h9a/Vpp08a7gwWyZE3TSba+VRuMmPFPZj0YVGp4YZGzBlAdd82S K6OOReLgPgRKQ== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 640367A; Tue, 03 Mar 2026 17:23:58 +0100 (CET) Date: Tue, 3 Mar 2026 17:23:58 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Mark Wong Cc: Chao Li , pgsql-hackers@lists.postgresql.org Subject: Re: updates for handling optional argument in system functions Message-ID: <202603031619.ih6a6v4k6hd6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Jan-29, Mark Wong wrote: > I don't have a solution for the case of a view storing the OID, but Álvaro > Herrera suggested to me to at least try preventing those OIDs from being > reused. > > I've attached a v3 patch set that introduces src/include/catalog/pg_retired.dat > to store previously used OIDs and procedure names that the scripts unused_oids > and renumber_oids.pl can consume to prevent the reuse of retired OIDs. Thinking about this again, I wonder where did we get the idea that reusing OIDs would be a problem. How exactly would this happen? When you pg_upgrade, your views are taken from a `pg_dump --binary-upgrade` of the original server, and then recreated using the text representation of the DDL. We don't pass the function OIDs in any way from the old server to the new server. And there's no other way (than pg_upgrade) to go from one major version to the next one where the OID has been reused. So why did we think this was an actual problem? -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ Syntax error: function hell() needs an argument. Please choose what hell you want to involve.