工作中的Postgres基础操作 # 切换posgres用户 su - postgres #进入PG库 $ psql #切换数据库 \c 数据库名 创建扩展 create extension postgis; create extension postgis_topology;