Re: RFC: Logging plan of the running query - Mailing list pgsql-hackers

From Akshat Jaimini
Subject Re: RFC: Logging plan of the running query
Date
Msg-id 176349718657.1015.12677520994128141938.pgcf@coridan.postgresql.org
Whole thread Raw
In response to Re: RFC: Logging plan of the running query  (torikoshia <torikoshia@oss.nttdata.com>)
Responses Re: RFC: Logging plan of the running query
List pgsql-hackers
Hi,
I have a question:

In src/backend/executor/execMain.c:

```
+    SetCurrentQueryDesc(oldQueryDesc);
+
+    /*
+     * Ensure LogQueryPlanPending is initialized in case there was no time for
+     * logging the plan. Othewise plan will be logged at the next query
+     * execution on the same session.
+     */
+    LogQueryPlanPending = false;
```

It would be really helpful if you could elaborate on any cases where this specific situation might arise i.e. where
'therewas no time for logging the plan'. Are we referencing to something like a sudden shutdown of the postmaster
processor is this referring to something else entirely?
 

Regards,
Akshat Jaimini

pgsql-hackers by date:

Previous
From: Mircea Cadariu
Date:
Subject: Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication
Next
From: Nathan Bossart
Date:
Subject: Re: Trigger more frequent autovacuums of heavy insert tables