2015-05-04 27 views
0

在Mac OSX服務器運行10.9.5的Postgres 9.3.4 我想運行一個交叉表查詢,但得到的Postgres - tablefunc擴展控制文件的路徑是錯誤的

ERROR: function crosstab(unknown, unknown) does not exist 

所以,我試圖安裝tablefunc,但現在越來越:

postgres=# CREATE EXTENSION tablefunc; 
ERROR: could not open extension control file 
"/Applications/Server.app/Contents/ServerRoot/usr/share/postgresql/extension/tablefunc.control": No such file or directory 

所以,貌似有些搜索路徑某處搞砸了。 任何想法如何解決?

編輯:這顯然與具有機器上的兩個Postgres的情況下,要做到在

/Applications/Server.app/Contents/ServerRoot/usr/bin/psql 

/Library/PostgreSQL/9.3/bin/psql 

而且目前只有/庫版本有tablefunc.control它的下面。所以第一個問題是 - 我應該嘗試切換機器使用的Postgres實例嗎?或者我應該嘗試將tablefunc安裝到/Server.app實例中?

回答

0

此問題在我升級到優勝美地後神奇地消失了

相關問題