X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4DB773A4B67 for ; Fri, 19 Nov 2004 15:34:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42375-10 for ; Fri, 19 Nov 2004 15:34:22 +0000 (GMT) Received: from smtp105.mail.sc5.yahoo.com (smtp105.mail.sc5.yahoo.com [66.163.169.225]) by svr1.postgresql.org (Postfix) with SMTP id 6A77A3A4B58 for ; Fri, 19 Nov 2004 15:34:24 +0000 (GMT) Received: from unknown (HELO jupiter.black-lion.info) (janwieck@68.80.245.191 with login) by smtp105.mail.sc5.yahoo.com with SMTP; 19 Nov 2004 15:34:24 -0000 Received: from [172.21.8.18] (ismtp.afilias.com [216.217.55.254]) (authenticated bits=0) by jupiter.black-lion.info (8.12.10/8.12.9) with ESMTP id iAJFYL94043750; Fri, 19 Nov 2004 10:34:22 -0500 (EST) (envelope-from JanWieck@Yahoo.com) Message-ID: <419E0466.9090409@Yahoo.com> Date: Fri, 19 Nov 2004 09:34:14 -0500 From: Jan Wieck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: josh@agliodbs.com Cc: pgsql-performance@postgresql.org, David Parker Subject: Re: sort_mem affect on inserts? References: <07FDEE0ED7455A48AC42AC2070EDFF7C26BA3D@corpsrv2.tazznetworks.com> <200411171407.30795.josh@agliodbs.com> In-Reply-To: <200411171407.30795.josh@agliodbs.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.6 tagged_above=0.0 required=5.0 tests=RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL X-Spam-Level: * X-Archive-Number: 200411/299 X-Sequence-Number: 9253 On 11/17/2004 5:07 PM, Josh Berkus wrote: > David, > >> I understand that the sort_mem conf setting affects queries with order by, >> etc., and the doc mentions that it is used in create index. Does sort_mem >> affect the updating of indexes, i.e., can the sort_mem setting affect the >> performance of inserts? > > Only if the table has Foriegn Keys whose lookup might require a large sort. > Otherwise, no. > Hmmm ... what type of foreign key lookup would that be? None of the RI generated queries has any order by clause. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #