diff options
author | Andres Freund <andres@anarazel.de> | 2018-10-16 12:05:50 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-10-16 12:05:50 -0700 |
commit | 93ca02e00560ad6553fbd8ebabb7d5349e98ade8 (patch) | |
tree | 6f6a0e025e4c59ab3520f45fc2e4a79139aad36c /src/backend/utils/adt/array_userfuncs.c | |
parent | d1211c63f010c4e0c22d6070872e80b8c8b4df82 (diff) | |
download | postgresql-93ca02e00560ad6553fbd8ebabb7d5349e98ade8.tar.gz postgresql-93ca02e00560ad6553fbd8ebabb7d5349e98ade8.zip |
Mark constantly allocated dest receiver as const.
This allows the compiler / linker to mark affected pages as read-only.
Doing so requires casting constness away, as CreateDestReceiver()
returns both constant and non-constant dest receivers. That's fine
though, as any modification of the statically allocated receivers
would already have been a bug (and would now be caught on some
platforms).
Discussion: https://postgr.es/m/20181015200754.7y7zfuzsoux2c4ya@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions