From csepinek@freemail.hu Fri Jun 17 13:08:41 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 52F295280D for ; Fri, 17 Jun 2005 10:08:41 -0300 (ADT) 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 14127-10 for ; Fri, 17 Jun 2005 13:08:39 +0000 (GMT) Received: from unatco.mine.nu (faszkivan.hu [217.27.212.67]) by svr1.postgresql.org (Postfix) with ESMTP id A2532528C1 for ; Fri, 17 Jun 2005 10:08:37 -0300 (ADT) Received: from localhost (unatco [127.0.0.1]) by unatco.mine.nu (Postfix) with ESMTP id C11771D9366 for ; Fri, 17 Jun 2005 15:08:43 +0200 (CEST) Received: from unatco.mine.nu ([127.0.0.1]) by localhost (unatco [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19868-09 for ; Fri, 17 Jun 2005 15:08:36 +0200 (CEST) Received: from localhost (adsl-67-79.adsl-fixip.axelero.hu [195.228.79.67]) by unatco.mine.nu (Postfix) with ESMTP id B58731D9364 for ; Fri, 17 Jun 2005 15:08:36 +0200 (CEST) Date: Fri, 17 Jun 2005 15:08:31 +0200 From: csepinek@freemail.hu X-Mailer: The Bat! (v3.0.1.33) Professional Reply-To: csepinek@freemail.hu X-Priority: 3 (Normal) Message-ID: <664932514.20050617150831@freemail.hu> To: pgsql-sql@postgresql.org Subject: how can i UPDATE without dead rows MIME-Version: 1.0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at muhaha.hu X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.432 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, HTML_MESSAGE, HTML_TITLE_EMPTY, MIME_HTML_ONLY, NO_REAL_NAME X-Spam-Level: * X-Archive-Number: 200506/219 X-Sequence-Number: 21820

Hi!


My program must use UPDATE usualy, and there will be many dead rows in this table 

what throttle down the db server. I would like to update so not create dead row.

How can i do this?


sorry for my english :)


From dev@archonet.com Fri Jun 17 16:10:31 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 380AE528C6 for ; Fri, 17 Jun 2005 13:10:31 -0300 (ADT) 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 57150-07 for ; Fri, 17 Jun 2005 16:10:24 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 5873252867 for ; Fri, 17 Jun 2005 13:10:23 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id C329C40C997; Fri, 17 Jun 2005 17:10:10 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 4985515ED6; Fri, 17 Jun 2005 17:09:24 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06491-10; Fri, 17 Jun 2005 17:09:21 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id BE22015ED5; Fri, 17 Jun 2005 17:09:21 +0100 (BST) Message-ID: <42B2F5B1.5090203@archonet.com> Date: Fri, 17 Jun 2005 17:09:21 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: csepinek@freemail.hu Cc: pgsql-sql@postgresql.org Subject: Re: how can i UPDATE without dead rows References: <664932514.20050617150831@freemail.hu> In-Reply-To: <664932514.20050617150831@freemail.hu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.054 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/221 X-Sequence-Number: 21822 csepinek@freemail.hu wrote: > Hi! > > > My program must use UPDATE usualy, and there will be many dead rows in this table > what throttle down the db server. I would like to update so not create dead row. > How can i do this? You can't - that's how MVCC works. Make sure your free-space-map settings are large enough in postgresql.conf and that you vacuum enough - that will keep the "dead" space being re-used. -- Richard Huxton Archonet Ltd