Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 49F1F2E003B for ; Wed, 30 Apr 2008 03:49:09 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 58179-05 for ; Wed, 30 Apr 2008 03:49:02 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.191]) by developer.postgresql.org (Postfix) with ESMTP id A96BF2E002D for ; Wed, 30 Apr 2008 03:49:05 -0300 (ADT) Received: by rn-out-0910.google.com with SMTP id i24so250474rng.0 for ; Tue, 29 Apr 2008 23:49:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=HA4YVtfqRiTHcQh51LZ7/towENwcd6Jni0b7RbwomSg=; b=mJQ544Ux/uoR4p9qX+Q40l7VeGS8qpyDIA3lj0BlrANXsZ4QW97pBbZsnjt+X5ve6Ag3y0paeCoWAI5sDz5EjbvlXYUpAyQ2R5BXcGRPczq0ZmXYiMahEVAE7LhRr0SBygW/kdr7XuDbzD+RNMHklfq56w2K5FV5KUprGNHvzZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=mxRjzz49h0jr1C5ua20Uo26OChY+uUUky1jQM2vSVHLcJ1cjjSrPM5AGi4MLw0OPUw1zMTTQLkmioSEj/ajYw00Z2pMjmXGIXwT/a7HFszyQYC3kuL3as8k+Utg0w7NI5a646ChgGqg5eR2eijuHC2WFXnRU4Nd6SLENpAg3RfY= Received: by 10.114.124.1 with SMTP id w1mr317862wac.209.1209538144257; Tue, 29 Apr 2008 23:49:04 -0700 (PDT) Received: by 10.114.240.17 with HTTP; Tue, 29 Apr 2008 23:49:04 -0700 (PDT) Message-ID: <7e4ba9550804292349t53026b36xe28341f794cceb86@mail.gmail.com> Date: Wed, 30 Apr 2008 12:19:04 +0530 From: "Gauri Kanekar" To: "Pavan Deolasee" Subject: Re: Replication Syatem Cc: "Shane Ambler" , "Alvaro Herrera" , "Greg Smith" , pgsql-performance@postgresql.org In-Reply-To: <7e4ba9550804292346r46aa55e7g6cf1f731b6be7d40@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6402_16973544.1209538144251" References: <7e4ba9550804280638ie81dc23w472785c83cd38fcf@mail.gmail.com> <7e4ba9550804290405i4c0d3a57x1640239c9995c13@mail.gmail.com> <20080429130204.GA5652@alvh.no-ip.org> <4817514A.3060704@Sheeky.Biz> <7e4ba9550804292229x82e74e5y355349866c72245c@mail.gmail.com> <2e78013d0804292237l4c74a166u4ab082901aa0804f@mail.gmail.com> <7e4ba9550804292239n668b1f01v59ad7ac6ca9e092b@mail.gmail.com> <2e78013d0804292343hd9d1c0lf93df68e559f9af3@mail.gmail.com> <7e4ba9550804292346r46aa55e7g6cf1f731b6be7d40@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.875 tagged_above=0 required=5 tests=AWL=-1.025, FS_REPLICA=1.179, HTML_MESSAGE=0.001, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 200804/460 X-Sequence-Number: 29953 ------=_Part_6402_16973544.1209538144251 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline "table1" structure : id integer not null code integer not null crid integer not null status character varying(1) default 'A'::character varying delta1 bigint default 0 delta2 bigint default 0 delta3 bigint default 0 delta4 bigint default 0 tz_id integer default 0 Indexes: "idx1" PRIMARY KEY, btree (id) "idx2" UNIQUE, btree (code, crid) "idx3" btree (tz_id) "idx4" btree (status) code as crid are foreign key. update table1 set delta1 = 100 where code/1000000 =999; On Wed, Apr 30, 2008 at 12:16 PM, Gauri Kanekar wrote: > fillfactor is set to 80 as you suggested. > delta* fields r updated and these fields are no where related to any of > the index fields. > > > > On Wed, Apr 30, 2008 at 12:13 PM, Pavan Deolasee > wrote: > > > On Wed, Apr 30, 2008 at 11:09 AM, Gauri Kanekar > > wrote: > > > relid | relname | n_tup_ins | n_tup_upd | n_tup_hot_upd | > > n_dead_tup > > > > > -------+----------------+-----------+-----------+---------------+------------ > > > 16461 | table1 | 0 | 8352496 | 5389 | 8351242 > > > > > > > Hmm.. So indeed there are very few HOT updates. What is the fillfactor > > you are using for these tests ? If its much less than 100, the very > > low percentage of HOT updates would make me guess that you are > > updating one of the index columns. Otherwise at least the initial > > updates until you fill up the free space should be HOT. > > > > Thanks, > > Pavan > > > > > > -- > > Pavan Deolasee > > EnterpriseDB http://www.enterprisedb.com > > > > > > -- > Regards > Gauri -- Regards Gauri ------=_Part_6402_16973544.1209538144251 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline "table1" structure :
 id        integer    not null
 code        integer    not null
 crid        integer    not null
 status        character varying(1)    default 'A'::character varying
 delta1        bigint    default 0
 delta2        bigint    default 0
 delta3        bigint    default 0
 delta4        bigint    default 0
 tz_id        integer    default 0
Indexes:
    "idx1" PRIMARY KEY, btree (id)
    "idx2" UNIQUE, btree (code, crid)
    "idx3" btree (tz_id)
    "idx4" btree (status)

code as crid are foreign key.

update table1 set delta1 = 100 where code/1000000 =999;


On Wed, Apr 30, 2008 at 12:16 PM, Gauri Kanekar <meetgaurikanekar@gmail.com> wrote:
fillfactor is set to 80 as you suggested.
delta* fields r updated and these fields are no where related to any of the index fields.

 

On Wed, Apr 30, 2008 at 12:13 PM, Pavan Deolasee <pavan.deolasee@gmail.com> wrote:
On Wed, Apr 30, 2008 at 11:09 AM, Gauri Kanekar
<meetgaurikanekar@gmail.com> wrote:
>  relid |    relname     | n_tup_ins | n_tup_upd | n_tup_hot_upd | n_dead_tup
> -------+----------------+-----------+-----------+---------------+------------
>  16461 | table1 |         0 |   8352496 |          5389 |    8351242
>

Hmm.. So indeed there are very few HOT updates. What is the fillfactor
you are using for these tests ? If its much less than 100, the very
low percentage of HOT updates would make me guess that you are
updating one of the index columns. Otherwise at least the initial
updates until you fill up the free space should be HOT.

Thanks,
Pavan


--
Pavan Deolasee
EnterpriseDB     http://www.enterprisedb.com



--
Regards
Gauri



--
Regards
Gauri ------=_Part_6402_16973544.1209538144251--