Re: PostgreSQL profiling?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Pilosov <alex(at)pilosoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL profiling?
Date: 2001-02-03 18:21:58
Message-ID: 2380.981224518@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex Pilosov <alex(at)pilosoft(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Denni 2001-02-03 18:59:46 php & postgresql data type
Previous Message Fred Yankowski 2001-02-03 18:12:50 Re: CygIPC 1.08 Source Code : Where ?