Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XqYro-00078d-27 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Nov 2014 02:50:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XqYrm-0005gw-1R for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Nov 2014 02:50:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XqU4g-0007aD-6i for pgsql-bugs@postgresql.org; Mon, 17 Nov 2014 21:43:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XqU4c-0005V1-Vc for pgsql-bugs@postgresql.org; Mon, 17 Nov 2014 21:43:04 +0000 MIME-Version: 1.0 Subject: BUG #11991: dangerous action of pg_dump To: pgsql-bugs@postgresql.org From: tomek@rai.pl Date: Mon, 17 Nov 2014 21:42:11 +0000 Message-ID: <20141117214211.2475.5375@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 11991 Logged by: Tomasz Kimaczynski Email address: tomek@rai.pl PostgreSQL version: 9.2.9 Operating system: Windows 2003,2008,2012 & FreeBSD Description: Recently, I realized pg_dump dangerous activity. In case when no dump is made because of any error, created file size is 0 bytes. In case when this file is used in simple backup procedure which make copy of dump file - 0 bytes files overwrite earlier correct dump files. And we have no copies. Conclusion: pg_dump can not create 0 bytes files - it should create nothing. I think it's important. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs