Re: How to optimize insert statements ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Christian Leclerc" <cleclerc(at)ilog(dot)fr>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to optimize insert statements ?
Date: 2007-07-24 14:33:29
Message-ID: 9177.1185287609@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Christian Leclerc" <cleclerc(at)ilog(dot)fr> writes:
> I'm encountering a performance issue with insert statements.

It looks to me like your trigger is the entire cause of the slowness.
I think you would be well advised to get rid of it and use a serial
column (ie a sequence object) instead of a handmade, poorly performing
substitute for sequences.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Claude Chaloux 2007-07-24 18:15:53 DEFERABLE vs. NOT DEFERABLE constraints
Previous Message Christian Leclerc 2007-07-24 10:12:57 How to optimize insert statements ?