Re: Too much memory allocated for ReorderBufferDiskChange

2018-03-05 Thread Euler Taveira
2018-03-05 12:26 GMT-03:00 Antonin Houska : > ! ReorderBufferSerializeReserve(rb, > ! > sizeof(ReorderBufferDiskChange) + ondisk->size); > ondisk = (ReorderBufferDiskChange *)

Too much memory allocated for ReorderBufferDiskChange

2018-03-05 Thread Antonin Houska
I suggest the following change to avoid excessive allocation. sizeof(ReorderBufferDiskChange) should already be contained in ondisk->size. diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c new file mode 100644 index c72a611..84f6e05