DOCS: Describe some missing parameters on CREATE/ALTER PUBLICATION pages
Hi.
I noticed that the CREATE PUBLICATION and ALTER PUBLICATION sysnopses
contain some user-specified parameters which are not defined, and not
even mentioned anywhere else.
For example,
ALTER PUBLICATION
- defines 'name', 'table_name', 'schema_name'
- never mentions 'column_name'
CREATE PUBLICATION
- defines 'name'
- never mentions 'table_name', 'schema_name', 'column_name'
~~~
It seems wrong to include undefined synopsis parameters and just
assume they will be self-explanatory.
It is ad-hoc; some terms are described on one page but not on the other.
~
PSA a small patch to make these parameter descriptions more complete
and consistent.
In passing, I also added some missing <varlistentry> "id"s for the
ALTER PUBLICATION page.
======
Kind Regards,
Peter Smith.
Fujitsu Australia
On Wed, Apr 8, 2026 at 3:10 PM Peter Smith <smithpb2250@gmail.com> wrote:
Hi.
I noticed that the CREATE PUBLICATION and ALTER PUBLICATION sysnopses
contain some user-specified parameters which are not defined, and not
even mentioned anywhere else.For example,
ALTER PUBLICATION
- defines 'name', 'table_name', 'schema_name'
- never mentions 'column_name'CREATE PUBLICATION
- defines 'name'
- never mentions 'table_name', 'schema_name', 'column_name'~~~
It seems wrong to include undefined synopsis parameters and just
assume they will be self-explanatory.It is ad-hoc; some terms are described on one page but not on the other.
~
PSA a small patch to make these parameter descriptions more complete
and consistent.In passing, I also added some missing <varlistentry> "id"s for the
ALTER PUBLICATION page.
Ping. This patch was posted about 5 weeks ago, but has received no
feedback so far.
======
Kind Regards,
Peter Smith.
Fujitsu Australia
On Mon, May 18, 2026 at 3:42 PM Peter Smith <smithpb2250@gmail.com> wrote:
Ping. This patch was posted about 5 weeks ago, but has received no
feedback so far.
Ping.
======
Kind Regards,
Peter Smith.
Fujitsu Australia
On Wed, Jul 22, 2026 at 11:59 AM Peter Smith <smithpb2250@gmail.com> wrote:
On Mon, May 18, 2026 at 3:42 PM Peter Smith <smithpb2250@gmail.com> wrote:
Ping. This patch was posted about 5 weeks ago, but has received no
feedback so far.Ping.
Thanks for the patches!
+1 to adding the missing CREATE/ALTER PUBLICATION parameter descriptions
and anchors.
I think these patches can be committed as a single commit, so I merged them
into one patch and made a few minor cleanup changes. Barring any objections,
I'm thinking to commit it. Since this is an improvement rather than a fix,
I think it should go to master only. Thoughts?
The additional changes are:
- Fix the typo "schmema_name" to "schema_name".
- Change the new anchor IDs to use hyphens instead of underscores, to match
the naming convention used by other SQL reference parameter anchors.
- Rename sql-alterpublication-params-set-parameter to
sql-alterpublication-params-set for consistency with similar anchors,
such as those for ALTER SUBSCRIPTION.
- Change "column_name list" back to "column list", since that wording is
clearer in prose and is already used elsewhere in the docs.
Regards,
--
Fujii Masao
Attachments:
v2-0001-doc-Add-missing-CREATE-ALTER-PUBLICATION-paramete.patchapplication/octet-stream; name=v2-0001-doc-Add-missing-CREATE-ALTER-PUBLICATION-paramete.patchDownload+60-18
Hi Fujii-San.
Thankyou for taking time to look at my old thread.
Your v2 changes LGTM.
On Wed, Jul 22, 2026 at 9:08 PM Fujii Masao <masao.fujii@gmail.com> wrote:
I think it should go to master only. Thoughts?
I didn't intend for this to be backpatched, but OTOH I posted the
original patch 3.5 months ago assuming it had plenty of time to make
it into PG19. I can't help that nobody looked at the thread until now.
Anyway, if it is too late then pushing just to master is ok.
======
Kind Regards,
Peter Smith.
Fujitsu Australia
Hi. I was looking at this again, and it seems strangely random that on
the ALTER PUBLICATION page those simple <replaceable> parameters have
been split by the SET clause.
e.g the current order is like:
1. name
2. table_name
3. column_name
4. schema_name
5. SET ( publication_parameter [= value] [, ... ] )
6. new_owner
7. new_name
~~~
I felt it would make more sense for all the simple replaceable
parameters to be kept together:
1. name
2. table_name
3. column_name
4. schema_name
5. new_owner
6. new_name
7. SET ( publication_parameter [= value] [, ... ] )
======
Kind Regards,
Peter Smith.
Fujitsu Australia
On Fri, Jul 24, 2026 at 3:44 PM Peter Smith <smithpb2250@gmail.com> wrote:
I felt it would make more sense for all the simple replaceable
parameters to be kept together:
I'd already pushed the patch before seeing this email, but thanks!
If you think it's worth improving the ordering of those descriptions,
please feel free to work on it. Maybe it's better to discuss that at
separete thread. I also wonder whether other reference pages have
the same issue. For example, in the ALTER SERVER documentation,
OPTIONS (...) appears between new_version and new_owner, so it seems
to have a similar inconsistency.
Regards,
--
Fujii Masao
On Fri, Jul 24, 2026 at 5:10 PM Fujii Masao <masao.fujii@gmail.com> wrote:
On Fri, Jul 24, 2026 at 3:44 PM Peter Smith <smithpb2250@gmail.com> wrote:
I felt it would make more sense for all the simple replaceable
parameters to be kept together:I'd already pushed the patch before seeing this email, but thanks!
Thanks for pushing!.
If you think it's worth improving the ordering of those descriptions,
please feel free to work on it. Maybe it's better to discuss that at
separete thread. I also wonder whether other reference pages have
the same issue. For example, in the ALTER SERVER documentation,
OPTIONS (...) appears between new_version and new_owner, so it seems
to have a similar inconsistency.
Last week, I hadn't recognised any meaning for the parameter order. I
thought it was just ad-hoc. But, after looking at a couple more pages
like:
[1]: https://www.postgresql.org/docs/devel/sql-droppublication.html
[2]: https://www.postgresql.org/docs/devel/sql-createtable.html
It seems like there is some attempt to keep the parameters in roughly
the order that they appear in the synopsis.
So, I'm going to leave this alone now.
======
[1]: https://www.postgresql.org/docs/devel/sql-droppublication.html
[2]: https://www.postgresql.org/docs/devel/sql-createtable.html
Kind Regards,
Peter Smith.
Fujitsu Australia.