[BUGS] Unlogged tables cannot be truncated twice

2011-05-30 Thread Greg Sabino Mullane
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 m

Re: [BUGS] Failed pgbench: setrandom invalid maximum number 0

2011-05-30 Thread Greg Sabino Mullane
> > but the problem seems to only occur in >= 8.4. But it's also Good news and bad news. The good news is that it started occuring on all versions of pgbench, which makes it more likely to be a problem with my system rather than pgbench (although that error message sure is inscrutable). The ba

Re: [BUGS] 9.1 plperlu bug with null rows in trigger hash

2011-05-30 Thread Alvaro Herrera
Excerpts from Alvaro Herrera's message of sáb may 28 01:06:42 -0400 2011: > Excerpts from Alex Hunsaker's message of vie may 27 12:14:25 -0400 2011: > > On Mon, May 23, 2011 at 20:08, Greg Sabino Mullane > > wrote: > > > On Mon, May 23, 2011 at 05:04:40PM -0600, Alex Hunsaker wrote: > > > ... > >

Re: [BUGS] Failed pgbench: setrandom invalid maximum number 0

2011-05-30 Thread Greg Sabino Mullane
> setrandom: invalid maximum number 0 Okay, nevermind, user error: some other process was deleting a row from pgbench_branches, and the pgbench.c happily set scale to 0 from the 'select count(*) from pgbench_branches' query inside of it, until it gives the totally not-helpful error seen above

Re: [BUGS] Unlogged tables cannot be truncated twice

2011-05-30 Thread Alvaro Herrera
Excerpts from Greg Sabino Mullane's message of lun may 30 12:00:43 -0400 2011: > 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:

Re: [BUGS] Unlogged tables cannot be truncated twice

2011-05-30 Thread Andres Freund
On Monday, May 30, 2011 11:18:20 PM Alvaro Herrera wrote: > Excerpts from Greg Sabino Mullane's message of lun may 30 12:00:43 -0400 2011: > > Wow, this one took a bit to narrow down. Here's the failing case: > > > > # create unlogged table foo (a text); > > CREATE TABLE > > # begin; > > BEGIN >

Re: [BUGS] Unlogged tables cannot be truncated twice

2011-05-30 Thread Cédric Villemain
2011/5/31 Andres Freund : > On Monday, May 30, 2011 11:18:20 PM Alvaro Herrera wrote: >> Excerpts from Greg Sabino Mullane's message of lun may 30 12:00:43 -0400 > 2011: >> > Wow, this one took a bit to narrow down. Here's the failing case: >> > >> > # create unlogged table foo (a text); >> > CREAT

Re: [BUGS] Unlogged tables cannot be truncated twice

2011-05-30 Thread Andres Freund
On Tuesday, May 31, 2011 01:56:05 AM Cédric Villemain wrote: > I remove my own explanations as we conclude on the same thing. > Attached is the fix by adding a (!reindex) in the index.c if(). Thats imo wrong because it will break a plain REINDEX? I think one possible correct fix would be the atta

Re: [BUGS] Unlogged tables cannot be truncated twice

2011-05-30 Thread Andres Freund
On Tuesday, May 31, 2011 02:14:00 AM Andres Freund wrote: > On Tuesday, May 31, 2011 01:56:05 AM Cédric Villemain wrote: > > I remove my own explanations as we conclude on the same thing. > > Attached is the fix by adding a (!reindex) in the index.c if(). > > Thats imo wrong because it will break

Re: [BUGS] Unlogged tables cannot be truncated twice

2011-05-30 Thread Andres Freund
On Tuesday, May 31, 2011 02:35:58 AM Andres Freund wrote: > On Tuesday, May 31, 2011 02:14:00 AM Andres Freund wrote: > > On Tuesday, May 31, 2011 01:56:05 AM Cédric Villemain wrote: > > > I remove my own explanations as we conclude on the same thing. > > > Attached is the fix by adding a (!reindex

Re: [BUGS] Unlogged tables cannot be truncated twice

2011-05-30 Thread Alvaro Herrera
Excerpts from Andres Freund's message of lun may 30 20:47:49 -0400 2011: > On Tuesday, May 31, 2011 02:35:58 AM Andres Freund wrote: > > On Tuesday, May 31, 2011 02:14:00 AM Andres Freund wrote: > > > On Tuesday, May 31, 2011 01:56:05 AM Cédric Villemain wrote: > > > > I remove my own explanations

Re: [BUGS] 9.1 plperlu bug with null rows in trigger hash

2011-05-30 Thread Alex Hunsaker
On Mon, May 30, 2011 at 11:02, Alvaro Herrera wrote: > Excerpts from Alvaro Herrera's message of sáb may 28 01:06:42 -0400 2011: >> Excerpts from Alex Hunsaker's message of vie may 27 12:14:25 -0400 2011: >> > On Mon, May 23, 2011 at 20:08, Greg Sabino Mullane >> > wrote: >> > > On Mon, May 23,