Re: explain format json, unit for serialize and memory are different.

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: jian he <jian(dot)universality(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Daniel Gustafsson <daniel(at)yesql(dot)se>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: explain format json, unit for serialize and memory are different.
Date: 2024-05-14 14:01:21
Message-ID: CAApHDvrCEkkophSFuC=wRpxa9x=MDDDB_O1wVsB+oKhb-8aMpw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 15 May 2024 at 01:18, jian he <jian(dot)universality(at)gmail(dot)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 Content-Type Size
v2-0001-Minor-fixes-to-EXPLAIN.patch application/octet-stream 7.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-05-14 14:08:18 Re: Dump-restore loosing 'attnotnull' bit for DEFERRABLE PRIMARY KEY column(s).
Previous Message Pantelis Theodosiou 2024-05-14 13:58:41 Re: First draft of PG 17 release notes