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 1ve0dr-007nPe-2z for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Jan 2026 00:46:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1ve0dq-0058Jk-2H for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Jan 2026 00:46:15 +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 1ve0dq-0058Jc-1H for pgsql-hackers@lists.postgresql.org; Fri, 09 Jan 2026 00:46:15 +0000 Received: from mail-dl1-x1236.google.com ([2607:f8b0:4864:20::1236]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ve0dp-004yxV-10 for pgsql-hackers@lists.postgresql.org; Fri, 09 Jan 2026 00:46:14 +0000 Received: by mail-dl1-x1236.google.com with SMTP id a92af1059eb24-11b992954d4so3727716c88.1 for ; Thu, 08 Jan 2026 16:46:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767919572; x=1768524372; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DaTbLupdsQUJe9HrblrdJk4PLxukqvco0soDh4TUZIo=; b=ZElavJVEiGiBm535FiRA/eMk3BdS6JKrgyeeIHyVJU/Ww+fOF32l1o6LdE+SDOwsvy Ip1sWkWERWLEL7gXbCHsfcupxymnPzdWcZMnlepW4+Q/yfVyFD0M8CeooQqgccidDuCj KvVduiXnrdWkUiIKuqe9zCSYjWm+JbOkoo5SwRVMplR5Vu8OChBkNXjgCcbDduzmPpeA Eh/iFxKQo3WAFZeFBlV1/INimhntQL0R61IqLWvw3hwjRlIvfNUEcyq3morBFnuIxs40 IO0MTFb/BnnFCd58HIyrwot02+kS/6/ylR1yivF+t6i+uSsjKapgkNJ/BHmBL3iPpmf3 d9/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767919572; x=1768524372; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DaTbLupdsQUJe9HrblrdJk4PLxukqvco0soDh4TUZIo=; b=GbMuprPvSsGExyPqJ4Q4bhpO8YTrfrA5hytBwwMe6+InSMVtMZO6LYRusbQ2tUp+2J X4hlKA3n5qKFWc3V8Aedhcq+5if7JiuD9QDNnO6c5IeJfL+/3LdSSJZAYLDKMAgN6Avq Lq6n7wJce9okiA32/BgrC8YRzjOUxU8sDD4+778yNjiTcv1Q1mypjC1JFFeqtD3+oiSF Dkdxia+ze/wg8+gT5QLvVZa/yEmh/zbXRL/ygWX7xM20ezr3n1KlffsyuaFm+Hw2FXBd T0OuBaFM2rFT7G3pDfUlaf//rhIJeN7B6xzaZe73gzLWcZz37dWvCal/K90sgjUpIRh8 StZA== X-Gm-Message-State: AOJu0Yx1R1LpJ34NUI/3EiWQ/4wDmoh+RtLDAiYhffi2/gn305MQJNsz DW6rrOo4mM09iiQ0yi/PBO2YrZMMrF2BHD2KSGIHoeQQAH++sW2f5Ocy X-Gm-Gg: AY/fxX6734yXbUUGya7e5qmBWZBnoV2XyyWsXocc6eDwdzVV/bwTf3pBIYUgm6SD8FJ 6/x0iNoRU8oFkm1ML3iDQzn25ultlJDEmx/QBf3EPlF3XUNPL/gAQZw0oOQHq7t94LwxQ4EbNn+ 54ejGdOzFH0pXa36dzYzYXy7vbwvcj0KEl6TKXexqemHeVg34png4hSkrRhk9HjjEO/0mgGvHsD uCdQghQ+r6auiYegDTpa/KfNmFCQVfs4qi/fqUpaIH03KcmoNMBWHTWso1o1rcOksmY/9Lua8c7 azORBVFQsszBMPWQbcIe8r2bmlJluB70MFm6lsMwr7x3Pa3kTf+qAWLbxOp2sAoObl2iajklS0B lyvxvZviWEwqghCc+mWg9FyTecIl9pERmmmB4UiqaO0GoFAFaYzIggBC7A1mVHx6O1+V+hSuZFH xP6fnoxYyCqlEaV0KsjA== X-Google-Smtp-Source: AGHT+IE9uymOL7+bIcivz5dZUckAWET/8P+8wdDUaI8FYd6mzD7VwbI+TbCLaaJx59MEiL8JsfkwLw== X-Received: by 2002:a05:7022:2216:b0:121:72bb:3cd7 with SMTP id a92af1059eb24-121f8afc20cmr6482274c88.7.1767919571861; Thu, 08 Jan 2026 16:46:11 -0800 (PST) Received: from smtpclient.apple ([64.32.14.230]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-121f24a65b9sm12180331c88.17.2026.01.08.16.46.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jan 2026 16:46:11 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Fix how some lists are displayed by psql \d+ From: Chao Li In-Reply-To: Date: Fri, 9 Jan 2026 08:45:36 +0800 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <071484FC-B420-4B22-9899-3A16086A5637@gmail.com> References: To: Peter Smith X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jan 9, 2026, at 06:47, Peter Smith wrote: >=20 > Hi. >=20 > I recently saw that the psql \d+ lists for "Partitions:" are not > aligned in quite the same way as other lists ("Publications:" etc) > because they use indents and line breaks differently. e.g. See below: >=20 > test_pub=3D# \d+ part1 > Partitioned table "public.part1" > Column | Type | Collation | Nullable | Default | Storage | > Compression | Stats target | Description > = --------+---------+-----------+----------+---------+---------+------------= -+--------------+------------- > a | integer | | | | plain | > | | > Partition of: t1 FOR VALUES FROM (0) TO (50) > Partition constraint: ((a IS NOT NULL) AND (a >=3D 0) AND (a < 50)) > Partition key: RANGE (a) > Publications: > "pub1" > "pub2" > "pub_only" > Partitions: part1_1 FOR VALUES FROM (0) TO (25), PARTITIONED, > part1_2 FOR VALUES FROM (25) TO (50) >=20 > ~~~ >=20 > PSA v1 > 0001 - Fix (common code) lists for "Partitions:" and "Child tables:" > 0002 - Fix list for "Inherits:" in the same way >=20 > ~~~ >=20 > The *patched* result for the same example now looks like below. Notice > that in passing I also removed the comma separators, which are not > present in the other footer lists. >=20 > test_pub=3D# \d+ part1 > Partitioned table "public.part1" > Column | Type | Collation | Nullable | Default | Storage | > Compression | Stats target | Description > = --------+---------+-----------+----------+---------+---------+------------= -+--------------+------------- > a | integer | | | | plain | > | | > Partition of: t1 FOR VALUES FROM (0) TO (50) > Partition constraint: ((a IS NOT NULL) AND (a >=3D 0) AND (a < 50)) > Partition key: RANGE (a) > Publications: > "pub1" > "pub2" > "pub_only" > Partitions: > part1_1 FOR VALUES FROM (0) TO (25), PARTITIONED > part1_2 FOR VALUES FROM (25) TO (50) >=20 > =3D=3D=3D=3D=3D=3D > Kind Regards, > Peter Smith. > Fujitsu Australia > = This is a simple change, but makes sense to me, making the display = looking better. The code change is straightforward and LGTM. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/