Re: Lookup Primary Key of Foreign Server's Table

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Lookup Primary Key of Foreign Server's Table
Дата
Msg-id CAKFQuwYAd7MYqHQDJnw4=c+KBPu8=_EosLCrw9brEg-e+VYWgQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Lookup Primary Key of Foreign Server's Table  (Chris Morris <chris@mysteryscience.com>)
Ответы Re: Lookup Primary Key of Foreign Server's Table  (Chris Morris <chris@mysteryscience.com>)
Список pgsql-general
On Wed, Oct 23, 2019 at 8:47 AM Chris Morris <chris@mysteryscience.com> wrote:
The foreign table has a primary key. Ruby on Rails uses a system query to lookup what the primary key on the table is, but it's querying the local database, and not finding anything. In a schema dump of the local database, I don't see a primary key defined, so I'm presuming I need to issue an ADD CONSTRAINT command against the foreign table to reflect what is actually true in the foreign table? Is that correct?

The documentation says doing what you suggest won't work...

David J.

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

Предыдущее
От: Ron
Дата:
Сообщение: Re: Is this a bug ?
Следующее
От: Maciek Sakrejda
Дата:
Сообщение: Re: EXPLAIN BUFFERS and I/O timing accounting questions