pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Do not allow *timestamp to be passed as NULL 2+ messages / 1 participants [nested] [flat]
* pgsql: Do not allow *timestamp to be passed as NULL @ 2015-08-21 17:40 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2015-08-21 17:40 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Do not allow *timestamp to be passed as NULL @ 2015-08-21 17:40 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2015-08-21 17:40 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-08-21 17:40 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-08-21 17:40 pgsql: Do not allow *timestamp to be passed as NULL Alvaro Herrera <alvherre@alvh.no-ip.org> 2015-08-21 17:40 pgsql: Do not allow *timestamp to be passed as NULL Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox