有两种方式第一,在psql控制台中\l+第二,在数据库中查select pg_size_pretty(pg_database_size('数据库名'));...
分类:
数据库 时间:
2015-08-13 18:00:48
阅读次数:
203
解压PostgreSQL源代码包后可以到如下路径:postgresql-9.2.4\src\backend\replication下可以看到,basebackup.c,另外还可以看到walreceiver.c,walsender.c.basebackup做了什么一目了然:/*------------...
分类:
数据库 时间:
2015-08-10 21:54:06
阅读次数:
182
I am developing a Spring/Vaadin/Hibernate application. Everything works but I still have the following error markers in Eclipse STS 2.8.1: The hierarchy of the type BankView is inconsistent
The hie...
分类:
系统相关 时间:
2015-08-10 18:13:48
阅读次数:
137
https://www.baidu.com/s?wd=%E6%94%AF%E4%BB%98%E5%AE%9D%E6%B5%8B%E8%AF%95%E6%8E%A5%E5%8F%A3&rsv_spt=1&issp=1&f=3&rsv_bp=1&rsv_idx=2&ie=utf-8&tn=baiduhome_pg&rsv_enter=1&oq=%E6%94%AF%E4%BB%98%E5%AE%9...
分类:
其他好文 时间:
2015-08-07 16:42:00
阅读次数:
321
Pyhton 编辑错误
问题:
TabError: Inconsistent use of tabs and spaces in indentation
解决方法:
这个错误是说你用了tab键作缩进了,
因为在python不像C/C++里用大括号来区分程序块,而是用缩进
所以缩进很重要你把Tab都换成空格就好了...
分类:
其他好文 时间:
2015-08-05 22:25:03
阅读次数:
1015
官网:http://www.pipelinedb.com/pipelineDB是基于postgres的stream数据库。完全兼容pg的东西。由于产品需要解决性能这块瓶颈,老大让试试这款基于流计算的数据库。[pipeline@localhost ~]$ pipelinepipeline (9.4.4...
分类:
数据库 时间:
2015-08-04 12:43:52
阅读次数:
745
1. 大小差异 在主库上执行 select
????????application_name,
????????pg_size_pretty(pg_xlog_location_diff(pg_current_xlog_location(),?replay_location))?as?diff
from
????????...
分类:
数据库 时间:
2015-08-01 19:17:19
阅读次数:
894
PostgreSQL数据库中获取表主键名称一、如下表示,要获取teacher表的主键信息:select pg_constraint.conname as pk_name,pg_attribute.attname as colname,pg_type.typname as typename from ...
分类:
数据库 时间:
2015-07-30 16:36:01
阅读次数:
227
之前有两位朋友碰到过在对greenplum的系统构架更改后,出现全量恢复gprecoverseg -F也无法正常运行的情况。
报错信息为Unable to connect to database. Retrying 1
gprecoverseg failed. (Reason='Unable to connect to database and start transaction') exiting...
有幸拷得一份虚拟机上的全部文件,对其进行分析。
发现其实出现这个问题只需要修改pg_changetra...
分类:
数据库 时间:
2015-07-28 00:52:21
阅读次数:
741
“时间线”(Timeline)是PG一个很有特色的概念,在备份恢复方面的文档里面时有出现。但针对这个概念的详细解释却很少,也让人不太好理解,我们在此仔细解析一下。时间线的引入为了理解引入时间线的背景,我们来分析一下,如果没有时间线,会有什么问题?先举个将数据库恢复到以前时间点的例子。假设在一个数据库...
分类:
数据库 时间:
2015-07-22 01:29:20
阅读次数:
397