git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a890ad2) | patch
Turn a few 'validnsps' static variables into locals
Tue, 6 Aug 2024 20:03:43 +0000 (23:03 +0300)
Tue, 6 Aug 2024 20:03:43 +0000 (23:03 +0300)
commit 1e35951e71d37ab6716fa55ba399fbe6df4a7417
Turn a few 'validnsps' static variables into locals

There was no need for these to be static buffers, local variables work
just as well. I think they were marked as 'static' to imply that they
are read-only, but 'const' is more appropriate for that, so change
them to const.

To make it possible to mark the variables as 'const', also add 'const'
decorations to the transformRelOptions() signature.

Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/54c29fb0-edf2-48ea-9814-44e918bbd6e8@iki.fi
src/backend/access/common/reloptions.c diff | blob | blame | history
src/backend/commands/createas.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/tcop/utility.c diff | blob | blame | history
src/include/access/reloptions.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /