]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Expand comment for isset_offset.
authorNathan Bossart <nathan@postgresql.org>
Mon, 24 Mar 2025 20:47:02 +0000 (15:47 -0500)
committerNathan Bossart <nathan@postgresql.org>
Mon, 24 Mar 2025 20:47:02 +0000 (15:47 -0500)
commit7d559c8580f722dc40f2c34573e53e33626679e0
tree65ce043e01afc83c55ab52c29aede20bfc6937da
parentaea916fe555a351fe20bf31d56f5f0d027d9db61
Expand comment for isset_offset.

This field was added in commit 0164a0f9ee to provide a way to
determine whether a storage parameter was explicitly set for the
relation or if it just picked up the default value.  In most cases,
this can be accomplished by giving the storage parameter a special
out-of-range default value (e.g., the
autovacuum_vacuum_insert_threshold storage parameter defaults to
-2), but this approach doesn't work in all cases.  For example, a
Boolean storage parameter cannot be given an out-of-range default,
so we need another way to discover the source of its value.

Reported-by: "David G. Johnston" <david.g.johnston@gmail.com>
Reviewed-by: "David G. Johnston" <david.g.johnston@gmail.com>
Discussion: https://postgr.es/m/CAKFQuwYKtEUYKS%2B18gRs-xPhn0qOJgM2KGyyWVCODHuVn9F-XQ%40mail.gmail.com
src/include/access/reloptions.h