yum search postgresql-contrib*
yum install postgresql-contrib.i386
su - postgres
$ cat /usr/share/pgsql/contrib/dblink.sql | psql
$psql tst_db
$tst_db# select dblink_connect('host=localhost user= password=');
$tst_db# select dblink('select id from tst') as mytable (t int);
$tst_db# select dblink_exec('insert into tst (\'\2\')') as mytable (t int);
Postgresql 使用dblink
最新推荐文章于 2024-07-06 22:04:45 发布