pgsql: Do not allow *timestamp to be passed as NULL - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Do not allow *timestamp to be passed as NULL
Date
Msg-id E1ZSqIh-0002Qt-DU@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d6968e625770d021c8db15094ea732b40be2c5aa

Modified Files
--------------
src/backend/access/transam/commit_ts.c |   15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pgsql: In AlterRole, make bypassrls an int
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Do not allow *timestamp to be passed as NULL