Re: Deferred constraint and delete performance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Franck Routier <franck(dot)routier(at)axege(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Deferred constraint and delete performance
Date: 2010-02-10 14:56:40
Message-ID: 16009.1265813800@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Franck Routier <franck(dot)routier(at)axege(dot)com> writes:
> I am wondering if deferring foreign key constraints (instead of
> disableing them) would increase performance, compared to non deferred
> constraints

No, it wouldn't make any noticeable difference AFAICS. It would
postpone the work from end-of-statement to end-of-transaction,
but not make the work happen any more (or less) efficiently.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Grittner 2010-02-10 15:47:51 Re: [PERFORM] PostgreSQL - case studies
Previous Message Franck Routier 2010-02-10 10:55:31 Deferred constraint and delete performance