pgsql: Fix uninitialized variable in transformTableLikeClause()

2023-04-11 Thread David Rowley
Fix uninitialized variable in transformTableLikeClause() process_notnull_constraints should be set to false until we discover a NOT NULL column. Discovered while running Valgrind. Discussion: https://postgr.es/m/caaphdvomyizvi1kw5wvdqmrzwswkd3f7n6qd+bbao6wteaw...@mail.gmail.com Branch -- m

pgsql: Fix uninitialized variable.

2022-02-20 Thread Heikki Linnakangas
Fix uninitialized variable. I'm very surprised the compiler didn't warn about it. But Coverity and Valgrind did. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/69639e2b5c12c6f1eafa9db1a6b7d16e6471ac61 Modified Files -- src/backend/access/transam/xlog.c

pgsql: Fix uninitialized variable from commit a4d75c86b.

2021-04-11 Thread Tom Lane
Fix uninitialized variable from commit a4d75c86b. The path for *exprs != NIL would misbehave, and likely crash, since pull_varattnos expects its last argument to be valid at call. Found by Coverity --- we have no coverage of this path in the regression tests. Branch -- master Details --

pgsql: Fix uninitialized-variable compiler warning induced by commit e4

2017-12-03 Thread Tom Lane
Fix uninitialized-variable compiler warning induced by commit e4128ee76. I'm a little bit astonished that anyone's compiler would have failed to complain about this. The compiler surely does not know that is_procedure means the function return value will be ignored. Branch -- master Details