pgsql: Remove pointless const qualifiers from function arguments in the

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove pointless const qualifiers from function arguments in the
Date: 2011-06-22 09:25:17
Message-ID: E1QZJgT-0006c1-JW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove pointless const qualifiers from function arguments in the SSI code.
As Tom Lane pointed out, "const Relation foo" doesn't guarantee that you
can't modify the data the "foo" pointer points to. It just means that you
can't change the pointer to point to something else within the function,
which is not very useful.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5da417f7c4b2adb5b2aa4d6c86354f8de87dcde9

Modified Files
--------------
src/backend/storage/lmgr/predicate.c | 94 ++++++++++++++++-----------------
src/include/storage/predicate.h | 26 +++++-----
2 files changed, 59 insertions(+), 61 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-06-22 10:55:35 Re: [COMMITTERS] pgsql: Make the visibility map crash-safe.
Previous Message Robert Haas 2011-06-22 03:05:57 pgsql: Make the visibility map crash-safe.