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 1qH56q-0005QG-Gk for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Jul 2023 16:12:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qH56o-0006vY-OW for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Jul 2023 16:12:02 +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 1qH56o-0006vO-Fp for pgsql-hackers@lists.postgresql.org; Wed, 05 Jul 2023 16:12:02 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qH56l-002CFH-Qo for pgsql-hackers@lists.postgresql.org; Wed, 05 Jul 2023 16:12:01 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id D0B8A5C0196; Wed, 5 Jul 2023 12:11:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 05 Jul 2023 12:11:58 -0400 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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1688573518; x= 1688659918; bh=ila+SviPhefovzd/dBe7dDch1BrJ49cZ6vmDE7BdYeE=; b=R /YzFW2k27+BYGG9bs0j7J76t2Tb3yRv0IhEI4o2yQciTwYWdkQpIOdLndZOaAWSt GKv+S9+XfFG4Fn7co+FhA30poXhYIGqiyYOfxrXiZFv64D9DN2UJSFsBS1HRAgmQ z1Y3dzMyMxoiR8X2RwbXi9FcwiwQBJVoRfVx831ijjWBqlLbz/flTkyUN/Bu+tbJ hMmR5ArTzwRqLlXoiSm+m7l7uI75P17zjy1M44tsVYiNBbo7nHLJc4kGnfN+pcOa 1uWqu4Lyn8K/weDnSba5s+0QTUJwmaLAZT3p2vHET7LKHcsgbKifSwySEyc8Em+K /f9jJdAB+mi7chyq3RSVw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Jul 2023 12:11:58 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id AC2F99D; Wed, 5 Jul 2023 18:11:55 +0200 (CEST) Date: Wed, 5 Jul 2023 18:11:55 +0200 From: Alvaro Herrera To: Euler Taveira Cc: Amit Kapila , pgsql-hackers@lists.postgresql.org, Masahiko Sawada Subject: Re: logicalrep_message_type throws an error Message-ID: <20230705161155.repwy2tgvir2hcbr@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 2023-Jul-05, Euler Taveira wrote: > Isn't this numerical value already exposed in the error message (X = 88)? > In this example, it is: > > ERROR: invalid logical replication message type "X" > CONTEXT: processing remote data for replication origin "pg_16638" during message type "??? (88)" in transaction 796, finished at 0/1626698 > > IMO it could be confusing if we provide two representations of the same data (X > and 88). Since we already provide "X" I don't think we need "88". Another > option, is to remove "X" from apply_dispatch() and add "??? (88)" to > logicalrep_message_type(). > > Opinions? The CONTEXT message could theoretically appear in other error throws, not just in "invalid logical replication message". So the duplicity is not really a problem. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Now I have my system running, not a byte was off the shelf; It rarely breaks and when it does I fix the code myself. It's stable, clean and elegant, and lightning fast as well, And it doesn't cost a nickel, so Bill Gates can go to hell."