pgsql: Do not allow *timestamp to be passed as NULL

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Do not allow *timestamp to be passed as NULL
Date: 2015-08-21 17:40:23
Message-ID: E1ZSqIh-0002Qs-DP@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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
------
master

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2015-08-21 17:41:23 Re: pgsql: In AlterRole, make bypassrls an int
Previous Message Alvaro Herrera 2015-08-21 17:35:19 Re: pgsql: In AlterRole, make bypassrls an int