
Postgresql
文章平均质量分 70
戏言无声
这个作者很懒,什么都没留下…
展开
-
Windows下Postgresql数据库的备份及恢复
--通过cmd进入目录cd C:\Program Files\PostgreSQL\9.6\bin--执行导出,localhost 或者IPpg_dump -h localhost -U postgres ship> C:\ship.bak--执行导入psql -h localhost -U postgres -d ship< C:\ship.bak...原创 2018-03-23 17:13:01 · 2058 阅读 · 0 评论 -
centos 7 安装postgresql9.6/10和Postgis
1、centos 7 安装postgresql9.6/10和Postgis--切换到root用户或者直接再root用户下操作suroot--卸载旧版yum remove postgresql*--安装打开https://yum.postgresql.org/repopackages.php ,找到自己需要的版本右键复制链接。yuminstall https://download.postgresq...原创 2018-03-23 17:18:29 · 4293 阅读 · 1 评论 -
Win环境下Postgresl的备份库的相关配置
1.修改主服务器和备服务器上的修改备数据库的pg_hba.conf文件连接权限: 修改成: 这时候必须确保在备份机器上能连上主数据库机器,主数据库机器器也能连接上备份机器(网络通畅,对应的端口可以访问): 2.对主数据库做一个基础备份(手动备份),然后把基础备份拷贝到standby机器(备数据库),再备份机器上新建一个数据库(虽然与主数据库不同名也不会影响数据库恢复,但是不建议。),把基...原创 2018-04-10 10:00:28 · 501 阅读 · 0 评论 -
Postgresql 10 内置分区测试
/* --1创建主表 --DROP TABLE public.ship_trackCREATE TABLE public.ship_track( st_id character varying NOT NULL, -- 船舶vitsId ship_id character varying NOT NULL, -- 船舶id lng numeric, -- 经度 lat nu...原创 2018-12-25 15:58:16 · 616 阅读 · 0 评论