Re: CPU costs of random_zipfian in pgbench - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: CPU costs of random_zipfian in pgbench
Date
Msg-id alpine.DEB.2.21.1904032126060.7997@lancre
Whole thread Raw
In response to Re: CPU costs of random_zipfian in pgbench  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: CPU costs of random_zipfian in pgbench
List pgsql-hackers
> Ah, so we now we can get rid of the TState * being passed around
> separately for expression execution, too?

Indeed.

I would have thought that the compiler would have warned if it is unused, 
but because of the recursion it is uselessly used.

Ok, maybe the sentence above is not very clear. Attached a patch which 
simplifies further.

-- 
Fabien.
Attachment

pgsql-hackers by date:

Previous
From: Jesper Pedersen
Date:
Subject: Re: partitioned tables referenced by FKs
Next
From: Andres Freund
Date:
Subject: Re: shared-memory based stats collector