]> granicus.if.org Git - postgresql/commit
Do not allow *timestamp to be passed as NULL
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 21 Aug 2015 17:36:54 +0000 (14:36 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 21 Aug 2015 17:36:54 +0000 (14:36 -0300)
commitd6968e625770d021c8db15094ea732b40be2c5aa
treee326dc854818a74f2bb2e5633d2eee610381f880
parent19446280fce0b9aebef40c6b5390cf1170c5c770
Do not allow *timestamp to be passed as NULL

The code had bugs that would cause crashes if NULL was passed as that
argument (originally intended to mean not to bother returning its
value), and after inspection it turns out that nothing seems interested
in the case that *ts is NULL anyway.  Therefore, remove the partial
checks intended to support that case.

Author: Michael Paquier
though I didn't include a proposed Assert.

Backpatch to 9.5.
src/backend/access/transam/commit_ts.c