建dblink報錯)
文章目錄環(huán)境癥狀問題原因解決方案環(huán)境系統(tǒng)平臺Linux x86-64 Red Hat Enterprise Linux 8版本4.5.8癥狀hgdb安全版458創(chuàng)建dblink報錯create extension dblink ERROR: syntax error at or near TYPE 時間: 0.006s問題原因?qū)㈥P(guān)鍵字 type 配置到flatten_keyword_list參數(shù)中關(guān)鍵字變?yōu)槠胀?biāo)識符。解決方案參數(shù)解釋flatten_keyword_list可配置任意關(guān)鍵字到此列表中被配置的關(guān)鍵字會被當(dāng)做普通的標(biāo)識符識別當(dāng)關(guān)鍵字被識別成普通字符時,有些需要關(guān)鍵字的語法也就不能被識別。session_restore_keyword_list可配置任意關(guān)鍵字到此列表中被配置的關(guān)鍵字與flatten_keyword_list沖突時沖突關(guān)鍵字不會退化成標(biāo)識符。當(dāng)前會話再恢復(fù)為關(guān)鍵字加到這個列表。方法一去除flatten_keyword_list中關(guān)鍵字vi postgresql.auto.conf flatten_keyword_listxxxx,copy,xxxx 修改為 flatten_keyword_listxxxx,xxxx psql -U sysdba select pg_reload_conf()方法二session_restore_keyword_list 中添加關(guān)鍵字vi postgresql.auto.conf flatten_keyword_listxxxx,copy,xxxx session_restore_keyword_listcopy psql -U sysdba select pg_reload_conf()