pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Turner <armtuk@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: hubert.lubaczewski@eo.pl
Cc: pgsql-performance@postgresql.org
Subject: Re: profiling postgresql queries?
Date: Tue, 12 Apr 2005 10:18:31 -0400
Message-ID: <33c6269f05041207182473d08b@mail.gmail.com> (raw)
In-Reply-To: <15425.1113315053@sss.pgh.pa.us>
References: <20050412104643.GB11445@eo.pl>
	<15425.1113315053@sss.pgh.pa.us>

Speaking of triggers...

Is there any plan to speed up plpgsql tiggers?  Fairly simple
crosstable insert triggers seem to slow my inserts to a crawl.

Is the best thing just to write triggers in C (I really don't want to
put this stuff in the application logic because it really doesn't
belong there).

Alex Turner
netEconomist

On Apr 12, 2005 10:10 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> hubert lubaczewski <hubert.lubaczewski@eo.pl> writes:
> > and it made me wonder - is there a way to tell how much time of backend
> > was spent on triggers, index updates and so on?
> 
> In CVS tip, EXPLAIN ANALYZE will break out the time spent in each
> trigger.  This is not in any released version, but if you're desperate
> you could load up a play server with your data and test.
> 
>                         regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>



view thread (6+ messages)  latest in thread

Message-ID: <33c6269f05041207182473d08b@mail.gmail.com>
Permalink:  ../33c6269f05041207182473d08b@mail.gmail.com/
Also on:    postgresql.org/message-id/33c6269f05041207182473d08b@mail.gmail.com

 · 

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: armtuk@gmail.com, tgl@sss.pgh.pa.us, hubert.lubaczewski@eo.pl
  Subject: Re: profiling postgresql queries?
  In-Reply-To: <33c6269f05041207182473d08b@mail.gmail.com>

* 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