pgsql: Better fix for misuse of Float8GetDatumFast().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Better fix for misuse of Float8GetDatumFast().
Date: 2015-03-28 17:56:43
Message-ID: E1YbuyR-000428-RZ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Better fix for misuse of Float8GetDatumFast().

We can use that macro as long as we put the value into a local variable.
Commit 735cd6128 was not wrong on its own terms, but I think this way
looks nicer, and it should save a few cycles on 32-bit machines.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2c33e0fbceb01d0ecd78330feef1315682c64bc4

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-03-29 17:07:05 pgsql: Minor code cleanups in pgbench expression support.
Previous Message Andrew Dunstan 2015-03-28 15:12:07 pgsql: Add a pager_min_lines setting to psql