| From: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
|---|---|
| To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: DOCS - "\d mytable" also shows any publications that publish mytable |
| Date: | 2025-12-23 08:28:18 |
| Message-ID: | 2D3887FE-6125-4A0D-9AF8-612545B0A843@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On Dec 23, 2025, at 05:07, Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> I was looking at "\d" documentation yesterday.
>
> The psql table describe (e.g. "\d mytable") will display a list of any
> "Publications:" that are publishing the specified table. Somehow, this
> ability had escaped being mentioned in the psql reference
> documentation.
>
> Here is a trivial patch to fix that omission.
>
> ======
> Kind Regards,
> Peter Smith.
> Fujitsu Australia
> <v1-0001-DOCS-psql-describe-table-can-list-publications.patch>
Not only publication, “\d table_name” also shows partition information:
```
evantest=# \d t_part;
Partitioned table "public.t_part"
Column | Type | Collation | Nullable | Default
--------+---------+-----------+----------+---------
id | integer | | |
val | integer | | |
Partition key: RANGE (id)
Publications:
"mypub"
Number of partitions: 3 (Use \d+ to list them.)
evantest=# \d t_part_p1;
Table "public.t_part_p1"
Column | Type | Collation | Nullable | Default
--------+---------+-----------+----------+---------
id | integer | | |
val | integer | | |
Partition of: t_part FOR VALUES FROM (0) TO (100)
```
As you updating this section, you may add “partition info” as well.
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2025-12-23 08:38:13 | Re: Startup PANIC on standby promotion due to zero-filled WAL segment |
| Previous Message | Japin Li | 2025-12-23 08:13:06 | Re: Allow GUC settings in CREATE SUBSCRIPTION CONNECTION to take effect |