In our code base we have added a WithStats-Flavor for creating memory contexts. This api accepts a pointer to metric for accounting and it is inherited by all subcontexts unless overridden. So we only needed to change context creation API where we wanted (such as TopTansactionContext, Message Context, ..) That's quite trivial, actually. Also we have fixed all those missing hash spills - albeit based on the 9.6 hash table design I think. If there is interest by the community we are very willing to share. Cheers Serge Salesforce
- Re: Spilling hashed SetOps and aggregates t... Tomas Vondra
- Re: Spilling hashed SetOps and aggregates to disk David Rowley
- Re: Spilling hashed SetOps and aggregates to disk Tomas Vondra
- Re: Spilling hashed SetOps and aggregates to di... Andres Freund
- Re: Spilling hashed SetOps and aggregates t... David Rowley
- Re: Spilling hashed SetOps and aggregates t... Andres Freund
- Re: Spilling hashed SetOps and aggregates t... David Rowley
- Re: Spilling hashed SetOps and aggregates t... Andres Freund
- Re: Spilling hashed SetOps and aggregates t... David Rowley
- Re: Spilling hashed SetOps and aggregates t... Tomas Vondra
- RE: Re: Spilling hashed SetOps and aggregat... serge
- Re: Spilling hashed SetOps and aggregates t... Tomas Vondra
- RE: Re: Spilling hashed SetOps and aggregat... serge
- Re: Re: Spilling hashed SetOps and aggregat... Jeff Davis
- Re: Spilling hashed SetOps and aggregates t... David Rowley
- Re: Spilling hashed SetOps and aggregates t... Jeff Davis
- Re: Spilling hashed SetOps and aggregates to disk David Fetter
- Re: Spilling hashed SetOps and aggregates to disk David Fetter
- Re: Spilling hashed SetOps and aggregates to disk Andres Freund
- Re: Spilling hashed SetOps and aggregates to disk Tom Lane
- Re: Spilling hashed SetOps and aggregates to disk David Fetter