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 1vifRl-00CmhQ-3B for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jan 2026 21:09:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vifRl-009VEt-0G for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Jan 2026 21:09:01 +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 1vifRk-009VEa-2S for pgsql-hackers@lists.postgresql.org; Wed, 21 Jan 2026 21:09:01 +0000 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vifRi-001emP-22 for pgsql-hackers@lists.postgresql.org; Wed, 21 Jan 2026 21:09:00 +0000 Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-50146483bf9so2501761cf.3 for ; Wed, 21 Jan 2026 13:08:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769029738; cv=none; d=google.com; s=arc-20240605; b=CeAmetGUX/tUgNkQqEB6XKcztrJSHj0tyVWJb6NM94FjbhuPMzzw5riMWFkqsO43xf 9P1+PYxuVeh2IXfR5Jb+4fHH6+XnZuDok4kEBiOCMuwMcE8k8cQY/zhFV//BNGge75qd uSYDsBYn9GTWoxCxZa5hSCX5nKKfupnaxMS1A3MywC1WuxdqrVm5uicomvMbP0GB4xAN l+Za4XZmrEX2XH5JjcMrUy8HGj5/1BtIVE51c4HeymLWl9+TOq7gLuvfMUqBqBeUJowo KatjQhEAa5NvFluWIMPPHIlwp1XdbN5FZfKA7xP0xQDmf/caMAkw0Zx7FVqnFuu4mZkQ iLkA== 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=xjZcHRUVZS6LhdMdbiGc7XLRwvzWHsrLPzmxxi4awlA=; fh=difWPyZhf+FMfWnUHiBJsrLSKQJL23D1+3HP+YAZNos=; b=eStAN/c1ttkKzpKsOTxkz0SAqlwx5rLOKY5JCxHQuRdjV3Lfx/QcY9wpJJHeS0eOrt nAxv6SBtPVm1n5lYyRRr7pHagyIZjaUIw6Vj2XETjK9EJrDjS1PvF9d7SkRg+nRSzLdf 1augEJzDrU9i2pqFfFtrl1hcKKePg/68bU2RZZbnyE4kSZC2hUXe6ZXRL+Yist5qk0Nq qcW4+dUxRdBj4fcYr3ii5VmQvf+5oM7/yBWkWNzK+nElK4o4hRoW3xpTpgO5MAlC2tkN EZtNbEGW3EJQphtmIuth3VvGvj/dq8W+Nk7A9t/vX/2b/JL15YBYhQJ9y85NV9NVIVCe YWxw==; 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=1769029738; x=1769634538; 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=xjZcHRUVZS6LhdMdbiGc7XLRwvzWHsrLPzmxxi4awlA=; b=iN3gn1yfTBFjiXDn1pkWJolzyyUXHzHmrsDHQUFzB8vxTP+ZYRheX3ew4XUfMXEXQi QAct87XkIiT2zhvG2P2rWE2AVIhqBnFw2U2L/R4ZCnNdYovtoVnchZ7KN9fDNuQMzVRO Y4NnrXbwsa8/m76JOnDnmoSHfXNwBYTR/WD33FWYeLXqDlsu9gzsna4y/N5jA+czzYfo rSXSKBFppVjqhfa2X02BzO5vMt8q3EWtJe1unA0lcTx9NmyMMs7KP+ozv8XGdstStKIg f2NBzlUxWYm7arFfWaXJpHrwKoFDpVEMb6rM2p9/bOqAZ6DFMAV7qGF0ogDzxzSWuunY g8AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769029738; x=1769634538; 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=xjZcHRUVZS6LhdMdbiGc7XLRwvzWHsrLPzmxxi4awlA=; b=cYfMftGdy/TTduMY5YCffh0W6idCylInNM1AlXYp588EL6TpfvaY5rC8kMun0BMA3t Ik4N1WnWkDrTEnULnInxD6hjlC6Yg4IFhVL6r3XQP+qOxUd5s/qTvZrMl0cNljGGGuNE jIs0kG3LHPiRSeyQ8fFpumSSFHe5XXMXLJJ/NtI2szfERB8TR8XbwnX5o/UFM0+cEWFg tJ5r3Uwu3WrVcYZUtuktrc0em0R8uMl2BieGYJbOu9rzIMc2Yd+/zJ9rRYKzCM2DyUvC xwPsVF7rxrDj6JPsOMyOqpYOcwAGZKfOpJin3VikFdb2Y9OHDPybGIvfnnysFyxiWHHc PXZA== X-Gm-Message-State: AOJu0YxbqCjY+aGYgQvD64AnG5mBMDIl0Dppi93iPDI0yw349LyBmRMF oYE2gtAALT55F7cZA7TuhLs3UnSwzeGbGPN0sQlcQy5F24ufN3B5SLCZCd6a9a1K/WfuZX6emqT qwLPxvVb8zro2lSdEzNC7+adFWkRwClY= X-Gm-Gg: AZuq6aL4aLUu3MaS8QDB44brAR2d2vXTHocq9tn8hBq5pFIoAUYCSTnpPDM0kZ+mOy7 vVybkK0BtBg5lC5u8oUhiF8vuKge0fgM6yT5Y2rA6un8PlZMMQyJTrRZ58F8ys3NDrm3grBKw7B YjagvBX0kwtW7h1yxfrqxqn0JfYAvPzW39PQxHXPU5jMaPH6dpL59r3791fpYQOToAZbY9PovnL jDSJhBsElNxJ5CMnNDIwmESNmhqOSBFZQCbDGnlPRXar1j91LgHF2gqh4Xpy8QezRuelcFRRTRo Yne9LolbjIlvEA0bkMJD+nNRh9Z5Lw== X-Received: by 2002:ac8:5acf:0:b0:4ff:c5f3:7076 with SMTP id d75a77b69052e-502a15e4b09mr305484581cf.16.1769029738465; Wed, 21 Jan 2026 13:08:58 -0800 (PST) MIME-Version: 1.0 References: <785CF596-5626-4ECB-AC3D-13FB266D69D0@gmail.com> <8048C321-FECA-4ECD-B022-54D842151B42@gmail.com> In-Reply-To: <8048C321-FECA-4ECD-B022-54D842151B42@gmail.com> From: Peter Smith Date: Thu, 22 Jan 2026 08:08:31 +1100 X-Gm-Features: AZwV_QiE00NnH5-wDql663bfQ-mbzlB9JMywtfiMwBuDsoFrzwCQUK72Et4yb3w Message-ID: Subject: Re: Fix how some lists are displayed by psql \d+ To: Chao Li Cc: 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 On Wed, Jan 21, 2026 at 7:30=E2=80=AFPM Chao Li wr= ote: > > > > > 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 wrote: > >>> > >>> 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 | Compr= ession | 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 will > > 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 which = should not. Is the inconstancy a blocker? > > So, I was just pointing out the inconsistency, and I want to hear a clari= fication 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. =3D=3D=3D=3D=3D=3D Kind Regards, Peter Smith. Fujitsu Australia