Re: [BUGS] BUG #4941: pg_stat_statements crash - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [BUGS] BUG #4941: pg_stat_statements crash
Date
Msg-id 20090727034858.GI10327@alvh.no-ip.org
Whole thread Raw
In response to Re: [BUGS] BUG #4941: pg_stat_statements crash  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] BUG #4941: pg_stat_statements crash
List pgsql-hackers
Tom Lane escribió:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Itagaki Takahiro escribi�:
> >> Here is a patch to fix pg_stat_statements on Windows.
> 
> > Hmm, it seems the comment just above the patched line needs to be fixed.
> 
> I looked at that and decided it was OK as-is.  How do you want to
> change it?

The reason that it doesn't need locks is not that there's no other
process running, but that it was already initialized, in the case when
found is false.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #4941: pg_stat_statements crash
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #4941: pg_stat_statements crash