http://www.cnblogs.com/jianyungsun/p/6647203.html http://blog.csdn.net/pg_guo/article/details/51083502 String、JsonObject、JavaBean 互相转换 User user = new ...
分类:
编程语言 时间:
2017-07-21 15:44:08
阅读次数:
329
一. 简单web框架 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> body{ margin: 0; } .pg-header{ height: 48px; mi ...
分类:
Web程序 时间:
2017-07-18 23:04:17
阅读次数:
266
Hat's Tea Problem Description Hat is a member of PG Studio. Hat codes a lot and so he often buys tea at tea vending machine. But the tea vending machi ...
分类:
其他好文 时间:
2017-07-14 16:30:19
阅读次数:
151
原文:http://www.cnblogs.com/me115/p/6366374.html Pool是存储对象的逻辑分区,它规定了数据冗余的类型和对应的副本分布策略;支持两种类型:副本(replicated)和 纠删码( Erasure Code);目前我们公司内部使用的Pool都是副本类型(3副 ...
分类:
其他好文 时间:
2017-07-14 12:00:35
阅读次数:
237
--definepartitionedtable:t_range_listcreatetablet_range_list(idbigserial,tenant_idint,crt_timetimestamp)partitionbylist(mod(tenant_id,10));--level1:list--list(mod(tenant_id,10))createtablet_range_list_0partitionoft_range_list(id,tenant_id,crt_time)forvalue..
分类:
其他好文 时间:
2017-07-12 15:16:36
阅读次数:
160
原文:http://www.linuxidc.com/Linux/2017-04/142518.htm 背景 集群状态报错,如下: 分析 问题原因是集群osd 数量较少,在我的测试过程中,由于搭建rgw网关、和OpenStack集成等,创建了大量的pool,每个pool要占用一些pg ,ceph集群 ...
分类:
其他好文 时间:
2017-07-12 12:03:38
阅读次数:
153
--1.查询指定库下面的活动会话,procpid字段表示会话Proc select * from pg_stat_activity where datname = 'dbname'; --2.中断查询,${procpid}表示上面查询对应的procpid,下同 select pg_cancel_ba... ...
分类:
系统相关 时间:
2017-07-11 01:00:48
阅读次数:
332
备份还原方法:pg_dump和pg_restore,先仔细说明这两个命令,再记录我的操作方法。 远程复制scp: #which scp /usr/bin/scp #rpm -qf /usr/bin/scp /openssh-client.xxxx # ssh -p 端口 zhoz@zhoz.com ...
分类:
数据库 时间:
2017-07-10 19:17:42
阅读次数:
366
一、连接数据库 PG安装好以后可以用PgAdmin连接数据库,端口号,默认PostGreSQL的端口号是5432 二、数据表的显示 PGAdmin的结果集显示界面表头都有两行,一行是字段名,一行是字段的数据类型。 三、Postgre查询语法 在PostGreSQL的查询语句中,大小写是不敏感的。并且 ...
分类:
数据库 时间:
2017-07-08 16:13:19
阅读次数:
241