postgresql/src/backend
Tom Lane 44ed65a545 Avoid use of float arithmetic in bipartite_match.c.
Since the distances used in this algorithm are small integers (not more
than the size of the U set, in fact), there is no good reason to use float
arithmetic for them.  Use short ints instead: they're smaller, faster, and
require no special portability assumptions.

Per testing by Greg Stark, which disclosed that the code got into an
infinite loop on VAX for lack of IEEE-style float infinities.  We don't
really care all that much whether Postgres can run on a VAX anymore,
but there seems sufficient reason to change this code anyway.

In passing, make a few other small adjustments to make the code match
usual Postgres coding style a bit better.
2015-08-23 13:02:18 -04:00
..
access Do not allow *timestamp to be passed as NULL 2015-08-21 14:36:54 -03:00
bootstrap pgindent run for 9.5 2015-05-23 21:35:49 -04:00
catalog Allow pg_create_physical_replication_slot() to reserve WAL. 2015-08-11 12:34:31 +02:00
commands Fix typo in C comment. 2015-08-23 10:38:57 -05:00
executor Avoid O(N^2) behavior when enlarging SPI tuple table in spi_printtup(). 2015-08-21 20:32:11 -04:00
foreign Code review for foreign/custom join pushdown patch. 2015-05-10 14:36:36 -04:00
lib Avoid use of float arithmetic in bipartite_match.c. 2015-08-23 13:02:18 -04:00
libpq Fix incorrect order of lock file removal and failure to close() sockets. 2015-08-02 14:55:03 -04:00
main Revoke support for strxfrm() that write past the specified array length. 2015-07-08 20:44:21 -04:00
nodes Rename 'cmd' to 'cmd_name' in CreatePolicyStmt 2015-08-21 08:22:22 -04:00
optimizer Undo mistaken tightening in join_is_legal(). 2015-08-12 21:19:03 -04:00
parser Rename 'cmd' to 'cmd_name' in CreatePolicyStmt 2015-08-21 08:22:22 -04:00
po Translation updates 2015-06-28 23:56:55 -04:00
port Rely on inline functions even if that causes warnings in older compilers. 2015-08-05 18:19:52 +02:00
postmaster Fix incorrect order of lock file removal and failure to close() sockets. 2015-08-02 14:55:03 -04:00
regex Fix some possible low-memory failures in regexp compilation. 2015-08-12 00:48:11 -04:00
replication Don't use function definitions looking like old-style ones. 2015-08-15 17:25:00 +02:00
rewrite RLS: Keep deny policy when only restrictive exist 2015-08-03 15:32:49 -04:00
snowball Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
storage Don't use function definitions looking like old-style ones. 2015-08-15 17:25:00 +02:00
tcop Add ALTER OPERATOR command, for changing selectivity estimator functions. 2015-07-14 18:17:55 +03:00
tsearch pgindent run for 9.5 2015-05-23 21:35:49 -04:00
utils Improve whitespace 2015-08-22 21:54:35 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile AIX: Link the postgres executable with -Wl,-brtllib. 2015-07-15 21:00:26 -04:00
nls.mk Translation updates 2015-02-01 23:23:40 -05:00