pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexandru Coseru <alexandru.coseru@totaltelecom.ro>
Cc: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Regex performance issue
Date: Sat, 02 Dec 2006 23:05:12 -0500
Message-ID: <12526.1165118712@sss.pgh.pa.us> (raw)
In-Reply-To: <024601c71675$81277560$3cb16956@alex>
References: <030b01c71651$984577c0$8300a8c0@tridecap.com>
	<01ea01c71653$438254e0$3cb16956@alex>
	<4571F856.7090808@enterprisedb.com>
	<022c01c7165f$17f49e80$3cb16956@alex>
	<4571FFA6.6070804@enterprisedb.com>
	<024601c71675$81277560$3cb16956@alex>

"Alexandru Coseru" <alexandru.coseru@totaltelecom.ro> writes:
> Anyway , anybody has a clue why this regex is that CPU intensive ?

The EXPLAIN result you posted offers *no* evidence that the regexp is
CPU intensive.  All you know is that it took 850+ msec to fetch 5200
rows from disk and apply the regexp filter to them.  There's no evidence
here that that was CPU time and not I/O time.

			regards, tom lane



view thread (13+ messages)  latest in thread

Message-ID: <12526.1165118712@sss.pgh.pa.us>
Permalink:  ../12526.1165118712@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12526.1165118712@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alexandru.coseru@totaltelecom.ro, heikki@enterprisedb.com
  Subject: Re: Regex performance issue
  In-Reply-To: <12526.1165118712@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox