Re: BUG #15263: pg_dump / psql failure. When loading, psql does not see function-based constraints or indices
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #15263: pg_dump / psql failure. When loading, psql does not see function-based constraints or indices |
| Дата | |
| Msg-id | 70632.1530974886@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #15263: pg_dump / psql failure. When loading, psql does notsee function-based constraints or indices (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>) |
| Список | pgsql-bugs |
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 06.07.18 18:19, PG Bug reporting form wrote:
>> When I load the database from the dump I just created, loading (via psql)
>> logs error messages. Postgres cannot find functions inside the function the
>> constraint or index invokes.
> I think this and your subsequent report are all instances of the problem
> that pg_dump cannot see into the function body to check what database
> objects it depends on, so it cannot produce a working ordering of the
> objects.
That's one possible issue, but I think a more likely cause is the recent
security-driven changes in the search_path that the restore script runs
with. If the function is relying on unqualified references to functions
that aren't in pg_catalog, it'll fail. (This theory explains why things
were okay with old copies of pg_dump.)
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера