Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUH7o-0005tV-5H for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Sep 2014 15:26:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUH7n-0007Ug-Lu for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Sep 2014 15:26:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUH7n-0007Ua-09 for pgsql-bugs@postgresql.org; Wed, 17 Sep 2014 15:26:31 +0000 Received: from mail-ie0-f173.google.com ([209.85.223.173]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XUH7j-0002zQ-DZ for pgsql-bugs@postgresql.org; Wed, 17 Sep 2014 15:26:29 +0000 Received: by mail-ie0-f173.google.com with SMTP id tr6so1999085ieb.32 for ; Wed, 17 Sep 2014 08:26:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=ODLtKoxCdyC7AFqlVKTSvYoi2wAxYH5+TmthJny11N8=; b=QpON7UuVO4jM8VAzTuGNegKl8BV+RHEL42SM5ICR/rot7Hu/Y1Yt1bHVsjxk7O2UKA nVkUDHCW33G1MZANr3E+LnFdGJs6aWQBi+hhVHyydV4m210qEhEgoE92jSovYjsABysD BFrA07S23KgOvAlM72iI3xrMa84ooMCQ8W/dpWYrWZJNO9Fg/7E38EGg2Kv5+4QEpCtL 6RHJNecpa8N6RPZmrmZ/R3mJV7BtN/2Z7hvGaeyDPEOTeGstE5G6aghU9d5Z1BOhSeol NI6tC35fmeGHSVng64idjozFIvCtTz8vXQpextm3ZlkDQ7aNUxSpK2CJFOD2oSToRlKg Nfcw== X-Gm-Message-State: ALoCoQk1yW1zCvlXc/Lvbt43jMHqUjhTvqvzoSH0Chazj1gpJq80Vp0ZGJLLWJ/Q+M1BUHdOg/7J X-Received: by 10.50.122.70 with SMTP id lq6mr39647366igb.8.1410967585767; Wed, 17 Sep 2014 08:26:25 -0700 (PDT) Received: from pryzbyj ([50.244.222.1]) by mx.google.com with ESMTPSA id c7sm691489igx.11.2014.09.17.08.26.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Sep 2014 08:26:24 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 2FF2E80281B; Wed, 17 Sep 2014 10:26:23 -0500 (CDT) Date: Wed, 17 Sep 2014 10:26:23 -0500 From: Justin Pryzby To: pgsql-bugs@postgresql.org Subject: Re: pg_dump -Fd fails to detect ENOSPC Message-ID: <20140917152623.GA13240@telsasoft.com> References: <20140916165715.GA4560@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140916165715.GA4560@telsasoft.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.8 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Seems to be a simple unchecked return value...I'm testing with this, but won't endeavor to propose a formal patch. pg_dump.c if (copybuf) { int ret2; ret2=WriteData(fout, copybuf, ret); if (ret!=ret2) { exit_horribly(NULL, "error writing, (%d %d)\n", ret, ret2); } PQfreemem(copybuf); } -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs