Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 7FCCC9F98A2 for ; Fri, 10 Aug 2007 16:41:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 58382-03 for ; Fri, 10 Aug 2007 16:41:17 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.191]) by postgresql.org (Postfix) with ESMTP id C18B79F98DD for ; Fri, 10 Aug 2007 16:41:17 -0300 (ADT) Received: by rv-out-0910.google.com with SMTP id f1so656167rvb for ; Fri, 10 Aug 2007 12:41:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZvEYhQ/adqeQjpZgS/INScbyT4/W1xiCLehF2F6mA7ij1qzSlc+NhLKRa/JEgGzUYY6o7zl3VYPKdv7keU3UNVRpBuOvqGRSnQH+K2h5QMeGegb+Vl199Qk5hFhABGvdUmFGQEUOcXEbOuWI5mcxDVrgAf0E50+BWRdpyWRKQ5U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WLMjrqjn9yrWA72ZW8L2lxrpUkThIlJ/FV4kFYlO6HT0Nih9Ho1MC1KriWiJnVZeSrM0rh0wrTZmEPPedtXZaTtFYcsWiEmVjMjIbctWDz3JpYXoYZQFT7uvgRFJzxHCyDQLCwUBI6RwD1nkSL+T4Z1XtFn1uQUWE7YACLEgE3c= Received: by 10.141.209.7 with SMTP id l7mr1558181rvq.1186774876249; Fri, 10 Aug 2007 12:41:16 -0700 (PDT) Received: by 10.141.98.12 with HTTP; Fri, 10 Aug 2007 12:41:16 -0700 (PDT) Message-ID: Date: Fri, 10 Aug 2007 14:41:16 -0500 From: "Scott Marlowe" To: "Mark Steben" Subject: Re: Mass updates on a large table Cc: pgsql-admin@postgresql.org In-Reply-To: <009b01c7db7f$a5c0e440$b501a8c0@D1RPQZB1> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <009b01c7db7f$a5c0e440$b501a8c0@D1RPQZB1> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/126 X-Sequence-Number: 26457 On 8/10/07, Mark Steben wrote: > > > > > Hi Scott, thanks for the response. > 4. The business reason for the update: we are replacing within a > query a > COALESCE function that gave us the most recent date between 3 dates. We > Are instead doing the COALESCE as part of a new update trigger, populatin= g > the New date fields with the most recent dates and referencing the new d= ates So this is a one time data migration. OK, then I'm no as worried about the business case being a bit crazy. > 5. We are planning an upgrade to 8.2.4 in the near future =96 hope= fully > in a couple months. Cool. Start testing now. You'd be surprised how many test cases you'll find where your laptop running 8.2 will outrun your server running 7.x... Nothing too out of the ordinary in your schema, but those multi-dimensional arrays might be a bit expensive, especially for updates.