postgreSQL
startay
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
1. postgreSQL install
下载页https://www.postgresql.org/download a) yum install-yhttps://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm b) check postgresql yum ls -l /et...原创 2019-03-30 13:50:52 · 546 阅读 · 0 评论 -
2. postgresql创建数据库实例
1. create user yum安装,会自动创建postgres用户,但是,建议安装前,先创建用户 [root@pghost1 ~]$ groupadd -g 1000 postgres [root@pghost1 ~]$ useradd -g 1000 -u 1000 postgres [root@pghost1 ~]$ id postgres uid=1000(postgres)...原创 2019-03-30 13:56:04 · 3581 阅读 · 0 评论 -
3. postgresql 启停数据库、开机启动
1. 数据库启动 su - postgres vi .bash_profile PGDATA=/pgdata/10/data export PGDATA PATH=$PATH:/usr/pgsql-10/bin export PATH -bash-4.2$ pg_ctl start or pg_ctl -D $PGDATA start waiting f...原创 2019-03-30 14:00:28 · 1560 阅读 · 0 评论 -
4. postgresql数据库配置
PostgreSQL有两个重要的全局配置文件,都位于初始化数据目录中 postgresql.conf :负责配置文件位置、资源限制、集群复制等 pg_hba.conf :负责客户端的连接和认证 [root@instance-795y2mib data]# ls -l /pgdata/10/data |grep conf -rw------- 1 postgres pos...原创 2019-03-30 14:09:08 · 6328 阅读 · 0 评论 -
PostgreSQL调优参数
主要选项 选项 默认值 说明 是否优化 原因 max_connections 100 允许客户端连接的最大数目 否 因为在测试的过程中,100个连接已经足够 fsync on 强制把数据同步更新到磁盘 是 因为系统的IO压力很大,为了更好的测试其他配置的影响,把改参数改为off shared_buffers...转载 2019-04-11 09:44:30 · 1317 阅读 · 0 评论 -
ROLE&TABLE PRIVELEGE
ROLE/USER privilege select * from pg_roles; rolname | rolsuper | rolinherit | rolcreaterole | rolcreatedb | rolcanlogin | rolreplication | rolconnlimit | rolpassword | rolvaliduntil...原创 2019-04-24 15:56:41 · 384 阅读 · 0 评论
分享