PostgreSQL

...

https://www.postgresql.org/ - PostgreSQL 官网

默认端口 5432

文档

下载与安装

PostgreSQL with Docker

# docker pull postgres:17.2-alpine3.20
docker pull m.daocloud.io/docker.io/library/postgres:17.2-alpine3.20
17.2-alpine3.20: Pulling from postgres
da9db072f522: Already exists
788f9103b422: Pull complete
e51a59271ee0: Pull complete
628d1767b54a: Pull complete
e0e32a3e0983: Pull complete
af24098c3ecb: Pull complete
471e062306b2: Pull complete
5010a4f3c1ea: Pull complete
572c54261b6d: Pull complete
0ab9846b934e: Pull complete
Digest: sha256:e7897baa70dae1968d23d785adb4aeb699175e0bcaae44f98a7083ecb9668b93
Status: Downloaded newer image for m.daocloud.io/docker.io/library/postgres:17.2-alpine3.20
m.daocloud.io/docker.io/library/postgres:17.2-alpine3.20

安装时语言选择 locale 用默认, 不要用简体中文, 不然会有奇怪的问题.

源码

Clients

举些栗子

postgres=# select version();
                          version
------------------------------------------------------------
 PostgreSQL 11.5, compiled by Visual C++ build 1914, 64-bit
(1 行记录)

posted @ 2019-05-16 14:07  taadis  阅读(145)  评论(0)    收藏  举报
扫码关注

扫码关注我