這個問題在標題中有很多概括: 在postgres中命名配置參數時,點代表什麼?點分隔符在postgres配置參數中的含義是什麼?
例如:
SET bar TO true;
結果ERROR: unrecognized configuration parameter "bar"
,但
SET foo.bar TO true;
結果Query returned successfully ...
這是爲什麼?僅供參考,我正在使用PostgreSQL 9.4
我一直無法在文檔中找到明確的答案。 作爲每http://www.postgresql.org/docs/9.4/static/sql-syntax-lexical.html:
週期在數字常數被使用,以分離模式, 表和列名(。)。
但是在這裏似乎並不是這種情況,因爲沒有名稱爲foo的模式,表或列。 Search_path設置爲默認(公共)。