Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gn6Yq-0005K2-Im for pgsql-general@arkaria.postgresql.org; Fri, 25 Jan 2019 18:50:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gn6Yn-0007rj-Jy for pgsql-general@arkaria.postgresql.org; Fri, 25 Jan 2019 18:50:37 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gn6Yn-0007rI-B6 for pgsql-general@lists.postgresql.org; Fri, 25 Jan 2019 18:50:37 +0000 Received: from chocolate.concordia.psi.br ([189.91.194.3]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gn6Yh-00066W-V5 for pgsql-general@postgresql.org; Fri, 25 Jan 2019 18:50:36 +0000 Received: from Marcio (unknown [186.226.37.77]) (Authenticated sender: marcio@zyontecnologia.com.br) by chocolate.concordia.psi.br (Postfix) with ESMTPA id 359661002DD9; Fri, 25 Jan 2019 16:50:25 -0200 (-02) From: =?utf-8?Q?M=C3=A1rcio_Ant=C3=B4nio_Sepp?= To: "'Adrian Klaver'" , References: <003c01d4b4da$d2c0ade0$784209a0$@com.br> In-Reply-To: Subject: RES: Postgresql Crasching Date: Fri, 25 Jan 2019 16:50:24 -0200 Message-ID: <004301d4b4de$d4a54f90$7defeeb0$@com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Content-Language: pt-br Thread-Index: AdS02z8Y+K9z+3RRRZm7HmyoSrT0KAAA35lA List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >=20 > On 1/25/19 10:21 AM, M=C3=A1rcio Ant=C3=B4nio Sepp wrote: > > > > Hi all, > > > > > > We are experiencing the follow error in last few weeks: > > > > Jan 25 16:03:51 FreeBSD11 kernel: pid 78639 (postgres), uid 770: = exited > on > > signal 11 (core dumped) > > Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-1] 2019-01-25 = 16:03:51.135 > -02 > > [73403] WARNING: terminating connection because of crash of another > server > > process > > Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-2] 2019-01-25 = 16:03:51.135 > -02 > > [73403] DETAIL: The postmaster has commanded this server process to = roll > > back the current transacti > > on and exit, because another server process exited abnormally and > possibly > > corrupted shared memory. > > Jan 25 16:03:51 FreeBSD11 postgres[73403]: [7-3] 2019-01-25 = 16:03:51.135 > -02 > > [73403] HINT: In a moment you should be able to reconnect to the > database > > and repeat your command. >=20 > What is the logs just before the above? Jan 25 16:01:55 FreeBSD11 postgres[71605]: [6-2] 2019-01-25 16:01:55.733 = -02 [71605] DETAIL: Key (tdoemp, codemp, codfil, origem, sercai, = numdoc, tdopes, codpes, datpar)=3D(1, 59 84305, 1, 55, 1, 160, 1, 5984305000107, 201901) is not present in table = "e026pag_p2019". Jan 25 16:01:55 FreeBSD11 postgres[71605]: [6-3] 2019-01-25 16:01:55.733 = -02 [71605] STATEMENT: COMMIT Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-1] 2019-01-25 16:02:35.184 = -02 [73403] ERROR: insert or update on table "e026par_p2019" violates = foreign key constraint "e026par_p 2019_tdoemp_fkey" Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-2] 2019-01-25 16:02:35.184 = -02 [73403] DETAIL: Key (tdoemp, codemp, codfil, origem, sercai, = numdoc, tdopes, codpes, datpar)=3D(1, 59 84305, 1, 55, 1, 160, 1, 5984305000107, 201901) is not present in table = "e026pag_p2019". Jan 25 16:02:35 FreeBSD11 postgres[73403]: [6-3] 2019-01-25 16:02:35.184 = -02 [73403] STATEMENT: COMMIT Jan 25 16:03:51 FreeBSD11 kernel: pid 78639 (postgres), uid 770: exited = on signal 11 (core dumped) > > > > This is our test machine and some days ago we try to increase memory = and > > vcpu, but the problem persist. > > > > > > Some information: > > root@FreeBSD11:~ # uname -a > > FreeBSD FreeBSD11.2 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu = Sep > 27 > > 08:16:24 UTC 2018 > > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC = amd64 > > > > > > root@FreeBSD11:~ # swapinfo -h > > Device 1K-blocks Used Avail Capacity > > /dev/da0s1b 4194268 0B 4.0G 0% > > > > > > root@FreeBSD11:~ # df -h > > Filesystem Size Used Avail Capacity Mounted on > > /dev/da0s1a 141G 13G 117G 10% / > > devfs 1.0K 1.0K 0B 100% /dev > > > > > > # select version(); > > PostgreSQL 11.0 on amd64-portbld-freebsd11.2, compiled by FreeBSD = clang > > version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0), = 64- > bit > >