Re: Statistics Import and Export

Поиск
Список
Период
Сортировка
От Corey Huinker
Тема Re: Statistics Import and Export
Дата
Msg-id CADkLM=fmpng_4ihoCuPnaEREz_9MGeiMGHegso6G+0DqRUMPKg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Statistics Import and Export  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
This replaces regclassin with custom lookups of the namespace and
relname, but misses some of the complexities that regclassin is
handling. For instance, it calls RangeVarGetRelid(), which calls
LookupExplicitNamespace(), which handles temp tables and
InvokeNamespaceSearchHook().

At first it looked like a bit too much code to copy, but regclassin()
passes NoLock, which means we basically just have to call
LookupExplicitNamespace().

To be clear, LookupExplicitNamespace() can call aclcheck_error(), which is something we cannot presently step-down into a WARNING, so an aclcheck failure inside a restore/upgrade would fail the upgrade. I want to make sure we can live with that because it might be hard to explain what's an error we can nerf and what isn't.
 

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