Turn a few 'validnsps' static variables into locals
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/reloptions.c | modified | +1 −1 |
| src/backend/commands/createas.c | modified | +1 −1 |
| src/backend/commands/tablecmds.c | modified | +2 −2 |
| src/backend/tcop/utility.c | modified | +1 −1 |
| src/include/access/reloptions.h | modified | +1 −1 |
Discussion
- Minor refactorings to eliminate some static buffers 8 messages · 2024-07-30 → 2024-08-06