Re: Advice on setting cost for function

2019-06-13 Thread Tom Lane
guy...@relevantlogic.com writes: > The documentation in CREATE FUNCTION is fine as far is it goes regarding the > COST setting, but that isn’t very far, and I haven’t had any luck finding > good advice. Fair complaint. A quick data dump: procost = 1 is supposed to represent the cost of a simpl

Advice on setting cost for function

2019-06-05 Thread guyren
The documentation in CREATE FUNCTION is fine as far is it goes regarding the COST setting, but that isn’t very far, and I haven’t had any luck finding good advice. How do I determine what value to set as the COST of a function? I understand that it’s a relative, abstract, per-row sort of thing,