git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c015ccb) | patch
Correct constness of system attributes in heap.c & prerequisites.
2018年10月16日 16:44:43 +0000 (09:44 -0700)
2018年10月16日 16:44:43 +0000 (09:44 -0700)
commit 02a30a09f9e57a29f7bda82f5f4bfc214eed3980
Correct constness of system attributes in heap.c & prerequisites.

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

There's a fair number of pre-requisite changes, to allow the const
properly be propagated. Most of consts were already required for
correctness anyway, just not represented on the type-level. Arguably
we could be more aggressive in using consts in related code, but..

This requires using a few of the types underlying typedefs that
removes pointers (e.g. const NameData *) as declaring the typedefed
type constant doesn't have the same meaning (it makes the variable
const, not what it points to).

Discussion: https://postgr.es/m/20181015200754.7y7zfuzsoux2c4ya@alap3.anarazel.de
src/backend/catalog/heap.c diff | blob | blame | history
src/backend/catalog/index.c diff | blob | blame | history
src/backend/executor/spi.c diff | blob | blame | history
src/backend/optimizer/util/plancat.c diff | blob | blame | history
src/backend/parser/parse_relation.c diff | blob | blame | history
src/backend/parser/parse_utilcmd.c diff | blob | blame | history
src/backend/utils/adt/expandedrecord.c diff | blob | blame | history
src/backend/utils/adt/name.c diff | blob | blame | history
src/include/catalog/heap.h diff | blob | blame | history
src/include/parser/parse_relation.h diff | blob | blame | history
src/include/utils/builtins.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /