Re: Stack-based tracking of per-node WAL/buffer usage - Mailing list pgsql-hackers

From Zsolt Parragi
Subject Re: Stack-based tracking of per-node WAL/buffer usage
Date
Msg-id CAN4CZFM11mo-Bo3nhdcvVQ_ue7w3u_p8AL6xyDs054Q8kSv-xQ@mail.gmail.com
Whole thread
In response to Re: Stack-based tracking of per-node WAL/buffer usage  (Lukas Fittl <lukas@fittl.com>)
Responses Re: Stack-based tracking of per-node WAL/buffer usage
List pgsql-hackers
I couldn't find any issues with v15, all comments are stylistic/minor,
except maybe the first one.

+ /* Abort handling: link in parent QueryInstrumentation's unfinalized list */
+ dlist_node unfinalized_entry;

Is it okay to store a pointer in shared memory, even if it seems to be
always NULL there?

 #ifndef INSTRUMENT_NODE_H
 #define INSTRUMENT_NODE_H

+
+#include "executor/tuptable.h"
+#include "nodes/execnodes.h"
+

Is it okay to incude files in the middle of the file, is there a good
reason why these can't be at the top of the file?

+ * Recurse into children first (bottom-up accumulation), and accummulate
+ * to this nodes instrumentation as the parent context.

Two typos (accumulate / this node's)

 #define RELEASE_PRIO_FILES 600
 #define RELEASE_PRIO_WAITEVENTSETS 700
+#define RELEASE_PRIO_INSTRUMENTATION 800

This is mainly a generic observation, not strictly related to this
patch, but this list could use some explanation which of these
priorities are actually required by dependencies, and which are just
"put the new entry at the end of the list".



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Adding REPACK [concurrently]
Next
From: Jim Jones
Date:
Subject: Re: VACUUM FULL, CLUSTER, and REPACK block on other sessions' temp tables