Re: SearchSysCache

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SearchSysCache
Дата
Msg-id 20579.1167773766@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SearchSysCache  (uwcssa <uwcssa@gmail.com>)
Список pgsql-hackers
uwcssa <uwcssa@gmail.com> writes:
> My program (indirectly) calls the following function twice,
> tuple = SearchSysCache(STATRELATT, ObjectIdGetDatum(relid),
> Int16GetDatum(colnum),  0, 0);
> The first time it assigns NULL to tuple, while the second time it
> assigns a valid pointer. Why is it like that?

You did an ANALYZE in between, perhaps?  That's the only operation
that puts new rows in pg_statistic.
        regards, tom lane


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

Предыдущее
От: uwcssa
Дата:
Сообщение: SearchSysCache
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Patch to log usage of temporary files