Re: Propose: enum with all registered table names?

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: "Daniel Verite"
Дата:
Сообщение: Re: Prepared statement already exists
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: compiling libpq.dll with Borland C++, is it possible?