Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dO4DN-0005Fi-Da for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Jun 2017 15:40:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dO4DN-00041c-0N for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Jun 2017 15:40:13 +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 1dO4DL-00040P-VV for pgsql-hackers@postgresql.org; Thu, 22 Jun 2017 15:40:12 +0000 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dO4DI-0006kh-KI for pgsql-hackers@postgresql.org; Thu, 22 Jun 2017 15:40:11 +0000 Received: by mail-qk0-x236.google.com with SMTP id d14so15213525qkb.1 for ; Thu, 22 Jun 2017 08:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=El0H/xmr9Yg/d5dM8SftsflZFaDjQr2kESmUtBFygVU=; b=FmuHtNcB4T2XR0X6u9MkDvpuqkYMuC5EChDVUifHpRya3TQasr3Jjtf3tlCy10hdm3 D9S8AVitV1kxFOBEXgjRUKtDLRNM81AoWkuQO433QzImgPNfhgRblrxsvnke0PEVesfk m1D4RysA1fTUv74XGKQoodWaMRgkluoUnn2IcKAkyNyP3bJQmf7Fuz/jGXB0hYW+K2f6 gwffD/4uPcSUosPGO1831QhTF/BDMDIzNDdklbhCfuDK0LO6H7cgnY8Iwu1q11vYI8ZU DQmc+Aaw3oKfZ1lQ6agCjIKrLUWf1vdOlKZIpRo6TSXcsY1oVgJBzlFDPm3Rh75qQxTJ 6W3g== 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:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=El0H/xmr9Yg/d5dM8SftsflZFaDjQr2kESmUtBFygVU=; b=D+QoHmYMa9/n8lw83Xg7/vD2iWI3krdRmaPcRHihGkkg/n+NByI9jz4853Df7hwuSL cWiroecCBWw8rg1JJvsPvqGLqsG8gnl+Cf3D6K53FReyeahWyvUzwXMG+IF7JNPq+05N UIvoHpwwJC3NKlSos/+GjF/mCFbCV0QyCmmSrbkeJnhRjqyt2K74h/HmMdh7B+gBmJho iTOLibj37TRl2n0nIvEnxfroLU2l3+GPPCoISd90kxn6zr+aj6hGice3R6Qf04bUByuY CZW2BthTktjkncx69N7mHhHUkyDT45brgOkBHWVl+2ZKsK/ZrvpbndIEEXDfCBmSaBtr n60g== X-Gm-Message-State: AKS2vOyNuOgQ7FIjhuX1at0+lx8O3xOLrOywBGPhlX02TyptiOxy3nm4 y5i/QXxgIWIeW6yr X-Received: by 10.55.75.68 with SMTP id y65mr3668467qka.27.1498146006999; Thu, 22 Jun 2017 08:40:06 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.57.115.10]) by smtp.gmail.com with ESMTPSA id a45sm1426180qtb.16.2017.06.22.08.40.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jun 2017 08:40:06 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id C6D256F3; Thu, 22 Jun 2017 11:40:04 -0400 (-04) Date: Thu, 22 Jun 2017 11:40:04 -0400 From: Alvaro Herrera To: Kunshchikov Vladimir Cc: "pgsql-hackers@postgresql.org" Subject: Re: [patch] pg_dump/pg_restore zerror() and strerror() mishap Message-ID: <20170622154004.e6bcw6juk2pwhngb@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1498120508308.9826@infotecs.ru> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Kunshchikov Vladimir wrote: Hi, > our testing team has noticed apparently wrong backup/restore error messages like this: > > > pg_restore: [compress_io] could not read from input file: success > pg_dump: [directory archiver] could not write to output file: success > > > > Such "success" messages are caused by calling strerror() after gzread()/gzwrite() failures. Yeah, I've complained about this before but never got around to actually fixing it. Thanks for the patch, I'll see about putting it on all branches soon. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers