DOCS - Question about pg_sequences.last_value notes

Started by Peter Smithalmost 2 years ago3 messageshackers

Thread notes

1 note#docs
hackorum-bot#docs
hackorum-bot
1 day ago

@global #docs

#docs
Jump to latest
#1Peter Smith
smithpb2250@gmail.com

Hi,

I noticed the pg_sequences system-view DOCS page [1]https://www.postgresql.org/docs/devel/view-pg-sequences.html has a note about
the 'last_value' field. But the note is not within the row for that
field. Indeed, it is not even within the table.

Is it deliberate? Apparently, this changed in commit 3cb2f13 [2]https://github.com/postgres/postgres/commit/3cb2f13ac500983c9c6b1eef3b3c2091c26f3040, so
CC-ing author Nathan.

My attached patch just moved the paragraph into the row where I felt
it belonged.

======
[1]: https://www.postgresql.org/docs/devel/view-pg-sequences.html
[2]: https://github.com/postgres/postgres/commit/3cb2f13ac500983c9c6b1eef3b3c2091c26f3040

Kind Regards,
Peter Smith.
Fujitsu Australia

Attachments:

t51057_1
v1-0001-DOCS-pg_sequuences.last_value.patchapplication/octet-stream; name=v1-0001-DOCS-pg_sequuences.last_value.patchDownload+22-24
#2Nathan Bossart
nathandbossart@gmail.com
In reply to: Peter Smith (#1)
Re: DOCS - Question about pg_sequences.last_value notes

On Thu, Feb 13, 2025 at 03:59:45PM +1100, Peter Smith wrote:

I noticed the pg_sequences system-view DOCS page [1] has a note about
the 'last_value' field. But the note is not within the row for that
field. Indeed, it is not even within the table.

Is it deliberate? Apparently, this changed in commit 3cb2f13 [2], so
CC-ing author Nathan.

Yes, this was intentional. I felt this was too much information to squeeze
into the table, and so I followed the example of pg_user_mappings [0]https://www.postgresql.org/docs/devel/view-pg-user-mappings.html and
placed it below.

[0]: https://www.postgresql.org/docs/devel/view-pg-user-mappings.html

--
nathan

#3Peter Smith
smithpb2250@gmail.com
In reply to: Nathan Bossart (#2)
Re: DOCS - Question about pg_sequences.last_value notes

On Fri, Feb 14, 2025 at 8:35 AM Nathan Bossart <nathandbossart@gmail.com> wrote:

On Thu, Feb 13, 2025 at 03:59:45PM +1100, Peter Smith wrote:

I noticed the pg_sequences system-view DOCS page [1] has a note about
the 'last_value' field. But the note is not within the row for that
field. Indeed, it is not even within the table.

Is it deliberate? Apparently, this changed in commit 3cb2f13 [2], so
CC-ing author Nathan.

Yes, this was intentional. I felt this was too much information to squeeze
into the table, and so I followed the example of pg_user_mappings [0] and
placed it below.

[0] https://www.postgresql.org/docs/devel/view-pg-user-mappings.html

OK. Thanks for the explanation.

======
Kind Regards,
Peter Smith.
Fujitsu Australia