Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 03B969FBED6 for ; Wed, 4 Jul 2007 05:02:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 47286-10 for ; Wed, 4 Jul 2007 05:02:23 -0300 (ADT) X-Greylist: delayed 00:31:46.548865 by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 65B559FBF4C for ; Wed, 4 Jul 2007 05:02:25 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail1.chaos1.de (Mail1.Chaos1.de [213.160.12.53]) by svr4.postgresql.org (Postfix) with ESMTP id 991155AF041 for ; Wed, 4 Jul 2007 07:30:34 +0000 (GMT) Received: from claudius6.in.chaos1.de ([192.168.220.106]) by mail1.chaos1.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.44) id 1I5zJi-0007zI-5x; Wed, 04 Jul 2007 09:30:26 +0200 In-Reply-To: <20070703113342.GA41193@winnie.fuhr.org> References: <4689E727.5020408@p-dw.com> <20070703113342.GA41193@winnie.fuhr.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/alternative; boundary=Apple-Mail-4--931405454 Message-Id: Cc: pgsql-performance@postgresql.org From: Axel Rau Subject: Re: Delete Cascade FK speed issue Date: Wed, 4 Jul 2007 09:30:24 +0200 To: Michael Fuhr X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/27 X-Sequence-Number: 25711 --Apple-Mail-4--931405454 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=flowed Am 03.07.2007 um 13:33 schrieb Michael Fuhr: > Something like > the following should work for single-column foreign keys: Nice query. Found immediately 2 missing indexes. (-;) Axel --------------------------------------------------------------------- Axel Rau, =E2=98=80Frankfurt , Germany +49 69 9514 = 18 0 --Apple-Mail-4--931405454 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
Am 03.07.2007 um = 13:33 schrieb Michael Fuhr:

=C2=A0Something like

=

the following should work for = single-column foreign keys:

Nice query. = Found immediately 2 missing indexes. (-;)

Axel

---------------------------------------------------------------= ------

Axel = Rau,=C2=A0=E2=98=80Frankfurt=C2= =A0, Germany=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 = =C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0+49 69 = 9514 18 0



= --Apple-Mail-4--931405454--