pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Correct constness of a few variables.
Date: Tue, 16 Oct 2018 04:04:22 +0000
Message-ID: <E1gCGak-0002WC-1k@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/62649bad831fb69b5d9644470acc413a35cddea6

Modified Files
--------------
src/backend/commands/event_trigger.c             | 4 ++--
src/backend/foreign/foreign.c                    | 6 +++---
src/backend/libpq/pqcomm.c                       | 4 ++--
src/backend/libpq/pqmq.c                         | 2 +-
src/backend/replication/basebackup.c             | 4 ++--
src/backend/storage/lmgr/generate-lwlocknames.pl | 2 +-
src/backend/utils/adt/cash.c                     | 4 ++--
src/include/libpq/libpq.h                        | 2 +-
src/include/storage/lwlock.h                     | 2 +-
9 files changed, 15 insertions(+), 15 deletions(-)



Message-ID: <E1gCGak-0002WC-1k@gemulon.postgresql.org>
Permalink:  ../E1gCGak-0002WC-1k@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gCGak-0002WC-1k@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Correct constness of a few variables.
  In-Reply-To: <E1gCGak-0002WC-1k@gemulon.postgresql.org>
  References: <E1gCGak-0002WC-1k@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox