Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJb67-0002ly-Qs for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Aug 2022 13:41:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJb66-0005Wo-Os for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Aug 2022 13:41:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJb66-0005SK-Eq for pgsql-hackers@lists.postgresql.org; Thu, 04 Aug 2022 13:41:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJb63-0004Nt-6a for pgsql-hackers@lists.postgresql.org; Thu, 04 Aug 2022 13:41:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 274Df53M3437167; Thu, 4 Aug 2022 09:41:05 -0400 From: Tom Lane To: John Naylor cc: Justin Pryzby , Erik Rijkers , PostgreSQL Hackers Subject: Re: fix typos In-reply-to: References: <20220801181136.GJ15006@telsasoft.com> Comments: In-reply-to John Naylor message dated "Thu, 04 Aug 2022 17:21:38 +0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3437165.1659620465.1@sss.pgh.pa.us> Date: Thu, 04 Aug 2022 09:41:05 -0400 Message-ID: <3437166.1659620465@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk John Naylor writes: > On Tue, Aug 2, 2022 at 1:11 AM Justin Pryzby wrote: > ereport(ERROR, > (errcode(ERRCODE_OBJECT_IN_USE), > - errmsg("could not drop replication origin with OID %d, in use by PID %d", > + errmsg("could not drop replication origin with OID %u, in use by PID %d", > RepOriginId is a typedef for uint16, so this can't print the wrong answer, > but it is inconsistent with other uses. So it seems we don't need to > backpatch this one? Um ... if it's int16, then it can't be an OID, so I'd say this message has far worse problems than %d vs %u. It should not use that terminology. regards, tom lane