Re: Emit namespace in post-copy output - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Emit namespace in post-copy output
Date
Msg-id D04B103E-0A4A-4F17-AF96-A44B454F28F0@yesql.se
Whole thread Raw
In response to Re: Fwd: Emit namespace in post-copy output  (Corey Huinker <corey.huinker@gmail.com>)
Responses Re: Emit namespace in post-copy output
Re: Emit namespace in post-copy output
List pgsql-hackers
I took a look at this I agree with the reviewer that it's a good change.  The
output from multiple jobs in vacuumdb is clearly easier to parse with this
since the initial LOG and later DETAIL can be interleaved with other relations
of the same name in other namespaces.

+    get_namespace_name(RelationGetNamespace(OldHeap)),

Since get_namespace_name() returns a palloced string, this will lead to a 2x
leak of the namespace length as opposed to the 1x of today.  While hardly a big
deal, it seems prudent to cap this by storing the returned string locally now
that we need it twice.

I've updated the patch with this, see the attached v2.  Barring objections I
will go ahead with this.

--
Daniel Gustafsson        https://vmware.com/


Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: when the startup process doesn't (logging startup delays)
Next
From: John W Higgins
Date:
Subject: Re: Have I found an interval arithmetic bug?