| От | Tom Lane |
|---|---|
| Тема | Re: Propose: enum with all registered table names? |
| Дата | |
| Msg-id | 3489.1227201760@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Propose: enum with all registered table names? (Richard Huxton <dev@archonet.com>) |
| Список | pgsql-general |
Richard Huxton <dev@archonet.com> writes:
> It's regclass you're after I think.
A fairly large problem with either regclass or a hypothetical
system-maintained enum is that a table with such a column effectively
has a data dependency on all the tables it mentions. Which pg_dump
won't know about, so it might try to restore that table before it's
finished creating all the mentioned tables.
I think this will actually work alright in existing pg_dump releases
because it does all the table creation DDL before trying to load any
data. You might have some problems with future parallel pg_restores
though.
On the whole I'd recommend staying away from the idea. It doesn't
seem valuable enough to be worth taking risks over.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера