Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYmbb-0003RV-H0 for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Jan 2018 05:37:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYmbZ-0000qK-Lu for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Jan 2018 05:37:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eYmbZ-0000qA-DH for pgsql-bugs@lists.postgresql.org; Tue, 09 Jan 2018 05:37:45 +0000 Received: from mail-it0-x243.google.com ([2607:f8b0:4001:c0b::243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eYmbW-0000ed-Lj for pgsql-bugs@postgresql.org; Tue, 09 Jan 2018 05:37:44 +0000 Received: by mail-it0-x243.google.com with SMTP id d137so10463337itc.2 for ; Mon, 08 Jan 2018 21:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Vk6EN3WrNN9s4f4Aq3OSZdv9OTlhUNNeIiIPfXslJYc=; b=lBbIxHMMdzINCMEVbnBBvuxdonoNezMHAC0euGXQUyTqZjRcZ1guPUA9Ggd1j5jEZh i7N5NWQzIyBPjWPSguPO8wIDv/YKbv8nLZkDUOSP2Ac6OXLh8dYd/V7uk9fekM/YVlOC 0YqZO4hTZzgA33+LkfDTvd6NrjxG/ZhiA8kGYJ0dynwZlEZL6pP0cp0Qz/NZDyPh2/Mq maBp7TuzinyLcakYx+nE0Ivy7hV6hBJSDAjmvaXp5LGy7nic8tssJ72jtMh2/KDsZzTe +LoCQqKjTsvVwLJDD1r69bSOJuojKMdSzSopc9JyyBrk8Ma7UDrofyAschc9YVoZY3uE avxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Vk6EN3WrNN9s4f4Aq3OSZdv9OTlhUNNeIiIPfXslJYc=; b=EIQ57PRP9RrFOkIfL3RvsjSsJuFSbS4cbW0kM81OJqKycmvCIK7i0c/xLFDGI1pdk3 3lLBQR0bY/NGkkvgniYMbXDEmVVN8y0zRuSlvXeHhTxY/Rlwr9aD6zgH/WvwRS9i8r7Q 7r4/AT3HOE0J1IQGgGSpJHAOsA4Doc64PU9bwHsKXucMgIKZomSbdExxErHDPNIjsa2Q 4p7zsKJSJEpM1Nr8oCq5yi/yQYQLxwEEIWA5ayIWib2x654dkIVFATnJ4JaQN4j/0W9v bmGBM+ucqBRudAeFbbQlM+psLOWNKDSM9pGCuAzIQn/ciWW42ZSkPp4g/nsEfMJU0Pck c+Sw== X-Gm-Message-State: AKGB3mJDySMUc/Oon5gN/aHEcTDkKj9ivpqz8K2HFtt33cZCOJuFYrJV O7x/lkqur1lJOocn4HGtG30= X-Google-Smtp-Source: ACJfBotI0dnfEzGnPNs1ixGsu/Toslwd6cPm8MspGLrbhpyBDMJaI9COLWOKZY0liXWOeSXakYZ6TA== X-Received: by 10.36.108.10 with SMTP id w10mr14610851itb.7.1515476260600; Mon, 08 Jan 2018 21:37:40 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id j12sm8183615itb.37.2018.01.08.21.37.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 21:37:39 -0800 (PST) Date: Tue, 9 Jan 2018 14:37:35 +0900 From: Michael Paquier To: tony.reix@atos.net, pgsql-bugs@postgresql.org, Noah Misch Subject: Re: BUG #14983: ERROR: duplicate key value violates unique constraint "oid_tbl_oid_key" Message-ID: <20180109053735.GJ76418@paquier.xyz> References: <20171218153618.25743.45604@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7vLGWvOrvbSM0Ba8" Content-Disposition: inline In-Reply-To: <20171218153618.25743.45604@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --7vLGWvOrvbSM0Ba8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2017 at 03:36:18PM +0000, PG Bug reporting form wrote: > Errors appearing in logs: > 1) src/bin/pgbench/tmp_check/log/001_pgbench_main.log : > 2017-12-18 16:07:39.268 CET [12976136] t/001_pgbench.pl LOG: execute > P0_0: INSERT INTO oid_tbl SELECT FROM generate_series(1,1000); > 2017-12-18 16:07:39.268 CET [13041676] t/001_pgbench.pl ERROR: duplic= ate > key value violates unique constraint "oid_tbl_oid_key" > 2017-12-18 16:07:39.268 CET [13041676] t/001_pgbench.pl DETAIL: Key > (oid)=3D(100291) already exists. > 2017-12-18 16:07:39.268 CET [13041676] t/001_pgbench.pl STATEMENT:=20 > INSERT INTO oid_tbl SELECT FROM generate_series(1,1000); > 2017-12-18 16:07:39.285 CET [12386468] t/001_pgbench.pl LOG: execute > P0_0: INSERT INTO oid_tbl SELECT FROM generate_series(1,1000); This comes from 001_pgbench.pl, which aims at testing LWLock and spinlock concurrency. This visibly points to something going wrong with what happens on AIX for XLC 13. The buildfarm has a couple of animals owned by Noah though those are using XLC 12. My gut feeling is that if you stress enough a Postgres instance in one run you should get a high reproducibility rate. Could you test manually something close to what the TAP test does? 1) Create a PG instance and initialize it with this schema: CREATE UNLOGGED TABLE oid_tbl () WITH OIDS; ALTER TABLE oid_tbl ADD UNIQUE (oid); 2) Create a pgbench script with this query: INSERT INTO oid_tbl SELECT FROM generate_series(1,1000); 3) Run pgbench with --protocol=3Dprepared, but with a high number of clients in priority, a longer time, or a higher number of transactions. If you are looking for better support on this platform with this compiler combination, I would highly recommend setting up a buildfarm animal. This would allow for faster bug fixes and detection of problems. -- Michael --7vLGWvOrvbSM0Ba8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpUVR8ACgkQnvQgOdby QH2bbxAAiq/elhOTpghpzuGvw1cTcQImXwDRRVlGZyRxTx9iNLXL12ssfGiLPy87 yZ8WX+TS7w3tAgug7gf2fy4buC0Cfd+6++b7Twwlmpmrb9WW74b9+rFjj3WRvtyq n7AcwsiRXDM6OL7Bxd5g5aeCV+PCd7QwvGJvwdYX0zAV7AX+3n9TmvZnUqYPIP75 bspNd2mZTxLHvCT7fMrkt9wsZGk3RosTIrJWYIdOyI4kaJ6YwN2rot39o+PDqPsG ZP4opVWStFlGDg6fBMXDPMKLr8IGgnduGh/jADoZZqcdz6FgAiiAe2POOquapu5Y h9q+CVgVhffSlfS/Gt7yTNxo3pMkJO/rskH9JM9O+xTyFaYA7Z/ftw1vGI9rqnBo T/7y2Ojfh5UR58oPufHTRfigYd1bbrWLdAhgcQM/cceeJ+qRxmXcwUwdoz/XVq7J uQbAw+ssdeo9nPVajXUSEcEOzt0cxY9X7kFq0LzshbecMdw4Re4bNltRiylcKYn8 DvM3Ds6NjuLJeOG4VwyF0uKXt1J6pD155iECh0B64IO+xqYWQIAeFff+zxCQciBh g0E00Px2rRvhpY18qcAvmnNeMyPX0gAsFVmGyDHjosT+f4qs12fIM6/ROvwxcx+j 5ghu5nibvyyk02nx8wHASnCshj3qCgWjAkxy+SHZEeZ6HpPEUmY= =vZK9 -----END PGP SIGNATURE----- --7vLGWvOrvbSM0Ba8--