| От | Tom Lane |
|---|---|
| Тема | Re: backup tableoids (pg_class.oid) ? |
| Дата | |
| Msg-id | 6986.1202154450@sss.pgh.pa.us обсуждение |
| Ответ на | Re: backup tableoids (pg_class.oid) ? (Alvaro Herrera <alvherre@commandprompt.com>) |
| Список | pgsql-general |
Alvaro Herrera <alvherre@commandprompt.com> writes:
> fkater@googlemail.com wrote:
>> my db structure relays on the OIDs of tables (stored as OIDs of
>> pg_class).
> Probably it would be a better idea to store that as type regclass
> instead of OIDs. I think that will take care of the dump part of the
> problem, at least.
+1
> It's likely that there will be an additional hurdle
> when trying to restore, because the referenced table would not have been
> created in the first place.
I think you'd probably be able to get away with it, because pg_dump
always creates all tables before loading any data. If you were storing
index OIDs, maybe it wouldn't work.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера