
Progres
BIG*BOSS
这个作者很懒,什么都没留下…
展开
-
【Postgresql】jsonb类型创建、更新、删除、查询
1. 创建jsonb类型的值 1.1 jsonb_build_object jsonb_build_object(key1,value1,key2,value2 ... keyN,valueN) 1.2 jsonb_build_array jsonb_build_array(value1,value2 ...) 1.3 直接将json字符串强转 2. 查询 https://www.postgresql.org/docs/13/functions-json.html 2.1 使用key查询val原创 2021-11-17 11:46:55 · 3773 阅读 · 0 评论 -
【Postgres-XL】添加角色gtm_proxy
修改配置 gtmProxy=y # Specify y if you conifugre at least one GTM proxy. You may not configure gtm proxies # only when you dont' configure GTM slaves. # If you specify this value not to y, the following parameters will be set to default empty原创 2021-03-10 17:24:06 · 322 阅读 · 0 评论 -
【Postgresql】在PGXL上测试逻辑复制发布订阅功能
修改wal_level = logical #wal_level = replica # minimal, replica, or logical wal_level = logical # minimal, replica, or logical 测试开始 CREATE TABLE customers ( login text PRIMARY KEY, full_name text NOT NULL, registration_date timestamptz NOT NULL DEFAU原创 2021-01-11 10:02:28 · 263 阅读 · 0 评论 -
【Postgres-XL】Read Committed隔离级别的复制分布表加锁实验
声明 meta_data表的分布规则是复制分布 查看锁的SQL SELECT locktype, relation :: regclass AS rel, page || ',' || tuple AS ctid, virtualxid AS vxid, transactionid AS xid, virtualtransaction AS vxid2, pid, MODE, GRANTED FROM pg_locks; 复制分布表加锁实验 T1 T2 begin原创 2021-01-09 10:49:49 · 256 阅读 · 0 评论 -
【postgresql】shp2pgsql
shp2pgsql -s 3857 -c -W "GBK" 净初级生产力.shp public.jjjj | psql -d postgres -U postgres -p 5436原创 2021-01-08 10:57:09 · 505 阅读 · 0 评论 -
【Postgres-XL】并行查询之谜
单机的postgresql并发查询 开启了并发查询,查看查询计划 Gather (cost=1.65..1419.84 rows=325 width=452) (actual time=50.680..218.201 rows=36004 loops=1) Workers Planned: 2 Workers Launched: 2 -> Append (cost=1.65..1419.84 rows=137 width=452) (actual time=6.576..155.12原创 2020-11-17 17:56:17 · 618 阅读 · 0 评论 -
【Postgis】PostgresXL安装Postgis
PostGIS具有以下构建和使用要求: 需要 Postgresql 9.5或更高版本。我使用PostgresXL10-基于Postgresql 10.6 ; GNU C编译器(gcc); GNU Make(gmake或make); Proj4重新投影库,版本4.6.0或更高 ; GEOS几何库(版本3.6或更高版本),但建议使用GEOS 3.7+以充分利用所有新功能 ; LibXML2,版本2.5.x或更高版本。LibXML2当前用于某些导入功能(ST_GeomFromGML和ST_GeomFromKML原创 2020-09-28 16:53:17 · 1280 阅读 · 1 评论 -
【Postgres-XL-10】安装实战
卸载PGX 停止PGXL pgxc_ctl -c /home/postgres/pgxc_ctl/pgxc_ctl.conf stop all 然后删除PGXL所有文件 rm -rf /postgres 删除PGXL用户 [root@site84 ~]# userdel -r postgres userdel: user postgres is currently used by process 24261 没有删除成功,原因是用户root-> su - postgres-> su - r原创 2020-09-23 14:31:35 · 826 阅读 · 0 评论