Re: OOM kill during planning - pg_terminate_backend is ignored - Mailing list pgsql-hackers

From Floris Van Nee
Subject Re: OOM kill during planning - pg_terminate_backend is ignored
Date
Msg-id MRWPR09MB83572069158FFE1B01D20178CCB72@MRWPR09MB8357.eurprd09.prod.outlook.com
Whole thread
Responses Re: glist: _Generic wrapper for selective dlist/dclist usage
List pgsql-hackers
Hi Andres,

Thanks for your reply.

> I think we'd need a separation between the function to start initiating a tree
> walk/mutation and the function called for every recursion level. Then we can
> do the CFI() in the "start a tree walk" function, without having to do it the
> expression_tree_walker_impl(), once per processed node.

It looks like query_or_expression_tree_walker_impl and
query_or_expression_tree_mutator_impl actually have this property of
only being called when starting a tree walk. Perhaps it's OK to add the
check for interrupts at the start of these two functions? I can create a
patch for this if this is an acceptable approach.

-Floris



Attachment

pgsql-hackers by date:

Previous
From: Vaibhav Dalvi
Date:
Subject: Re: [PATCH] Add support for INSERT ... SET syntax
Next
From: Sami Imseih
Date:
Subject: Re: pgstat: Flush some statistics within running transactions, take 2