Re: Attaching database

Поиск
Список
Период
Сортировка
От Igor Korot
Тема Re: Attaching database
Дата
Msg-id CA+FnnTx-xCQ1=tiU_U734UyAeNhM_AHyWk9ZX9a3DGWhDfKesA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Attaching database  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Attaching database  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
Hi, Pavel,

On Mon, Oct 19, 2020 at 12:51 PM Pavel Stehule <pavel.stehule@gmail.com> wrote:
>
> Hi
>
> po 19. 10. 2020 v 19:40 odesílatel Igor Korot <ikorot01@gmail.com> napsal:
>>
>> Hi,
>> IIUC, PostgreSQL does not support attaching a database to an existing
>> connection.
>> However I was told that I can use this:
>> https://www.postgresql.org/docs/9.3/postgres-fdw.html.
>>
>> Is it the same thing? Why there is no simple
>>
>> ATTACH <db> AS <dbname>
>>
>
> It is a different thing - postgresql_fdw does nested connect - it uses client-server protocol.
>
> For postgres connect and sql engine process is one entity - and engine is written without a possibility to reconnect
toanother database. 

So if I understand correctly the postgresql_fdw is creating a second
connection and uses it as kind of "virtualizing mechanism"
in order to give access to the second database.

Am I right?

Thank you.

>
> Regards
>
> Pavel
>
>
>
>>
>> ?
>>
>> Thank you.
>>
>>



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Attaching database
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Attaching database