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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8422656) | patch
Replace gratuitous memmove() with memcpy()
2024年9月11日 13:15:49 +0000 (15:15 +0200)
2024年9月11日 13:21:36 +0000 (15:21 +0200)
commit 8b5c6a54c4396bb9daeb9ec5d9cbb0d3deedcbe3
Replace gratuitous memmove() with memcpy()

The index access methods all had similar code that copied the
passed-in scan keys to local storage. They all used memmove() for
that, which is not wrong, but it seems confusing not to use memcpy()
when that would work. Presumably, this was all once copied from
ancient code and never adjusted.

Discussion: https://www.postgresql.org/message-id/flat/f8c739d9-f48d-4187-b214-df3391ba41ab@eisentraut.org
contrib/bloom/blscan.c diff | blob | blame | history
src/backend/access/brin/brin.c diff | blob | blame | history
src/backend/access/gin/ginscan.c diff | blob | blame | history
src/backend/access/gist/gistscan.c diff | blob | blame | history
src/backend/access/hash/hash.c diff | blob | blame | history
src/backend/access/nbtree/nbtree.c diff | blob | blame | history
src/backend/access/spgist/spgscan.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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