| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Constify numeric.c. |
| Date: | 2017-09-11 20:45:03 |
| Message-ID: | E1drVZn-00015i-Bc@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Constify numeric.c.
This allows the compiler/linker to move the static variables to a
read-only segment. Not all the signature changes are necessary, but
it seems better to apply const in a consistent manner.
Reviewed-By: Tom Lane
Discussion: https://postgr.es/m/20170910232154.asgml44ji2b7lv3d@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c1898c3e1e235ae35b4759d233253eff221b976a
Modified Files
--------------
src/backend/utils/adt/numeric.c | 212 +++++++++++++++++++++-------------------
1 file changed, 111 insertions(+), 101 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2017-09-11 20:51:26 | pgsql: pg_receivewal: Add --endpos option |
| Previous Message | Tom Lane | 2017-09-11 20:24:55 | pgsql: Prefer argument name over "$n" for the refname of a plpgsql argu |