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 1oH3rs-0006zD-LQ for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 13:48:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oH3rq-0006Q4-LA for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 13:47:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH3rq-0006Pp-96 for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 13:47:58 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oH3rn-0006RJ-Mj for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 13:47:57 +0000 Received: by mail-oi1-x22c.google.com with SMTP id u9so2435869oiv.12 for ; Thu, 28 Jul 2022 06:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=jxFGXB6T0Cwua2uw0zNmJDWiAjo/Bd2EOIZBd9uBGfA=; b=QFDXAsuWMUcxO2hIS6+RCPLdOT9C75+NpXH+F698gAkoWfXHWakyMWRGOqWITXu/wU ZZOUVmlShSqIAp2DBoyu8jphYuN2t4rGBQvOFLRp1qGI7YDWlcs5qD6tU3SxEjErrfEf 4OYc7vSfumdgUnFQSc/KVh7LvEOMIhfXeeI4LyzgU1AAkS3TVkI/93oGCAzOR+4N0mEG TAWX1jXTGMussgksVQ3pZnkvSlBT1T5eAdGIeIjEykpd408Z6fsG3kFMHwzOnWM2RjqE ozas45u11aGqS/XO0NYLMK/xsIM65F64w/h1/Y4enagRZR98NeRmDHYdqSxQT4ueAg1K d6mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=jxFGXB6T0Cwua2uw0zNmJDWiAjo/Bd2EOIZBd9uBGfA=; b=myni8KXeeGjV/l083t9tfC8DQpE3eC8kXgmdowhJAAFPEq4kO24in6QpHAlsNBs+QE /vM7JjoINTs3WZ5gnKeWOgLjc7W+bY1Wr6O7g5sJrOd/R5cp36DC54xFEW3hInC4KnF8 qkM3dmbW9WxQM7x6AN04DYRPUVwB52pGF6dji7S1IGp/Qm5dtv1z/QUMdaAMjZ3F3yuH HzZg+09x+5bNaGUE0/QVmFxsPDxCC/69dXV81R7dp2fHMacLbNWReYh6UCj9QpNUXRH9 nK5wK9kQ/kYiUhpuLiCOn48paOs7E1N8ME75u1CkfDMsJBr6VoOnM7wRawG5rkYOm8f1 JCnw== X-Gm-Message-State: AJIora8xdnVFst15lqIkN0CA8Zpxmo0+7qJ9wWw7jE80ab9t70gotKoi UBQ+vgDdFjuiO3oY09fRw/x0hKee4Rs= X-Google-Smtp-Source: AGRyM1skLght/Cr/X3LzEtiB4zKDE9+9aA6zQs15oesx1FwkBEKrVZrvpEamoN5CYi9hOL02bIpP2g== X-Received: by 2002:a05:6808:13cd:b0:33a:9794:8e82 with SMTP id d13-20020a05680813cd00b0033a97948e82mr3897927oiw.150.1659016073460; Thu, 28 Jul 2022 06:47:53 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id a30-20020a544e1e000000b00338869042fdsm281207oiy.32.2022.07.28.06.47.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jul 2022 06:47:53 -0700 (PDT) Message-ID: <64222aad-d91f-9001-ec20-c5b0b8132bae@gmail.com> Date: Thu, 28 Jul 2022 08:47:52 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: pg_dump query failed Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Ron In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/28/22 05:08, karol.malinowski@trustedeyes.pl wrote: > > 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 > You will of course patch that to 9.6.24, right? > database size 220GB > > System CentOS 7 > > I am not sure how to recognize the problem. > I got these when there's a network hiccup while dumping a remote database. -- Angular momentum makes the world go 'round.