From: vlads-yandex <vlads@ngs.ru>
To: Sergei Kornilov <sk@zsrv.org>
Cc: pgsql-ru-general@postgresql.org <pgsql-ru-general@postgresql.org>
Subject: Re: Удаленный вызов функции
Date: Mon, 27 Dec 2021 18:13:50 +0300
Message-ID: <694931640617788@mail.yandex.ru> (raw)
In-Reply-To: <2847691640615053@vla3-784cde10a2bc.qloud-c.yandex.net>
References: <754211640614360@mail.yandex.ru>
<2847691640615053@vla3-784cde10a2bc.qloud-c.yandex.net>
<div>Примерно понятно.</div><div>Тогда второй вопрос:</div><div>Например, для выполнения удаленно выполняю вот такой запрос:</div><div><div>select * from dblink (db(),'select * from spr.str' ) as str(x int, sname text)</div><div>Локально у меня точно такая же таблица spr.str</div><div>я могу этот запрос переделать на нечто подобное:</div><div><div>select * from dblink (db(),'select * from spr.str' ) as spr.str</div><div>чтобы повторно не описывать все столбцы таблицы.</div></div><div>что писать вместо "as spr.str" чтобы отработало корректно</div><div> </div><div> </div></div><div> </div><div>27.12.2021, 17:24, "Sergei Kornilov" <sk@zsrv.org>:</div><blockquote><p>Привет<br />dblink называется <a href="https://www.postgresql.org/docs/current/dblink.html"; rel="noopener noreferrer">https://www.postgresql.org/docs/current/dblink.html</a><br /><br />regards, Sergei</p></blockquote>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-ru-general@postgresql.org
Cc: vlads@ngs.ru, sk@zsrv.org
Subject: Re: Re: Удаленный вызов функции
In-Reply-To: <694931640617788@mail.yandex.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox