Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Heikki Linnakangas
Tom Lane wrote: > Heikki Linnakangas writes: >> No, it's a backend that's holding the file open, with FILE_SHARE_DELETE. > > If that's the only case we care about covering, then rename might be > enough. I was just wondering what it would take to solve the more > general problem of something hol

Re: [BUGS] need higher extra_float_digits value (3)

2009-09-09 Thread Robert Haas
On Wed, Sep 9, 2009 at 6:04 PM, Tom Lane wrote: > Keh-Cheng Chu writes: >> While 17 decimal digits are sufficient to guarantee the >> complete recovery of all 64-bit double values, some 32-bit >> reals actually require NINE significant figures. > > Hm, annoying.  Seems like we could do one of two

Re: [BUGS] need higher extra_float_digits value (3)

2009-09-09 Thread Tom Lane
Keh-Cheng Chu writes: > While 17 decimal digits are sufficient to guarantee the > complete recovery of all 64-bit double values, some 32-bit > reals actually require NINE significant figures. Hm, annoying. Seems like we could do one of two things: 1. Increase the max extra_float_digits value

[BUGS] need higher extra_float_digits value (3)

2009-09-09 Thread Keh-Cheng Chu
I have applications that require IEEE floating-point data to remain unchanged to the last bit after a dump/restore cycle. Currently on all our linux systems, pg_dump uses 8 significant figures (FLT_DIG + 2) to dump 32-bit reals and 17 significant figures (DBL_DIG + 2) to dump 64-bit doubles, wh

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Tom Lane
Heikki Linnakangas writes: > No, it's a backend that's holding the file open, with FILE_SHARE_DELETE. If that's the only case we care about covering, then rename might be enough. I was just wondering what it would take to solve the more general problem of something holding it open with the wrong

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Heikki Linnakangas
Tom Lane wrote: > Luke Koops writes: >> Heikki is proposing that the file be renamed before it is first >> deleted. > > Indeed, and what I'm saying is that that will still fail if some > unhelpful program is holding the file open without FILE_SHARE_DELETE. > Which is what I understood yo

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Luke Koops
My case is that a backend was holding the file open. It was not some other unhelpful program. That's why I had to write a program that held the file open with the same flags that postgres uses (including FILE_SHARE_DELETE). We have a process that wrote to the DB, and then for many days it only

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Tom Lane
Luke Koops writes: > Heikki is proposing that the file be renamed before it is first > deleted. Indeed, and what I'm saying is that that will still fail if some unhelpful program is holding the file open without FILE_SHARE_DELETE. Which is what I understood your case to be ...

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Luke Koops
Tom, If you first delete the file and it goes into deletion pending, then subsequent attempts to rename or delete will fail. Heikki is proposing that the file be renamed before it is first deleted. -Luke > -Original Message- > From: Tom Lane [mailto:t...@sss.pgh.pa.us]

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Tom Lane
Heikki Linnakangas writes: > One option is to rename the file before deleting it. I was under the impression that renaming would fail in the same cases where deletion fails, ie something else holding the file open ... regards, tom lane -- Sent via pgsql-bugs mailing lis

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Heikki Linnakangas
Luke Koops wrote: > For those of you who are still looking at this, I tried to reproduce the > issue by holding one of the WAL files open with another program (just opened > it with the cygwin build of less.exe for windows). That didn't do the trick. > It prevented unlink or rename from workin

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-09 Thread Luke Koops
For those of you who are still looking at this, I tried to reproduce the issue by holding one of the WAL files open with another program (just opened it with the cygwin build of less.exe for windows). That didn't do the trick. It prevented unlink or rename from working at all. I wrote a progr

Re: [BUGS] BUG #5045: java developer

2009-09-09 Thread Jim Mlodgenski
On Wed, Sep 9, 2009 at 5:41 AM, mahmoud badr wrote: > > The following bug has been logged online: > > Bug reference: 5045 > Logged by: mahmoud badr > Email address: alien_...@yahoo.com > PostgreSQL version: 8.4 > Operating system: windows > Description:java developer

[BUGS] BUG #5045: java developer

2009-09-09 Thread mahmoud badr
The following bug has been logged online: Bug reference: 5045 Logged by: mahmoud badr Email address: alien_...@yahoo.com PostgreSQL version: 8.4 Operating system: windows Description:java developer Details: when trying to create POJOs from Netbeans IDE they aren't c

Re: [BUGS] BUG #5044: error: message type 0x5a arrived from server while idle

2009-09-09 Thread Alvaro Herrera
vyouzhi escribió: > #!/usr/bin/env python > #coding=utf-8 > import _pg > import threading > > con = > _pg.connect(host='127.0.0.1',user='work',dbname='work',passwd='123',port=543 > 2) > > def link_url(): > global con > for i in range(100): > print i > stock_sql = "INSERT

Re: [BUGS] BUG #5043: Stored procedure returning different results for same arguments

2009-09-09 Thread Pavel Stehule
2009/9/9 Martin Edlman : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello, > >> please send function xfunc. Your code looks well. >> please try sql function >> ... >> has it same behave like plpgsql function? > > Yes, result is the same - it returns 2008-11-01 > > I made further investig

Re: [BUGS] BUG #5043: Stored procedure returning different results for same arguments

2009-09-09 Thread Martin Edlman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, > please send function xfunc. Your code looks well. > please try sql function > ... > has it same behave like plpgsql function? Yes, result is the same - it returns 2008-11-01 I made further investigation - it seems the problem is here betwee