]> granicus.if.org Git - postgresql/commit
Correct constness of a few variables.
authorAndres Freund <andres@anarazel.de>
Tue, 16 Oct 2018 03:45:30 +0000 (20:45 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 16 Oct 2018 04:01:14 +0000 (21:01 -0700)
commit62649bad831fb69b5d9644470acc413a35cddea6
treee0d99a747615337e515290eb634c2f74fb2df2b6
parentc5257345ef61922468cd9abd887c3cb6c38792cb
Correct constness of a few variables.

This allows the compiler / linker to mark affected pages as read-only.

There's other cases, but they're a bit more invasive, and should go
through some review. These are easy.

They were found with
objdump -j .data -t src/backend/postgres|awk '{print $4, $5, $6}'|sort -r|less

Discussion: https://postgr.es/m/20181015200754.7y7zfuzsoux2c4ya@alap3.anarazel.de
src/backend/commands/event_trigger.c
src/backend/foreign/foreign.c
src/backend/libpq/pqcomm.c
src/backend/libpq/pqmq.c
src/backend/replication/basebackup.c
src/backend/storage/lmgr/generate-lwlocknames.pl
src/backend/utils/adt/cash.c
src/include/libpq/libpq.h
src/include/storage/lwlock.h