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 1vnUzo-00810Z-37 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 05:00: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 1vnUzn-0093Lq-30 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 05:00:07 +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.96) (envelope-from ) id 1vnUzn-0093Li-1r for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 05:00:07 +0000 Received: from mail-dl1-x1235.google.com ([2607:f8b0:4864:20::1235]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vnUzl-00000000yDt-1EEE for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 05:00:07 +0000 Received: by mail-dl1-x1235.google.com with SMTP id a92af1059eb24-1248d27f293so1994650c88.0 for ; Tue, 03 Feb 2026 21:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770181203; cv=none; d=google.com; s=arc-20240605; b=UIqZvFGDM0AewWT/lWqv3Ulrka7MS+c/Nh2Ve+u4k9bK1K7lsBT9nndsWHRbA2F7xd l8uw952mWeEPpMuNR9iJ4FmQnseOuxLHKryTKdPEXZ3Jeto/QQcCB4RMhqcxLIjTKYAN q4JbgSJK8WwsEPqiberEziwRoB4xnqMLr0v1oLG9LX2+DxT6VJCurl1M1svPmWc3mZcy m5EAVeGua9z+EW0Te2WyVYjVZtVPQ/b0NOw6A3Ejgmyxf7cNm+lmP98SS8nhF+cAdDqd oBRtzfeCsUwQW6x2M8ccKSnkqSC/2pcjwaCfSIALwnM96hjpj69fyKBpRDR7l41Cd+BN kfCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bLVYmbvM0KWFO1ycPKB39HT3Zt9i5TbrgT68f3UaCXY=; fh=7jcSPoER7KF1nRCpcEsgrs7wfTFPc8Jbmu9XPwVIhIc=; b=Qupw3DuvHfV+Mwi9nkKPKBqpetGUFJ/YzuvZpPW6pMzGCcERVmfDAvRocisK4+mOER g0PR3tFQmuO2G/Kb3ZhhK4OwSu2ZDyeWfSYKUUATsgN0KahZfB4s+wtFsvpJcOACew4V eoJoCviSZAh8l/rSHxjDEbKRDC3fpC18iuOUVto3aPR1SvAbjGZ1E110WzX5La22gGE5 N/W64WaO9jRoTTPr8sxCMasPHTkxiLwJ4bjPrPgNPcho0R3SFzwz8JJbVseqeOErd8ot vlW3aB61GRwDU9hZYfXyxPKhZ9hrwhVZGJ7w0UPFCBYBwd5F8MnaD8t4WUjNFUqVTdOu NS+Q==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770181203; x=1770786003; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bLVYmbvM0KWFO1ycPKB39HT3Zt9i5TbrgT68f3UaCXY=; b=aslxSisQPaVdCVp311SjLw6OtuqgLSYltjZxEi7obeEHBd8MTCC/XeNyKYD7qzVpAX iJyFHZ8Bt9nvfylPlmbpGuAF24AtUTTn2S/mZOiWJglXygTELYJWrjuDMqd9bpGESSkb TAZmHApE6qMvlxZPf/MPEF+e8UGC3CqJTXHSVm9KmnWaDawq2Rz4MIAnganSGsXmkWAW 1lke4hSSvzBvQy73M7iBDLBTENnpQ9A0o+IPLZ4++2a5xAWB/eukc409Lf7YYuAc0XZ4 wA2B6bw1BchFyyrj1zfSLUPaBQyK+sGiwRuBowgMGAQMLJ4Tc8+2AFXD91bJIWtjJFvi zo5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770181203; x=1770786003; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bLVYmbvM0KWFO1ycPKB39HT3Zt9i5TbrgT68f3UaCXY=; b=h5P0u7mVWuhKEikJS+4MKF/EnVUxPt1aNiqnWaf+dEx7FsiC1db5F4/PtAg2vwWBjU /rpqSFvsU0/9BWBGk8SSHP1BBLmpMRSUME5QA+ZKY2HGD1xO/b5w6mjw5CUvakDmGvm0 dHx/xP5Q/2KNa46njAHeYqypJiJq92i2rpCEwM6GYuCkJV2JENkJWMyMQdMwmnRzO1ue LE82EEuZCOKfPhE1AqfnbVkDQD3InAayuspIFQ04cuu0+Bq/ANe4HonrxmwGu3xCVsNT T+Yf3gcpS5yXWWsctVIvrimc9dI/2RUGfUekfrq99VAGY+Wag3cKXa6CCmhcSqTB7OES 24rw== X-Forwarded-Encrypted: i=1; AJvYcCWL5S+c707IHGZcIosc1KATSVvhpgMpB6kkbQKgi01iDts3pTebqry2TGTHu6VZ6aZr2qfQfzQWKHHhsfRm@lists.postgresql.org X-Gm-Message-State: AOJu0YxwihNKVb8c80KwnLNbK+szU1hTvqLUMZEbxvy2W+36FeYPYPt3 KwOO5f/kQta4fzxHfRfq2Qzffwdvxp7olWlqEt+g7gDyJ10q5BFzF3Tframn3KNZBI+FWjA2se2 VyJzO3AWTt2Y0LA/RiGR+K1+9+XE1Uh4= X-Gm-Gg: AZuq6aLlL5jaICed7vJAySbeA1n188be0cGpypIGmb85Mf577RJFP7khK71IOPrx8GH I1lYlOToyUfVEdS0zwYFA3NjM/0ApOTFtTp4JLL9xajQ2IW4Zh40lq97PjjUJOKvTK9FhaUo0vh /sfYHSfPW3dW1wRWbEnQFM7Wc3aWm34GL/lOZl9G8HYJl3UheDMInhrJLegkJ3ksw9/RLsulg3E PpFzIqE7w32WphyGV+qniFd7aIkOTS3Y/QrbiQxUFlICUxLpgA0Fz81z/NZE1uPSpyu5kY= X-Received: by 2002:a05:7022:a94:b0:11b:9386:7ecf with SMTP id a92af1059eb24-126f47dd396mr674464c88.44.1770181202677; Tue, 03 Feb 2026 21:00:02 -0800 (PST) MIME-Version: 1.0 References: <785CF596-5626-4ECB-AC3D-13FB266D69D0@gmail.com> <8048C321-FECA-4ECD-B022-54D842151B42@gmail.com> In-Reply-To: From: Soumya S Murali Date: Wed, 4 Feb 2026 10:30:27 +0530 X-Gm-Features: AZwV_Qjrwy7Ew4XvsXGKFj1lYUxuZzMimsB9duw3pqcIjV9e-3SluQCf-G182mQ Message-ID: Subject: Re: Fix how some lists are displayed by psql \d+ To: Peter Smith Cc: Chao Li , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi all, Thank you for updating the patches. On Tue, Feb 3, 2026 at 3:24=E2=80=AFPM Peter Smith = wrote: > > On Wed, Jan 21, 2026 at 7:30=E2=80=AFPM Chao Li = wrote: > > > > > > > > > On Jan 21, 2026, at 16:22, Peter Smith wrote: > > > > > > On Wed, Jan 21, 2026 at 7:05=E2=80=AFPM Chao Li wrote: > > >> > > >> > > >> > > >>> On Jan 21, 2026, at 10:58, Peter Smith wrot= e: > > >>> > > >>> A rebase was needed for some more test expected output changes. > > >>> > > >>> PSA v2. > > >>> > > >>> =3D=3D=3D=3D=3D=3D > > >>> Kind Regards, > > >>> Peter Smith. > > >>> Fujitsu Australia > > >>> > > >> > > >> I still see some difference: > > >> ``` > > >> evantest=3D# \d+ p_test; > > >> Partitioned table "public.p_test= " > > >> Column | Type | Collation | Nullable | Default | Storage | Com= pression | Stats target | Description > > >> ----------+---------+-----------+----------+---------+----------+---= ----------+--------------+------------- > > >> id | integer | | | | plain | = | | > > >> username | text | | | | extended | = | | > > >> category | text | | | | extended | = | | > > >> Partition key: LIST (category) > > >> Indexes: > > >> "idx_p_test_id" btree (id) > > >> Partitions: > > >> p_test_v1 FOR VALUES IN ('A') > > >> p_test_v2 FOR VALUES IN ('B') > > >> ``` > > >> > > >> The index name is quoted, but the partition names are not. > > >> > > > > > > AFAICT > > > Indexes are quoted > > > Constraints are quoted > > > Publications are also quoted > > > > > > Partitions are NOT quoted > > > Inherits are NOT quoted > > > > > > ~ > > > > > > Please confirm --- So, you are expecting that Partitions and Child > > > tables should also be quoted, so that everything looks the same? > > > > > > This is scope creep from the original intent of this thread, so I wil= l > > > look at doing this in a separate patch 0003. > > > > > > =3D=3D=3D=3D=3D=3D > > > Kind Regards > > > Peter Smith. > > > Fujitsu Australia > > > > Actually I don=E2=80=99t know the rule, which should be quoted and whic= h should not. Is the inconstancy a blocker? > > > > So, I was just pointing out the inconsistency, and I want to hear a cla= rification from someone. > > > > OK. I feel that the "Partitions" and "Child tables" + "Interits" might > be the odd ones out here, just as those were the odd ones out re the > list indentation logic. > > But I will hold off on adding quotes for them until I hear some > committer advice that it would be a worthwhile change. I went through the discussions and verified the unpatched psql display and after tested the v2 patches on the current master. The patches applied cleanly, make check and tests passed successfully and using the patches confirms that "Partitions" and "Child tables" are now displayed consistently as intended. LGTM from my side. Regards, Soumya