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