命令行

安装与启动

  • ubuntu 安装psql客户端

    1. sudo apt install postgresql-client-common
    2. sudo apt install postgresql-client
  • 设置本地登陆不需要密码

    1. 修改配置文件 : /var/lib/postgresql/data/pg_hba.conf
    2. host all all all md5: 需要密码,local用 trust不需要密码

命令行

数据类型

  • integer/bigint
  • varchar(32)/text
  • date/time/timestamp
  • boolean
  • double precision
  • xml