pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pginfo <pginfo@t1.unisoftbg.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Trigger performance
Date: Thu, 22 Jan 2004 12:10:56 -0500
Message-ID: <12833.1074791456@sss.pgh.pa.us> (raw)
In-Reply-To: <400FECD6.B835AF9C@t1.unisoftbg.com>
References: <400F9955.3C0FD784@t1.unisoftbg.com>
	<12241.1074785874@sss.pgh.pa.us>
	<400FECD6.B835AF9C@t1.unisoftbg.com>

pginfo <pginfo@t1.unisoftbg.com> writes:
> In wich case will this trigger work faster if write it in "C"?

Given that the dominant part of the time will be spent down inside SPI
in either case, I doubt you will be able to see much difference.  You
need to think about how to optimize the invoked query, not waste your
time recoding the wrapper around it.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <12833.1074791456@sss.pgh.pa.us>
Permalink:  ../12833.1074791456@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12833.1074791456@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, pginfo@t1.unisoftbg.com
  Subject: Re: Trigger performance
  In-Reply-To: <12833.1074791456@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