Re: PostgreSQL profiling? - Mailing list pgsql-general

From Tom Lane
Subject Re: PostgreSQL profiling?
Date
Msg-id 2380.981224518@sss.pgh.pa.us
Whole thread Raw
In response to PostgreSQL profiling?  (Alex Pilosov <alex@pilosoft.com>)
Responses Re: PostgreSQL profiling?
List pgsql-general
Alex Pilosov <alex@pilosoft.com> writes:
> Have someone made effort to do profiling of pgsql during execution of
> certain things (inserts, selects, sorting, indices)?

Yes ...

> I have a feeling (based on stopping postgres from gdb periodically), that
> a lot of time is used in strcoll() (if table and index has string
> columns).
> Column in question is declared char(3).
> So, why's postgres collating anything at all?

Because textual comparisons are defined in terms of strcoll() if you've
enabled locale support.  There is no way around this; either don't use
locales or write a faster version of strcoll().

            regards, tom lane

pgsql-general by date:

Previous
From: Fred Yankowski
Date:
Subject: Re: CygIPC 1.08 Source Code : Where ?
Next
From: Denni
Date:
Subject: php & postgresql data type