pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Todd A. Cook <tcook@blackducksoftware.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14990: hashint4() <> hashint8() for small negative values, causing hash joins to fail
Date: Thu, 21 Dec 2017 12:43:18 -0500
Message-ID: <d6748962-723a-6f5e-48b9-c77ce4fd21f8@blackducksoftware.com> (raw)
In-Reply-To: <26089.1513877504@sss.pgh.pa.us>
References: <20171221165800.826.12026@wrigleys.postgresql.org>
	<26089.1513877504@sss.pgh.pa.us>

On 12/21/17 12:31, Tom Lane wrote:
> =?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
>> However, for small-magnitude negative numbers, hashint8() and hashint4() do
>> not produce the same results:
> 
> Hm, it works as expected for me.  What compiler and compile options
> did you use?

$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)


CONFIGURE = '--prefix=/home/tac/tmp/pg10' '--with-icu' '--with-perl' '--with-python' '--with-tcl' '--with-tclconfig=/usr/lib64' '--with-openssl' '--with-pam' '--with-gssapi' '--with-includes=/usr/include' '--with-libraries=/usr/lib64' '--enable-nls' '--enable-dtrace' '--with-uuid=e2fs' '--with-libxml' '--with-libxslt' '--with-ldap' '--with-selinux' '--with-systemd' '--with-system-tzdata=/usr/share/zoneinfo' '--enable-debug'
CC = gcc
CPPFLAGS = -DFRONTEND -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2
CFLAGS_SL = -fPIC
LDFLAGS = -L../../src/common -L/usr/lib64 -Wl,--as-needed -Wl,-rpath,'/home/tac/tmp/pg10/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lpthread -lselinux -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lrt -lcrypt -ldl -lm
VERSION = PostgreSQL 10.1

Also, I built from HEAD (as of yesterday afternoon) on REL_10_STABLE.

-- todd




view thread (4+ messages)  latest in thread

Message-ID: <d6748962-723a-6f5e-48b9-c77ce4fd21f8@blackducksoftware.com>
Permalink:  ../d6748962-723a-6f5e-48b9-c77ce4fd21f8@blackducksoftware.com/
Also on:    postgresql.org/message-id/d6748962-723a-6f5e-48b9-c77ce4fd21f8@blackducksoftware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tcook@blackducksoftware.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #14990: hashint4() <> hashint8() for small negative values, causing hash joins to fail
  In-Reply-To: <d6748962-723a-6f5e-48b9-c77ce4fd21f8@blackducksoftware.com>
  References: <20171221165800.826.12026@wrigleys.postgresql.org> <26089.1513877504@sss.pgh.pa.us> <d6748962-723a-6f5e-48b9-c77ce4fd21f8@blackducksoftware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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