時間:2024-02-13 10:22作者:下載吧人氣:25
之前在CSDN閱讀資料時,發(fā)現(xiàn)有人問怎么把 postgresql數(shù)據(jù)庫 的表 跟TimescaleDB 時序庫的表 join在一起,正好我在查詢數(shù)據(jù)的時候遇到過這個問題 ,我說一下我的解決方案
我選擇的是postgresql數(shù)據(jù)庫的fdw功能(postgres_fdw插件)
**
1.1安裝postgres_fdw插件
**
su – postgres
-bash-4.2$ psql
postgres=# c hrmwv2 #(數(shù)據(jù)庫名字)
Create extension “postgres_fdw”;
網(wǎng)友評論