Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Alexey Luchko
Hi! We've got the same issue with PostgreSQL 8.4.1 on 32 bit Windows 2003 Server RC2. Every minute the message pgstat wait timeout appears in Event Viewer / Application Log. We've tried to restart the service. It was looking like the service stopped successfully, but two postgres.exe

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Alvaro Herrera
Alexey Luchko wrote: We've tried to restart the service. It was looking like the service stopped successfully, but two postgres.exe processes left running. One of them was utilizing one core. It had no tcp connections in any state. It was C:/Program Files/PostgreSQL/8.4/bin/postgres.exe

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Alexey Luchko
On 16-12-2009 16:28, Alvaro Herrera wrote: Alexey Luchko wrote: We've tried to restart the service. It was looking like the service stopped successfully, but two postgres.exe processes left running. One of them was utilizing one core. It had no tcp connections in any state. It was C:/Program

Re: [BUGS] BUG #5242: ODBC driver v8.4.1 crashed

2009-12-16 Thread Robert Haas
On Wed, Dec 16, 2009 at 4:35 AM, Stefan Kaltenbrunner ste...@kaltenbrunner.cc wrote: updated the website with that wording - should be up on the next site reload. Thanks! ...Robert -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription:

Re: [BUGS] BUG #5244: Attempting to rollback to a savepoint after receiving an error with state 55000 the process hangs

2009-12-16 Thread Robert Haas
On Tue, Dec 15, 2009 at 11:18 PM, Philip Graham phi...@lightbox.org wrote: Robert Haas wrote: On Mon, Dec 14, 2009 at 11:15 PM, Philip Graham phi...@lightbox.org wrote: The following bug has been logged online: Bug reference:      5244 Logged by:          Philip Graham Email address:    

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Tom Lane
Alvaro Herrera alvhe...@commandprompt.com writes: Alexey Luchko wrote: postgres.exe!mdpostckpt+0x181b38 postgres.exe!mdpostckpt+0x18bbdb This stack trace seems bogus. The stats collector should not be calling mdpostckpt at all. Given the size of the offsets, it's pretty clear that it's not

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Magnus Hagander
On Wed, Dec 16, 2009 at 16:12, Tom Lane t...@sss.pgh.pa.us wrote: Alvaro Herrera alvhe...@commandprompt.com writes: Alexey Luchko wrote: postgres.exe!mdpostckpt+0x181b38 postgres.exe!mdpostckpt+0x18bbdb This stack trace seems bogus.  The stats collector should not be calling mdpostckpt at

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Robert Haas
On Wed, Dec 16, 2009 at 10:45 AM, Magnus Hagander mag...@hagander.net wrote: On Wed, Dec 16, 2009 at 16:12, Tom Lane t...@sss.pgh.pa.us wrote: Alvaro Herrera alvhe...@commandprompt.com writes: Alexey Luchko wrote: postgres.exe!mdpostckpt+0x181b38 postgres.exe!mdpostckpt+0x18bbdb This stack

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Alvaro Herrera
Robert Haas escribió: We should really take some of the vast quantity of really useful information that is in the wiki and try to index it somehow or incorporate it into the docs. I'm always learning about new pages that have good stuff on them, but I never seem to stumble across them

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Robert Haas
On Wed, Dec 16, 2009 at 11:05 AM, Alvaro Herrera alvhe...@commandprompt.com wrote: Robert Haas escribió: We should really take some of the vast quantity of really useful information that is in the wiki and try to index it somehow or incorporate it into the docs.  I'm always learning about new

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Alexey Luchko
On 16-12-2009 17:45, Magnus Hagander wrote: If that is so, the OP should follow: http://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Windows specifically the part about symbols. Which it certainly looks like :) How can I find the stats collector's

[BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Chris Travers
The following bug has been logged online: Bug reference: 5246 Logged by: Chris Travers Email address: chris.trav...@gmail.com PostgreSQL version: 8.1.18 Operating system: Fedora Linux 12 Description:Misleading/inconsistent SQLSTATE behavior Details: Hi all; I am

Re: [BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Kevin Grittner
Chris Travers chris.trav...@gmail.com wrote: I am noticing that that a failed database connection results in an unusable SQLSTATE in libpq, and a very different SQLSTATE than the backend registers. Well, if the client fails to connect to the server, I'm not sure how the server could

Re: [BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Chris Travers
On Wed, Dec 16, 2009 at 12:35 PM, Kevin Grittner kevin.gritt...@wicourts.gov wrote: Chris Travers chris.trav...@gmail.com wrote: I am noticing that that a failed database connection results in an unusable SQLSTATE in libpq, and a very different SQLSTATE than the backend registers. Well, if

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Magnus Hagander
On Wed, Dec 16, 2009 at 17:43, Alexey Luchko l...@ank-sia.com wrote: On 16-12-2009 17:45, Magnus Hagander wrote: If that is so, the OP should follow: http://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Windows specifically the part about symbols. Which

Re: [BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Tom Lane
Chris Travers chris.trav...@gmail.com writes: I am noticing that that a failed database connection results in an unusable SQLSTATE in libpq, and a very different SQLSTATE than the backend registers. For example, if a connection fails due to a database not found, the backend registers 3D000

Re: [BUGS] Invalid explain output for multi-plan statements

2009-12-16 Thread Robert Haas
On Mon, Dec 14, 2009 at 10:06 PM, Robert Haas robertmh...@gmail.com wrote: On Mon, Dec 14, 2009 at 12:59 PM, Robert Haas robertmh...@gmail.com wrote: The new explain formats break if you have a multi-query statement. I will fix this, unless someone else beats me to it. Proposed patch

Re: [BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Chris Travers
On Wed, Dec 16, 2009 at 1:39 PM, Tom Lane t...@sss.pgh.pa.us wrote: Chris Travers ch...@metatrontech.com writes: trying again.  Sorry for the duplicate. On Wed, Dec 16, 2009 at 1:12 PM, Tom Lane t...@sss.pgh.pa.us wrote: Exactly what frontend are you talking about here?  Because what this

Re: [BUGS] BUG #5244: Attempting to rollback to a savepoint after receiving an error with state 55000 the process hangs

2009-12-16 Thread Mark Kirkwood
Philip Graham wrote: The following bug has been logged online: Bug reference: 5244 Logged by: Philip Graham Email address: phi...@lightbox.org PostgreSQL version: 8.3.8 Operating system: Linux Description:Attempting to rollback to a savepoint after receiving an

Re: [BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Chris Travers
Hi Tom and everyone else; After significant additional research this is what I have turned up: 1) The problem was a problem in DBD::Pg which didn't quite succeed in setting the connection state to 08006. I have submitted a patch for that to the DBD::Pg project. 2) As of 8.1, tshark shows that

Re: [BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Tom Lane
Chris Travers ch...@metatrontech.com writes: 2) As of 8.1, tshark shows that the server does send the SQLSTATE to the client regarding why the login fails (for example 3D000 in the case of bad db name). Libpq as far as I can tell (from reading the code) doesn't do anything with this code.

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Craig Ringer
On 16/12/2009 11:55 PM, Robert Haas wrote: On Wed, Dec 16, 2009 at 10:45 AM, Magnus Hagandermag...@hagander.net wrote: On Wed, Dec 16, 2009 at 16:12, Tom Lanet...@sss.pgh.pa.us wrote: Alvaro Herreraalvhe...@commandprompt.com writes: Alexey Luchko wrote: postgres.exe!mdpostckpt+0x181b38

Re: [BUGS] pgstat wait timeout (by Robert Schnabel)

2009-12-16 Thread Robert Haas
On Wed, Dec 16, 2009 at 9:03 PM, Craig Ringer cr...@postnewspapers.com.au wrote: On 16/12/2009 11:55 PM, Robert Haas wrote: On Wed, Dec 16, 2009 at 10:45 AM, Magnus Hagandermag...@hagander.net  wrote: On Wed, Dec 16, 2009 at 16:12, Tom Lanet...@sss.pgh.pa.us  wrote: Alvaro

Re: [BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Chris Travers
Just to be clear (before I consider attempting a patch maybe I can hand off to someone else to double-check)... On Wed, Dec 16, 2009 at 5:31 PM, Tom Lane t...@sss.pgh.pa.us wrote: Yeah.  The problem is that the only infrastructure libpq has for returning individual error message fields (like

Re: [BUGS] BUG #5246: Misleading/inconsistent SQLSTATE behavior

2009-12-16 Thread Tom Lane
Chris Travers ch...@metatrontech.com writes: It looks like this could be added without a disruption to programmer interfaces, but it seems like any major change in this area would create binary compatibility issues (i.e. require recompile of linked software). Is this correct in what you mean