Re: explain format json, unit for serialize and memory are different. - Mailing list pgsql-hackers

From David Rowley
Subject Re: explain format json, unit for serialize and memory are different.
Date
Msg-id CAApHDvrCEkkophSFuC=wRpxa9x=MDDDB_O1wVsB+oKhb-8aMpw@mail.gmail.com
Whole thread Raw
In response to Re: explain format json, unit for serialize and memory are different.  (jian he <jian.universality@gmail.com>)
Responses Re: explain format json, unit for serialize and memory are different.
List pgsql-hackers
On Wed, 15 May 2024 at 01:18, jian he <jian.universality@gmail.com> wrote:
> else
> {
> ExplainPropertyInteger("Memory Used", "bytes",
>    mem_counters->totalspace - mem_counters->freespace,
>    es);
> ExplainPropertyInteger("Memory Allocated", "bytes",
>    mem_counters->totalspace, es);
> }
> }
>
> the "else" branch, also need to apply BYTES_TO_KILOBYTES marco?

Yeah, I missed that. Here's another patch.

Thanks for looking.

David

Attachment

pgsql-hackers by date:

Previous
From: Pantelis Theodosiou
Date:
Subject: Re: First draft of PG 17 release notes
Next
From: Robert Haas
Date:
Subject: Re: Dump-restore loosing 'attnotnull' bit for DEFERRABLE PRIMARY KEY column(s).