我在PostgreSQL中绝对是新人,我正在按照本教程检查是否在我的PostgreSQL安装中安装了PostGIS扩展。
我正在使用PostgreSQL 9.6.1。
所以我可以通过命令行访问我的PostgreSQL,我执行了这个命令:
SELECT PostGIS_full_version();
这是获得的输出:
C:\Users\Andrea>pasql -u admin 'pasql' 不是内部或外部命令、可运行程序或批处理文件。
C:\Users\Andrea>psql -U postgres
psql (9.6.1)
ATTENZIONE: Il code page della console (850) differisce dal code page
di Windows (1252). I caratteri a 8-bit potrebbero non
funzionare correttamente. Vedi le pagine di riferimento
psql "Note per utenti Windows" per i dettagli.
Digita "help" per avere un aiuto.
postgres=# SELECT PostGIS_full_version();
ERROR: function postgis_full_version() does not exist
RIGA 1: SELECT PostGIS_full_version();
^
NOTA: No function matches the given name and argument types. You might need to add explicit type casts.
postgres=#
所以我已经用标准用户完成了对数据库的访问,然后我执行了命令,但似乎PostGIS_full_version()函数不存在。
那么什么是手段?这意味着尚未安装简单的PoistGIS还是我做错了什么?(也许我必须在特定数据库上执行它?)