簡體   English   中英

在PostgreSQL上使用SET命令

[英]Using SET command on postgreSQL

我正在嘗試在PostGIS中安裝TIGER地理編碼器,但是遇到了問題。 我正在使用這些說明 我需要更改程序可執行文件。 為了獲得程序可執行文件的當前狀態,我運行以下代碼:

SELECT * FROM tiger.loader_platform WHERE os = 'ravim';

然后我跑

 SET unzip_command ="C:\Program Files\7-Zip\8z.exe".

但是,這樣做會使我收到一條錯誤消息:錯誤:無法識別的配置參數“ unzip_command”。 我不明白為什么會收到該錯誤消息。

這是用於創建表格的代碼(添加地址解析器擴展后,表格會自動生成)

-- Table: tiger.loader_platform

-- DROP TABLE tiger.loader_platform;

CREATE TABLE tiger.loader_platform
(
  os character varying(50) NOT NULL,
  declare_sect text,
  pgbin text,
  wget text,
  unzip_command text,
  psql text,
  path_sep text,
  loader text,
  environ_set_command text,
  county_process_command text,
  CONSTRAINT loader_platform_pkey PRIMARY KEY (os)
)
WITH (
  OIDS=FALSE
);
ALTER TABLE tiger.loader_platform
  OWNER TO postgres;
GRANT ALL ON TABLE tiger.loader_platform TO postgres;
GRANT SELECT ON TABLE tiger.loader_platform TO public;

感謝Falmarri !,看來可以解決問題。

您正在看錯東西。 您正在運行的SET命令用於設置配置。 您想更新表格;

http://www.postgresql.org/docs/current/static/sql-update.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM