Re: Replication Syatem - Mailing list pgsql-performance

From Heikki Linnakangas
Subject Re: Replication Syatem
Date
Msg-id 4818494A.2050405@enterprisedb.com
Whole thread Raw
In response to Re: Replication Syatem  ("Gauri Kanekar" <meetgaurikanekar@gmail.com>)
Responses Re: Replication Syatem
List pgsql-performance
Gauri Kanekar wrote:
> HOT doesn't seems to be working in our case.
>
> This is "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.
>
> Here delta* fields get updated through out the day. and most of the time it
> may update the same row again n again.
>
> table1 contains around 12843694 records.
>
> Now not understanding y HOT don't work in our case.
>
> Changed fillfactor to 80, 75,70.... but nothing seems to work.

Did you dump and reload the table after setting the fill factor? It only
affects newly inserted data.

Another possibility is that there's a long running transaction in the
background, preventing HOT/vacuum from reclaiming the dead tuples.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-performance by date:

Previous
From: "Pavan Deolasee"
Date:
Subject: Re: Replication Syatem
Next
From: Craig Ringer
Date:
Subject: Re: Replication Syatem