一,简介 ODB是应用于C++的一个开源、跨平台、跨数据库的对象关系映射(ORM)系统。 它可以让你持久化C++对象到关系数据库,而不必处理表、列或者SQL,无需手动编写任何映射代码。 ODB支持MySQL,SQLite,PostgreSQL,Oracle和微软SQL Server关系数据库以及C ...
分类:
数据库 时间:
2017-09-19 00:23:31
阅读次数:
270
https://www.2cto.com/database/201707/658910.html 开发环境 Visual Studio 2017[15.2(26430.16)] PostgreSQL 9.6.3 配置步骤 先从上方的网址中下载需要版本的PostgreSQL。此处有32位和64位可选, ...
分类:
数据库 时间:
2017-09-16 15:58:18
阅读次数:
462
参考来自:https://stackoverflow.com/questions/40647600/postgresql-multi-value-upserts/46233907#46233907 1.before insert 2.insert sql 3.after insert ...
分类:
数据库 时间:
2017-09-15 18:58:34
阅读次数:
209
1. 索引的特性 1.1 加快条件的检索的特性 当表数据量越来越大时查询速度会下降,在表的条件字段上使用索引,快速定位到可能满足条件的记录,不需要遍历所有记录。 #在这个案例中:执行同一条SQL。t2有索引的执行数据是0.052 ms;t1没有索引的是:5.741 ms; 1.2 有序的特性 索引本 ...
分类:
数据库 时间:
2017-09-15 16:39:52
阅读次数:
227
Postgres 10 新特性 分区表 http://francs3.blog.163.com/blog/static/40576727201742103158135/ Postgres 10 之前分区表插件实现 pg_pathman https://yq.aliyun.com/articles/6 ...
分类:
数据库 时间:
2017-09-15 10:11:38
阅读次数:
193
https://my.oschina.net/aven92/blog/518928 · PostgreSQL中国社区: http://postgres.cn/index.php/home · PostgreSQL专业1群: 3336901(已满) · PostgreSQL专业2群: 10091038 ...
分类:
数据库 时间:
2017-09-14 14:59:38
阅读次数:
312
一.环境准备a.关闭selinxub.关闭iptablesc.centos6.5d.postgresql9.4.4master:192.168.1.211slave:192.168.1.212时间同步:#同步系统时间[root@localhost~]#rm-rf/etc/localtime[root@localhost~]#ln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime[root@localhost~]#yumi..
分类:
数据库 时间:
2017-09-14 10:48:09
阅读次数:
224
1、pt-heartbeat的作用 pt-heartbeat measures replication lag on a MySQL or PostgreSQL server. You can use it to update a master or monitor a replica. If po ...
分类:
其他好文 时间:
2017-09-14 00:39:47
阅读次数:
247
centos 下安装 postgresql 数据库初始化 开启数据库 postgres 的配置文件路径 初始化数据库集群 ...
分类:
数据库 时间:
2017-09-12 18:31:59
阅读次数:
178
某天日志中连续都是如下的异常:2017-09-0621:39:52.936ERROR[DruidDataSource.java:1974]createconnectionholdererrororg.postgresql.util.PSQLException:ERROR:currenttransactionisaborted,commandsignoreduntilendoftransactionblockatorg.postgresql.core.v3.QueryExecuto..
分类:
其他好文 时间:
2017-09-12 15:43:20
阅读次数:
850