pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Віталій Тимчишин <tivv00@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Deferred constraint and delete performance
Date: Sun, 14 Feb 2010 11:45:14 +0200
Message-ID: <331e40661002140145l610042d8pc27c61e6c23463df@mail.gmail.com> (raw)
In-Reply-To: <16009.1265813800@sss.pgh.pa.us>
References: <1265799331.28404.14.camel@franck-laptop>
	<16009.1265813800@sss.pgh.pa.us>

2010/2/10 Tom Lane <tgl@sss.pgh.pa.us>

> Franck Routier <franck.routier@axege.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?

view thread (4+ messages)

Message-ID: <331e40661002140145l610042d8pc27c61e6c23463df@mail.gmail.com>
Permalink:  ../331e40661002140145l610042d8pc27c61e6c23463df@mail.gmail.com/
Also on:    postgresql.org/message-id/331e40661002140145l610042d8pc27c61e6c23463df@mail.gmail.com

 · 

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: tivv00@gmail.com
  Subject: Re: Deferred constraint and delete performance
  In-Reply-To: <331e40661002140145l610042d8pc27c61e6c23463df@mail.gmail.com>

* 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