PGAdmin 4使用笔记

时间:2022-12-04 13:59:45

1. import

 默认username为postgres

 psql -U username -h localhost -d databasename -f "file address"

2. 最大连接数

 更改(Windows):PostgreSQL/data/postgresql.conf  修改 max_connections = 100(默认100)

 查看:show max_connections;

查看当前连接数:select count(1) from pg_stat_activity;