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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4c831ae) | patch
Fix bogus Name assignment in CreateStatistics
Tue, 6 Mar 2018 16:17:13 +0000 (13:17 -0300)
Tue, 6 Mar 2018 16:20:40 +0000 (13:20 -0300)
commit 1ffb63a2a1767c3dd0c7611bed6383bd37bfbce6
Fix bogus Name assignment in CreateStatistics

Apparently, it doesn't work to use a plain cstring as a Name datum: you
may end up having random bytes because of failing to zero the bytes
after the terminating 0,円 as indicated by valgrind. I introduced this
bug in 5564c1181548, so backpatch this fix to REL_10_STABLE, like that
commit.

While at it, fix a slightly misleading comment, pointed out by David
Rowley.
src/backend/commands/statscmds.c diff | blob | blame | history
src/backend/parser/parse_utilcmd.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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