Re: Finalizing commit taking very long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Tom,

I can confirm that adding the indexes used by the deferred constraint
triggers solved the issue.

Thank you very much for your suggestions.

Best regards,

Giulio Cesare


On 10/24/07, Giulio Cesare Solaroli <giulio.cesare@xxxxxxxxx> wrote:
> On 10/24/07, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
> > "Giulio Cesare Solaroli" <giulio.cesare@xxxxxxxxx> writes:
> > > How can I try to isolate the trigger taking so long, in oder to
> > > understand which is/are the missing index(es)?
> >
> > Try SET CONSTRAINTS ALL IMMEDIATE and then EXPLAIN ANALYZE the
> > delete.  This should cause all the triggers to run within the
> > scope of the EXPLAIN ANALYZE, and you'll be able to see which
> > one(s) are slow.  (This assumes you're running a recent release
> > of PG; I think EXPLAIN shows trigger times since 8.1 or so.)
>
> I was thinking about something similar after writing the last message.
>
> Thank you very much for your attention!!
>
> Giulio Cesare
>

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

                http://www.postgresql.org/about/donate

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux