Re: weird hash plan cost, starting with pg10

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: weird hash plan cost, starting with pg10
Дата
Msg-id 22914.1586786026@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: weird hash plan cost, starting with pg10  (Richard Guo <guofenglinux@gmail.com>)
Ответы Re: weird hash plan cost, starting with pg10
Список pgsql-hackers
Richard Guo <guofenglinux@gmail.com> writes:
> At first I was wondering if we need to check whether HashState.hashtable
> is not NULL in ExecShutdownHash() before we decide to allocate save
> space for HashState.hinstrument. And then I convinced myself that that's
> not necessary since HashState.hinstrument and HashState.hashtable cannot
> be both NULL there.

Even if the hashtable is null at that point, creating an all-zeroes
hinstrument struct is harmless.

            regards, tom lane



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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: WAL usage calculation patch
Следующее
От: Peter Eisentraut
Дата:
Сообщение: wrong relkind error messages