Re: Too much memory allocated for ReorderBufferDiskChange - Mailing list pgsql-hackers

From Euler Taveira
Subject Re: Too much memory allocated for ReorderBufferDiskChange
Date
Msg-id CAHE3wgiZV4FwjDtffcu_BLrtA0aceoT4e4275cf14WOd+jKy5A@mail.gmail.com
Whole thread Raw
In response to Too much memory allocated for ReorderBufferDiskChange  (Antonin Houska <ah@cybertec.at>)
List pgsql-hackers
2018-03-05 12:26 GMT-03:00 Antonin Houska <ah@cybertec.at>:
> !               ReorderBufferSerializeReserve(rb,
> !                                                                         sizeof(ReorderBufferDiskChange) +
ondisk->size);
>                 ondisk = (ReorderBufferDiskChange *) rb->outbuf;
>
ReorderBufferSerializeReserve() always does a repalloc here
(ReorderBufferDiskChange size is always greater than zero) then the
allocation size is correct.


-- 
   Euler Taveira                                   Timbira -
http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Re: Re: [HACKERS] PoC: custom signal handler for extensions
Next
From: Andrey Borodin
Date:
Subject: Re: [Patch] Checksums for SLRU files