Re: [BUGS] BUG #2712: could not fsync segment: Permission

2006-11-08 Thread Magnus Hagander
It seems to me that it's not been included in b3. Tom?

//Magnus 

 -Original Message-
 From: Thomas H. [mailto:[EMAIL PROTECTED] 
 Sent: den 8 november 2006 12:59
 To: Magnus Hagander
 Cc: pgsql-bugs@postgresql.org
 Subject: Re: [BUGS] BUG #2712: could not fsync segment: Permission
 
 magnus, has this fix made it into the 8.2b3 codebase? at 
 least it fixed 1 of my 3 problems ;-)
 
 regards,
 thomas
 
 - Original Message -
 From: Magnus Hagander [EMAIL PROTECTED]
 To: Thomas H. [EMAIL PROTECTED]
 Sent: Monday, October 30, 2006 1:21 PM
 Subject: RE: [BUGS] BUG #2712: could not fsync segment: Permission
 
 
 Yeah, IIRC it was only for the xlog stuff.
 
 //Magnus
 
  -Original Message-
  From: Thomas H. [mailto:[EMAIL PROTECTED]
  Sent: den 30 oktober 2006 13:21
  To: Magnus Hagander
  Subject: Re: [BUGS] BUG #2712: could not fsync segment: Permission
 
  the fsync error still appears:
  2006-10-30 13:14:52 [4896] LOG:  42501: could not fsync
  segment 0 of relation 1663/3964774/6554576: Permission denied
  2006-10-30 13:14:52 [4896] LOCATION:  mdsync, md.c:785
  2006-10-30 13:14:52 [4896] ERROR:  XX000: storage sync failed
  on magnetic
  disk: Permission denied
  2006-10-30 13:14:52 [4896] LOCATION:  smgrsync, smgr.c:888
 
  the patch is for the xlog rename error / lockup, right?
 
  i'll try to test if the xlog lockup is fixed by the patch
  later this evening when doing a bulk data load.
 
  regards,
  thomas
 
  - Original Message -
  From: Magnus Hagander [EMAIL PROTECTED]
  To: Thomas H. [EMAIL PROTECTED]
  Sent: Monday, October 30, 2006 12:49 PM
  Subject: RE: [BUGS] BUG #2712: could not fsync segment: Permission
 
 
  That's permission denied. Did you by any chanc eunpack tghe 
 EXE into a
  different directory and then move it into place?
 
  Hmm. It may be in the ZIP, but isn't in the MSI. I'll talk to
  Dave about
  getting it out of the ZIP.
 
  //Magnus
 
 
   -Original Message-
   From: Thomas H. [mailto:[EMAIL PROTECTED]
   Sent: den 30 oktober 2006 12:49
   To: Magnus Hagander
   Subject: Re: [BUGS] BUG #2712: could not fsync segment: Permission
  
   -
   C:\Program Files\PostgreSQL\8.2beta1\binpg_ctl start -D
   D:\DB\PostgreSQL-8.2\data Server startet could not open
   process token: error code 5
   -
  
   does this help?
  
   FYI: postmaster.exe still is (was) in the current beta2 
 zip file...
  
   cheers,
   thomas
  
   - Original Message -
   From: Magnus Hagander [EMAIL PROTECTED]
   To: Thomas H. [EMAIL PROTECTED]
   Sent: Monday, October 30, 2006 12:37 PM
   Subject: RE: [BUGS] BUG #2712: could not fsync segment: Permission
  
  
   I didn't *think* so - it should have no changes affecting
   that. Can you
   start it manually frmot he commandprmopt using pg_ctl and see
   if you get
   a different error msg on that?
  
   WRT postmaster.exe, you can just remove that file, it's not used
   anymore. And it's not installed by the current MSI
  installer anymore.
  
   //Magnus
  
-Original Message-
From: Thomas H. [mailto:[EMAIL PROTECTED]
Sent: den 30 oktober 2006 00:18
To: Magnus Hagander
Subject: Re: [BUGS] BUG #2712: could not fsync segment: 
 Permission
   
hmm thats what i did - b2 is running here all the time (so
pg_ctl really is v8.2b2). still, replacing didn't work. so
what i meant by build-dependent is, that the new patched
8.2b2 postgres.exe might also need a newer pg_ctl than the
one that comes with the b2 package?
   
cheers,
thomas
   
- Original Message -
From: Magnus Hagander [EMAIL PROTECTED]
To: Thomas H. [EMAIL PROTECTED]
Sent: Sunday, October 29, 2006 10:37 PM
Subject: RE: [BUGS] BUG #2712: could not fsync segment: 
 Permission
   
   
Hi!
   
Yeah, it might be versio ndependent. If you can, please
   first install
8.2beta2 and *then* replace the files. That's the version I
patched and
used.
   
//Magnus
   
 -Original Message-
 From: Thomas H. [mailto:[EMAIL PROTECTED]
 Sent: Sunday, October 29, 2006 10:35 PM
 To: Magnus Hagander
 Subject: Re: [BUGS] BUG #2712: could not fsync segment:
  Permission

 hi magnus

 sorry for directly writing to you - don't want to bother the
 others with my noise ;-)

 unfortunately it cannot even start with the replaced files.
 (don't mind the service name - i updated from b1 to b2
 without changing folder/service names)

 -
 The PostgreSQL Database Server 8.2beta1 service is starting.
 The PostgreSQL Database Server 8.2beta1 service could not
be started.
 A system error has occurred.
 System error 1067 has occurred.
 The process terminated unexpectedly.
 -

 the eventlog says:
 pg_ctl: konnte postgres Programmdatei nicht finden (which
 means: pg_ctl: could not locate postgres file)

 

Re: [BUGS] BUG #2712: could not fsync segment: Permission

2006-11-08 Thread Tom Lane
Magnus Hagander [EMAIL PROTECTED] writes:
 It seems to me that it's not been included in b3. Tom?

I'm waiting for some report of whether it fixes the problems?

regards, tom lane

---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster


Re: [BUGS] BUG #2712: could not fsync segment: Permission

2006-11-08 Thread Thomas H.

Magnus Hagander [EMAIL PROTECTED] writes:

It seems to me that it's not been included in b3. Tom?


I'm waiting for some report of whether it fixes the problems?


voilĂ :


Sent: Tuesday, October 31, 2006 7:23 AM
Subject: Re: [BUGS] xlog lockup patch (was: BUG #2712: could not fsync 
segment: Permission)


i've loaded 1gb of data without any xlog-problems, whereas with the 8.2b2
executable it locked up after ~100mb. the xlog-files are cycling...

if i need to test for some specific behaviour let me know.



after using the patched b2 executable, the db system never locked up again, 
and no xlog error messages in the logs either.


the other problem with locked files within the data directories is 
unaffected by the patch, obviously - but as that does not lock up the 
system, its not that severe (but still scary ;-))


regards,
thomas 




---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating at

   http://www.postgresql.org/about/donate


Re: [BUGS] ERROR: failed to build any 4-way joins SQL state: XX000, PostgreSQL

2006-11-08 Thread JEAN-PIERRE PELLETIER

This is just to confirm that 8.2 beta3 fixes that problem.

Thanks again,
Jean-Pierre Pelletier


From: Tom Lane [EMAIL PROTECTED]
To: JEAN-PIERRE PELLETIER [EMAIL PROTECTED]
CC: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] ERROR: failed to build any 4-way joins SQL state: 
XX000, PostgreSQL 8.2 beta1 Date: Tue, 24 Oct 2006 13:51:31 -0400


JEAN-PIERRE PELLETIER [EMAIL PROTECTED] writes:
 I have a query that throws ERROR: failed to build any 4-way joins

Fixed --- thanks for the report!  (This didn't make beta2, but will
be in the next one.)

regards, tom lane




---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
  choose an index scan if your joining column's datatypes do not
  match


Re: [BUGS] BUG #2712: could not fsync segment: Permission

2006-11-08 Thread Tom Lane
I wrote:
 It might be interesting to think about not requiring the ControlFileLock
 to be held while making new WAL segments.  I think the only reason it
 does that is to ensure that link/rename failure can be treated as a hard
 error (because no one could have beat us to the filename), but we're
 already having to back off that stance for Windows ...

Just for the archives: I looked into doing this, and realized that the
reason we use a lock here is that on platforms without working link()
we use rename() to emplace new WAL segments.  And rename() is defined
to unlink any existing file of the target name, which would be
completely unsafe to do.

On platforms with link() we could probably get away without a lock,
but I'm disinclined to introduce that much of a platform-specific
difference in behavior when we don't have to.

regards, tom lane

---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?

   http://www.postgresql.org/docs/faq