Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH0S4-0004pJ-G7 for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 10:09:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oH0S3-0003nn-4h for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 10:09:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH0S2-0003nY-QR for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 10:09:06 +0000 Received: from shared-aos97.rev.nazwa.pl ([85.128.253.97]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH0Rz-0002QM-2m for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 10:09:05 +0000 X-Virus-Scanned: by amavisd-new using ClamAV (6) X-Spam-Flag: NO X-Spam-Score: -0.999 X-Spam-Level: X-Spam-Status: No, score=-0.999 tagged_above=-10 tests=[ALL_TRUSTED=-1, HTML_MESSAGE=0.001] autolearn=disabled Received: from poczta.nazwa.pl (shared-akm18.rev.nazwa.pl [85.128.143.18]) by server534939.nazwa.pl (Postfix) with ESMTP id B32371BD670 for ; Thu, 28 Jul 2022 12:08:59 +0200 (CEST) MIME-Version: 1.0 Date: Thu, 28 Jul 2022 12:08:59 +0200 From: karol.malinowski@trustedeyes.pl To: pgsql-general@lists.postgresql.org Subject: pg_dump query failed User-Agent: Cloud Mail Message-ID: X-Sender: karol.malinowski@trustedeyes.pl Content-Type: multipart/alternative; boundary="=_91ef05713049137fc3eac60f7bfb4275" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=_91ef05713049137fc3eac60f7bfb4275 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi all, last week backup of my one database stops with error like below: "pg_dump: [archiver (db)] query failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. pg_dump: [archiver (db)] query was: SELECT l.oid, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid = l.lomowner) AS rolname, (SELECT pg_catalog.array_agg(acl ORDER BY row_n) FROM (SELECT acl, row_n FROM pg_catalog.unnest(coalesce(l.lomacl,pg_catalog.acldefault('L',l.lomowner))) WITH ORDINALITY AS perm(acl,row_n) WHERE NOT EXISTS ( SELECT 1 FROM pg_catalog.unnest(coalesce(pip.initprivs,pg_catalog.acldefault('L',l.lomowner))) AS init(init_acl) WHERE acl = init_acl)) as foo) AS lomacl, (SELECT pg_catalog.array_agg(acl ORDER BY row_n) FROM (SELECT acl, row_n FROM pg_catalog.unnest(coalesce(pip.initprivs,pg_catalog.acldefault('L',l.lomowner))) WITH ORDINALITY AS initp(acl,row_n) WHERE NOT EXISTS ( SELECT 1 FROM pg_catalog.unnest(coalesce(l.lomacl,pg_catalog.acldefault('L',l.lomowner))) AS permp(orig_acl) WHERE acl = orig_acl)) as foo) AS rlomacl, NULL AS initlomacl, NULL AS initrlomacl FROM pg_largeobject_metadata l LEFT JOIN pg_init_privs pip ON (l.oid = pip.objoid AND pip.classoid = 'pg_largeobject'::regclass AND pip.objsubid = 0) " Additional info: PostgreSQL 9.6.8 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit database size 220GB System CentOS 7 I am not sure how to recognize the problem. -- Karol Malinowski Operation Manager 22-118-90-30 | karol.malinowski@trustedeyes.pl Trustedeyes ul. Fasolowa 13A, lok.7, Warszawa 02-482 | https://trustedeyes.pl --=_91ef05713049137fc3eac60f7bfb4275 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hi all,

last week backup of my one database stops with error like below:

"pg_dump: [archiver (db)] query failed: server closed the connection une= xpectedly
This probably means the server terminated abnormally
be= fore or while processing the request.
pg_dump: [archiver (db)] query w= as: SELECT l.oid, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid =3D l.= lomowner) AS rolname, (SELECT pg_catalog.array_agg(acl ORDER BY row_n) FROM= (SELECT acl, row_n FROM pg_catalog.unnest(coalesce(l.lomacl,pg_catalog.acl= default('L',l.lomowner))) WITH ORDINALITY AS perm(acl,row_n) WHERE NOT EXIS= TS ( SELECT 1 FROM pg_catalog.unnest(coalesce(pip.initprivs,pg_catalog.acld= efault('L',l.lomowner))) AS init(init_acl) WHERE acl =3D init_acl)) as foo)= AS lomacl, (SELECT pg_catalog.array_agg(acl ORDER BY row_n) FROM (SELECT a= cl, row_n FROM pg_catalog.unnest(coalesce(pip.initprivs,pg_catalog.acldefau= lt('L',l.lomowner))) WITH ORDINALITY AS initp(acl,row_n) WHERE NOT EXISTS (= SELECT 1 FROM pg_catalog.unnest(coalesce(l.lomacl,pg_catalog.acldefault('L= ',l.lomowner))) AS permp(orig_acl) WHERE acl =3D orig_acl)) as foo) AS rlom= acl, NULL AS initlomacl, NULL AS initrlomacl FROM pg_largeobject_metadata l= LEFT JOIN pg_init_privs pip ON (l.oid =3D pip.objoid AND pip.classoid =3D = 'pg_largeobject'::regclass AND pip.objsubid =3D 0) "


Additional info:

PostgreSQL 9.6.8 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 201= 50623 (Red Hat 4.8.5-16), 64-bit

database size 220GB

System CentOS 7

I am not sure how to recognize the problem.

--
= Karol Malinowski
Operation Manager
22-118-90-30 | karol.malinowski@trustedeyes.pl

Trustedeyes
ul. Fasolowa 13A, lok.7, Warszawa 02-482 | h= ttps://trustedeyes.pl
--=_91ef05713049137fc3eac60f7bfb4275--