From: | Melih Mutlu <m(dot)melihmutlu(at)gmail(dot)com> |
---|---|
To: | torikoshia <torikoshia(at)oss(dot)nttdata(dot)com> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Stephen Frost <sfrost(at)snowman(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Parent/child context relation in pg_get_backend_memory_contexts() |
Date: | 2024-01-03 11:40:01 |
Message-ID: | CAGPVpCT0xuoBvx0=myzKYmv02bQ64BC96Z_-dVKckH3++Jg+DA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
Thanks for reviewing. Please find the updated patch attached.
torikoshia <torikoshia(at)oss(dot)nttdata(dot)com>, 4 Ara 2023 Pzt, 07:43 tarihinde
şunu yazdı:
> I reviewed v3 patch and here are some minor comments:
>
> > + <row>
> > + <entry role="catalog_table_entry"><para
> > role="column_definition">
> > + <structfield>path</structfield> <type>int4</type>
>
> Should 'int4' be 'int4[]'?
> Other system catalog columns such as pg_groups.grolist distinguish
> whther the type is a array or not.
>
Right! Done.
>
> > + Path to reach the current context from TopMemoryContext.
> > Context ids in
> > + this list represents all parents of the current context. This
> > can be
> > + used to build the parent and child relation.
>
> It seems last "." is not necessary considering other explanations for
> each field end without it.
>
Done.
> + const char *parent, int level, int
> *context_id,
> + List *path, Size
> *total_bytes_inc_chidlren)
>
> 'chidlren' -> 'children'
>
Done.
> + elog(LOG, "pg_get_backend_memory_contexts called");
>
> Is this message necessary?
>
I guess I added this line for debugging and then forgot to remove. Now
removed.
There was warning when applying the patch:
>
> % git apply
>
> ../patch/pg_backend_memory_context_refine/v3-0001-Adding-id-parent_id-into-pg_backend_memory_contex.patch
>
> ../patch/pg_backend_memory_context_refine/v3-0001-Adding-id-parent_id-into-pg_backend_memory_contex.patch:282:
>
> trailing whitespace.
> select count(*) > 0
>
> ../patch/pg_backend_memory_context_refine/v3-0001-Adding-id-parent_id-into-pg_backend_memory_contex.patch:283:
>
> trailing whitespace.
> from contexts
> warning: 2 lines add whitespace errors.
>
Fixed.
Thanks,
--
Melih Mutlu
Microsoft
Attachment | Content-Type | Size |
---|---|---|
v4-0001-Adding-id-parent_id-into-pg_backend_memory_contex.patch | application/octet-stream | 10.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2024-01-03 11:42:21 | Re: Random pg_upgrade test failure on drongo |
Previous Message | Bharath Rupireddy | 2024-01-03 11:28:22 | Re: Switching XLog source from archive to streaming when primary available |