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 1qljFl-0046TS-Qg for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Sep 2023 05:07:58 +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 1qljFk-00904B-02 for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Sep 2023 05:07:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qljFj-00903r-IB for pgsql-bugs@lists.postgresql.org; Thu, 28 Sep 2023 05:07:56 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qljFh-0081c1-3l for pgsql-bugs@lists.postgresql.org; Thu, 28 Sep 2023 05:07:55 +0000 Received: from [172.30.8.38] (unknown [172.30.8.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: a.lepikhov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 1C0A1E2102D; Thu, 28 Sep 2023 08:07:50 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1695877671; bh=xd1A9nnj1P/nFxrPY2zSU4WuHxYn0s7g55e7W7WDAYw=; h=Message-ID:Date:User-Agent:To:From:Subject:From; b=gmvX/zmAT61BisljSegaB5pMpE+H7l7J9CWBrgRaXCINDrE9xi82qwicADAOk814+ UA5eTl/oM5CCvjJF0kf2D+aOEU+oHgAolULjF1B1VuyX0iI2Ps+LWHW6qu0YXmVz2Q yIvqxcN5PW9xx45yvpTZAwznt3LLpdj5JZZ0OCe+rVXX7Iw9AGSv3LCxCDJraGOOju CsEcdRo54e2rb7y98wNiHH9A+o2ptlCVj0v0TyhDATTwJ/BfAEGyEvNpAuUX9ErWIy asCYyGYQsb2TjQpx9GgHnG7g0/ErUWbEqMBKCuBw9na+MKpdLpaVcswvPCLHXzY7Gl xtnwh0rbf1ctg== Content-Type: multipart/mixed; boundary="------------a43CBS2zoQXCdbCi4cafTWDM" Message-ID: <379082d6-1b6a-4cd6-9ecf-7157d8c08635@postgrespro.ru> Date: Thu, 28 Sep 2023 12:07:48 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: PostgreSQL mailing lists , David Rowley Content-Language: en-US From: Andrey Lepikhov Subject: Missed TidRangePath in the print_path switch Organization: Postgres Professional List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------a43CBS2zoQXCdbCi4cafTWDM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, The TidRangePath node was introduced three years ago. However, path printing machinery still does not support it. It isn't enjoyable to add this string of code each time. I suggest adding it now. Also, I propose not printing "???path" in the default case but throwing a warning - see the patch in the attachment. It can help to avoid such slip-ups next time. It generally makes sense to generate such long switches automatically, likewise nodeToString. -- regards, Andrey Lepikhov Postgres Professional --------------a43CBS2zoQXCdbCi4cafTWDM Content-Type: text/plain; charset=UTF-8; name="tidrangepath.patch" Content-Disposition: attachment; filename="tidrangepath.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9iYWNrZW5kL29wdGltaXplci9wYXRoL2FsbHBhdGhzLmMgYi9z cmMvYmFja2VuZC9vcHRpbWl6ZXIvcGF0aC9hbGxwYXRocy5jCmluZGV4IDliZGM3MGM3MDIu LmIwZWQ2OWQyZjggMTAwNjQ0Ci0tLSBhL3NyYy9iYWNrZW5kL29wdGltaXplci9wYXRoL2Fs bHBhdGhzLmMKKysrIGIvc3JjL2JhY2tlbmQvb3B0aW1pemVyL3BhdGgvYWxscGF0aHMuYwpA QCAtNDQ3MCw2ICs0NDcwLDkgQEAgcHJpbnRfcGF0aChQbGFubmVySW5mbyAqcm9vdCwgUGF0 aCAqcGF0aCwgaW50IGluZGVudCkKIAkJY2FzZSBUX1RpZFBhdGg6CiAJCQlwdHlwZSA9ICJU aWRTY2FuIjsKIAkJCWJyZWFrOworCQljYXNlIFRfVGlkUmFuZ2VQYXRoOgorCQkJcHR5cGUg PSAiVGlkUmFuZ2VQYXRoIjsKKwkJCWJyZWFrOwogCQljYXNlIFRfU3VicXVlcnlTY2FuUGF0 aDoKIAkJCXB0eXBlID0gIlN1YnF1ZXJ5U2NhbiI7CiAJCQlicmVhazsKQEAgLTQ1NzgsNyAr NDU4MSw4IEBAIHByaW50X3BhdGgoUGxhbm5lckluZm8gKnJvb3QsIFBhdGggKnBhdGgsIGlu dCBpbmRlbnQpCiAJCQlzdWJwYXRoID0gKChMaW1pdFBhdGggKikgcGF0aCktPnN1YnBhdGg7 CiAJCQlicmVhazsKIAkJZGVmYXVsdDoKLQkJCXB0eXBlID0gIj8/P1BhdGgiOworCQkJZWxv ZyhXQVJOSU5HLCAiY291bGQgbm90IHByaW50IHVucmVjb2duaXplZCBub2RlIHR5cGU6ICVk IiwKKwkJCQkgKGludCkgbm9kZVRhZyhwYXRoKSk7CiAJCQlicmVhazsKIAl9CiAK --------------a43CBS2zoQXCdbCi4cafTWDM--