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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 00c61a7) | patch
psql: Fix some scan-build warnings
2021年10月12日 19:14:50 +0000 (21:14 +0200)
2021年10月12日 19:20:29 +0000 (21:20 +0200)
commit 390edeeb570c01de1a14e2985ffed96de001e42e
psql: Fix some scan-build warnings

A repeated complaint was that scan-build thought that if the \timing
setting changes during processing of a query, the post-processing
might read garbage time values. This is probably not possible right
now, but it's not entirely inconceivable given the code structure. So
silence this warning with small restructuring that makes this more
robust. The other warnings were a few dead stores that are easy to
remove.

Discussion: https://www.postgresql.org/message-id/2570e2ae-fa0f-aac9-f72f-bb59a9983a20@enterprisedb.com
src/bin/psql/common.c diff | blob | blame | history
src/bin/psql/copy.c diff | blob | blame | history
src/bin/psql/describe.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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