pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <greg@endpoint.com>
To: pgsql-bugs@postgresql.org
Subject: Unlogged tables cannot be truncated twice
Date: Mon, 30 May 2011 12:00:43 -0400
Message-ID: <20110530160043.GC3012@core.home> (raw)

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 
is an INT, for example, the problem does not occur.

-- 
Greg Sabino Mullane greg@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8

view thread (16+ messages)  latest in thread

Message-ID: <20110530160043.GC3012@core.home>
Permalink:  ../20110530160043.GC3012@core.home/
Also on:    postgresql.org/message-id/20110530160043.GC3012@core.home

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: greg@endpoint.com
  Subject: Re: Unlogged tables cannot be truncated twice
  In-Reply-To: <20110530160043.GC3012@core.home>
  References: <20110530160043.GC3012@core.home>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox