Clarify deleting comments and security labels in synopsis
Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: pgsql-hackers@postgresql.org
Date: 2023-01-31T17:07:06Z
Lists: pgsql-hackers
Attachments
Hi Hackers,
A user on IRC was confused about how to delete a security label using
the `SECURITY LABLEL ON … IS …` command, and looking at the docs I can
see why.
The synopsis just says `IS 'label'`, which implies that it can only be a
string. It's not until you read the description for `label` that you
see "or `NULL` to drop the security label." I propose making the
synopsis say `IS { 'label' | NULL }` to make it clear that it can be
NULL as well. The same applies to `COMMENT ON … IS …`, which I've also
changed similarly in the attached.
- ilmari
Commits
-
Doc: clarify use of NULL to drop comments and security labels.
- c1827e9cd2d7 11.19 landed
- dbe294644380 12.14 landed
- 5fb1809eb966 13.10 landed
- 26da29409888 14.7 landed
- e4035a9ca49d 15.2 landed
- 856ca51a23b5 16.0 landed