Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 93076B5DF8F for ; Mon, 30 May 2011 17:12:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 34224-04-5 for ; Mon, 30 May 2011 20:12:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.endcrypt.com (mail.endcrypt.com [74.205.105.202]) by mail.postgresql.org (Postfix) with ESMTP id 8CB07B5DF9F for ; Mon, 30 May 2011 17:12:06 -0300 (ADT) Received: from core.home (pool-96-227-80-201.phlapa.fios.verizon.net [96.227.80.201]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.endcrypt.com (Postfix) with ESMTP id 5F60631BF5; Mon, 30 May 2011 16:00:45 +0000 (UTC) Date: Mon, 30 May 2011 12:00:43 -0400 From: Greg Sabino Mullane To: pgsql-bugs@postgresql.org Subject: Unlogged tables cannot be truncated twice Message-ID: <20110530160043.GC3012@core.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="2/5bycvrmDh4d1IB" Content-Disposition: inline X-PGP-Key: http://www.gtsm.com/Greg_Sabino_Mullane.key.html User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/221 X-Sequence-Number: 30360 --2/5bycvrmDh4d1IB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Wow, this one took a bit to narrow down. Here's the failing case: # create unlogged table foo (a text); CREATE TABLE # begin; BEGIN #* truncate table foo; TRUNCATE TABLE #* truncate table foo; ERROR: could not create file "base/19131/19183_init": File exists Very reproducible. The column types matter: if the only column=20 is an INT, for example, the problem does not occur. --=20 Greg Sabino Mullane greg@endpoint.com End Point Corporation PGP Key: 0x14964AC8 --2/5bycvrmDh4d1IB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iEYEAREDAAYFAk3jvysACgkQvJuQZxSWSsgGrgCfazmXysg314Z3wFFBAcxkjaHP UAMAoPQxg9M2Ejxgr7B4pOcADrhik9kW =UaQd -----END PGP SIGNATURE----- --2/5bycvrmDh4d1IB--