Re: Use Dblink without column defination

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: Use Dblink without column defination
Дата
в 14:10:36
Msg-id
c942aea1-30c1-60c7-23ef-160e756e608b@enterprisedb.com
Ответ на
Список
Дерево обсуждения
Use Dblink without column defination Chirag Karkera <chiragkrkr102@gmail.com>
Re: Use Dblink without column defination Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Use Dblink without column defination Chirag Karkera <chiragkrkr102@gmail.com>
On 23.05.22 10:16, Chirag Karkera wrote:
> mesods=> select * from dblink('foreign_server','select * from 
> ods_sch.emp') AS x(a int,b text);
> 
>   a |    b
> 
> ---+---------
> 
>   1 | Gohan
> 
>   1 | Piccolo
> 
>   1 | Tien
> 
> (3 rows)
> 
> This works fine when I specify which columns I want to select.
> 
> Is there something that postgres has without specifying the column names 
> we can fetch the data from dblink.

Not in dblink.  You could use foreign-data wrappers, which have a 
different interface, which you might like better.


В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Robert Haas
Дата:
FAQ