Greenplum中如何設定search path

2021-09-22 02:58:13 字數 621 閱讀 8924

用報表工具連線greenplum失敗,報schema不存在錯誤。經判斷需設定search_path。

1)連線greenplum

c:\windows\system32>psql -h 1.2.345.678 -p 5432 -d tpc_1 -u gpuser

2)檢視search_path

tpc_1# show search_path;

3)修改search_path

tpc_1=# alter database tpc_1 set search_path to "$user", public, "my_schema";

4)退出

tpc_1=# \q

5)連線greenplum

c:\windows\system32>psql -h 1.2.345.678 -p 5432 -d tpc_1 -u gpuser

6)檢視search_path

tpc_1# show search_path;

備註1:如果有大寫字母要用雙引號,例如"my_schema"、

備註2:退出後重進才能看到修改生效。

備註2:1.2.345.678 是ip位址,5432 是埠號,tpc_1是庫名,gpuser是使用者名稱

k8s中汙點設定

kubectl taint 汙點 taint 的組成 使用 kubectl taint 命令可以給某個 node 節點設定汙點,node 被設定上汙點之後就和 pod 之間存在了一種相 斥的關係,可以讓 node 拒絕 pod 的排程執行,甚至將 node 已經存在的 pod 驅逐出去 每個汙點的組...

linux中如何設定DHCP

linux如何設定dhcp 1 安裝 先拷貝dhcp 3.0.5.tar.gz軟體到 tmp目錄下 cd tmp gunzip dhcp 3.0.5.tar.gz tar xvf dhcp 3.0.5.tar 解開後會看到該目錄下新建乙個子目錄dhcp 3.0.5 cd dhcp 3.0.5 進入該...

Ubuntu中如何設定matplotlib中文字型

在windows中 font fontproperties fname r c windows fonts simsun.ttc size 14 在ubuntu中先要檢視ubuntu中自帶的中文字型 檢視字型可以用下面的方法 1.開啟 libreoffice 檢視 2.終端中檢視 如 終端中輸入以下...