Re: Deferred constraint and delete performance

From: Віталій Тимчишин <tivv00(at)gmail(dot)com>
To:
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Deferred constraint and delete performance
Date: 2010-02-14 09:45:14
Message-ID: 331e40661002140145l610042d8pc27c61e6c23463df@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

2010/2/10 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>

> 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.
>
> What about disc access? Won't "working" with one table, then another be
faster than working with both at the same time?

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Stark 2010-02-14 14:03:44 Re: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
Previous Message Pierre Frédéric Caillaud 2010-02-13 15:40:09 Re: 512,600ms query becomes 7500ms... but why? Postgres 8.3 query planner quirk?