Re: Changing SQL Inlining Behaviour (or...?)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Changing SQL Inlining Behaviour (or...?)
Дата
Msg-id 13430.1547930649@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Changing SQL Inlining Behaviour (or...?)  (Paul Ramsey <pramsey@cleverelephant.ca>)
Ответы Re: Changing SQL Inlining Behaviour (or...?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Paul Ramsey <pramsey@cleverelephant.ca> writes:
> Is there a rule of thumb we can use in costing our wrappers to ensure that they always inline?

Not really, which is a weak spot of this whole approach.

In particular, if you just make procost really big, you risk screwing
things up rather badly in cases where inlining fails for whatever reason.

Also I'm slightly concerned that we'd end up with an "arms race"
where different functions are all trying to out-cost each other.

I don't know whether you've actually tried to use a fix along this line?
It might be good to experiment with whether you can actually improve
matters for PostGIS before we commit to supporting this hack.

            regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Paul Ramsey
Дата:
Сообщение: Re: Changing SQL Inlining Behaviour (or...?)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Remove references to Majordomo