Re: Forward declaration of table

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Forward declaration of table
Дата
Msg-id CAKFQuwZeOrDSiAK0GL9G1cvbx+5oLtzQhYuK2C=EEfWvKWWUHA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Forward declaration of table  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Forward declaration of table  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
On Tue, Aug 23, 2016 at 1:24 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:

use ALTER TABLE ADD table_constraint :

https://www.postgresql.org/docs/9.5/static/sql-altertable.html

to add the FK references to word_games.


​Hadn't considered "ALTER TABLE" but I'd be afraid of dump-restore hazards here.  Maybe pg_dump is smart enough to handle this correctly, though - maybe by adding constraint definitions after all tables and columns are present.

David J.​

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Forward declaration of table
Следующее
От: Periko Support
Дата:
Сообщение: Pentaho Odoo PSQL Slave.