PostgreSQL数据库
文章平均质量分 64
自己学习PostgreSQL数据库的记录
msdnchina
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[转帖]从pg11开始在windows平台上支持large pages(即:HugePage)
测试环境:Windows 10 1909 18363.1198PostgreSQL 11.10,从edb公司官网下载的,介质名称为“postgresql-11.10-1-windows-x64.exe”虚拟机环境,分配给虚拟机8G物理内存开启large pages的步骤0.安装PostgreSQL 11.101.关闭windows uac控制面板--系统和安全--更改用户账户控制设置--改为'从不通知',点击确定。2.在windows组策略编辑器,赋予运行Pos...转载 2020-12-08 15:46:35 · 2582 阅读 · 0 评论 -
PostgreSQL 前后端协议中的查询方式:Simple Query、Extended Query
PostgreSQL 前后端协议中的查询方式:Simple Query、Extended Query1、简单查询(Simple Query)简单地把 SQL 语句发送给 backend,backend 也只是简单地执行该 SQL 语句并把结果回复给 client。client 发送 SQL 语句 insert into guestbook values(11,'off');backend 回复结果2、扩展查询(Extended Query)首先解释一下 prepared-.转载 2020-12-07 15:13:59 · 1324 阅读 · 0 评论 -
A Run Task ended with Return Code 9009. What does that mean? (SCI40123)
A Run Task ended with Return Code 9009. What does that mean? (SCI40123)https://www.ibm.com/support/pages/node/184239Question & AnswerQuestionA Run Task ended with Return Code 9009. What does that mean? (SCI40123)CauseAnswerThis is prob.转载 2020-12-02 16:07:39 · 501 阅读 · 0 评论 -
linux的C 函数fflush()的相关说明
相关参考链接:https://blog.csdn.net/msdnchina/article/details/99205560在linux命令行中执行manfflush即可。我的本意是想弄明白fflush()函数是数据的写入目的地是哪里,如下是manfflush结果:NOTES Note that fflush() only flushes the user-space buffers provided by the C library. To ensure tha...原创 2020-07-17 11:58:28 · 585 阅读 · 0 评论 -
PostgreSQL查找行锁等待
第一个session:postgres=# begin;BEGINpostgres=# update t10 set id=1 where id=111;UPDATE 1postgres=# select pg_backend_pid(); pg_backend_pid ---------------- 28120(1 row)postgres=# update t100 set id=222 where id=2;UPDATE 1postgres=# .转载 2020-07-13 17:42:09 · 922 阅读 · 0 评论 -
【转】统计pg_wal目录下的wal文件个数的sql语句
来源于:https://pgdash.io/blog/postgres-monitor-wal-files.htmlpostgres=# SELECT COUNT(*) FROM pg_ls_dir('pg_wal') WHERE pg_ls_dir ~ '^[0-9A-F]{24}';count------- 64(1 row)postgres=#转载 2020-07-08 19:21:37 · 521 阅读 · 0 评论 -
确定PostgreSQL数据库超级用户的方法
场景描述:现有一个采用源码编译方式安装的原生PostgreSQL数据库,linux操作系统,并且该操作系统下有1000个操作系统用户,请问怎么能最快速的确定这个原生PostgreSQL数据库initdb时指定的超级用户是哪个?答案:linux命令行执行如下命令即可strings $PGDATA/global/1260...原创 2020-06-30 20:11:53 · 2136 阅读 · 0 评论 -
【转载】PG的两种集群技术:Pgpool-II与Postgres-XL
转自:https://segmentfault.com/a/1190000007012082最近研究了PG的两种集群方案,分别是Pgpool-II和Postgres-XL,在这里总结一下二者的机制、结构、优劣、测试结果等。1、 Pgpool-II和Postgres-XL简介据我目前的了解,Pgpool-II和Postgres-XL是PG集群开源实现中比较成功的两个项目,互联网上相关的介绍...转载 2019-11-06 22:12:13 · 527 阅读 · 0 评论 -
postgresql安装启动服务器以及uuid插件安装
postgresql安装目录:/opt/postgresql/9.6postgresql数据库目录:/data/postgresql/准备包:postgresql:https://www.postgresql.org/ftp/source/ postgresql-9.6.2.tar.gzuuid-ossp:https://launchpad.net/ubuntu/+source/ossp...转载 2019-11-01 21:24:58 · 932 阅读 · 0 评论 -
为 PostgreSQL 添加 OSSP UUID 支持
PostgreSQL 依赖OSSP UUID产生 UUID 值,需要在 configure 时加入--with-ossp-uuid参数。学习过程中发现了两种 OSSP UUID 包的安装方式,记录下来方便以后查阅。第一种方法到 OSSP UUID 官网下载源码安装包,目前最新是uuid-1.6.2.tar.gz,解压后./configure && make &...转载 2019-11-01 21:23:57 · 773 阅读 · 1 评论 -
PostgreSQL学习之一
PostgreSQL数据库命令initdbcreateuserdropusercreatedbdropdbpg_dumppg_dumpallpg_restorevacuumdbpg_ctlpostgrepostgmasterpsqlpsql元命令\?\o\l\q\c\dt\d\di\原创 2014-08-08 16:58:38 · 970 阅读 · 0 评论 -
关于各种数据库中表名的大小写
关于各种数据库中表名的大小写原创 2015-04-26 16:14:00 · 6265 阅读 · 0 评论 -
psql中的\x命令
这个\x命令的含义是:psql客户端每行仅仅显示一个字段以及该字段值.关闭\x效果的命令是:postgres=# \x offExpanded display is off.或者postgres=# \x --->>>也就是这个\x是开关键Expanded display is off.postgres=# 详情请见:postgres=# \?Gene...原创 2016-07-07 11:12:11 · 2175 阅读 · 0 评论 -
由PostgreSQL衍生出来的数据库
由PostgreSQL衍生出来的数据库转载 2016-12-14 18:02:50 · 1935 阅读 · 0 评论 -
关于PostgreSQL数据库中的表空间,user,role,权限,模式(schema)的概念.
关于PostgreSQL数据库中的表空间,user,role,权限,模式(schema)的概念.转载 2017-02-25 20:48:02 · 7257 阅读 · 0 评论 -
PG和Oracle的差异
PG和Oracle的差异原创 2017-02-26 20:57:23 · 7707 阅读 · 0 评论 -
PG数据库9.6.0版本的中文文档
PG数据库9.6.0版本的中文文档原创 2017-02-27 10:42:05 · 2204 阅读 · 0 评论 -
PostgreSQL数据库psql的使用之一
PostgreSQL数据库psql的使用之一原创 2017-02-28 17:26:55 · 698 阅读 · 0 评论 -
消失的postmaster进程
消失的postmaster进程原创 2017-03-02 18:29:23 · 1677 阅读 · 0 评论 -
PostgreSQL数据库psql的使用之二
PostgreSQL数据库psql的使用之二原创 2017-03-02 18:44:49 · 987 阅读 · 0 评论 -
PostgreSQL数据库psql的使用之三
[postgres@rhel73 data]$ [postgres@rhel73 data]$ psql -l -p 5432 List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges原创 2017-03-02 18:49:56 · 561 阅读 · 0 评论 -
Greenplum视频---01Greenplum架构的课堂笔记
Greenplum视频---01Greenplum架构的课堂笔记转载 2017-03-06 22:50:04 · 940 阅读 · 0 评论 -
PostgreSQL数据库中匿名块的写法
PostgreSQL数据库中匿名块的写法原创 2017-03-07 18:10:54 · 6174 阅读 · 0 评论 -
关于PostgreSQL数据库中的information_schema
关于PostgreSQL数据库中的information_schema转载 2017-03-08 09:10:43 · 10184 阅读 · 0 评论 -
RHEL7.3下,配置OS启动之后自动启动PostgreSQL数据库Cluster.
RHEL7.3下,配置OS启动之后自动启动PostgreSQL数据库Cluster.原创 2017-03-08 17:41:52 · 1110 阅读 · 0 评论 -
查看PostgreSQL数据库中SQL语句的执行计划
查看PostgreSQL数据库中SQL语句的执行计划原创 2017-03-09 19:05:50 · 4547 阅读 · 1 评论 -
PG10 Beat2的安装
PG10 Beat2的安装原创 2017-08-07 14:02:14 · 530 阅读 · 0 评论 -
PG10的函数比PG9.6变化不少
PG10的函数比PG9.6变化不少原创 2017-11-09 15:24:04 · 1535 阅读 · 0 评论 -
PG10 中pg_current_wal_insert_lsn()和pg_walfile_name()的使用
PG10 中pg_current_wal_insert_lsn()和pg_walfile_name()的使用原创 2017-11-09 15:34:09 · 1485 阅读 · 0 评论 -
postgresql中客户端连接到服务器端之后产生的进程情况
相关参考文章:http://blog.csdn.net/msdnchina/article/details/79334115原创 2017-11-09 17:50:02 · 849 阅读 · 0 评论 -
postgresql 10 Background Writer
postgresql 10 Background Writer转载 2017-11-10 16:26:03 · 459 阅读 · 0 评论 -
pg的进程架构
pg的进程架构原创 2017-11-10 16:56:50 · 828 阅读 · 0 评论 -
[转帖]PostgreSQL本地登录trust、ident认证权限控制
[转帖]PostgreSQL本地登录trust、ident认证权限控制转载 2017-11-22 18:18:41 · 1372 阅读 · 0 评论 -
Dbeaver企业版本的功能
Dbeaver企业版本的功能转载 2017-12-05 15:11:07 · 13124 阅读 · 0 评论 -
开源数据库工具DBeaver能支持的数据库种类
DBeaver支持的数据库类型原创 2017-12-15 23:47:21 · 2662 阅读 · 0 评论 -
在pg中禁用触发器
The ability to temporarily enable or disable a trigger is provided by ALTER TABLE, not byALTER TRIGGER, becauseALTER TRIGGER has no convenient way to express the option of enabling or disabl转载 2018-01-05 14:25:54 · 1214 阅读 · 0 评论 -
PG中是允许中文双引号作为表名的
PG中如下SQL是能执行成功的:create table “lei”(c1 char(3))如上SQL执行之后的效果就是:在PG数据字典中,中文双引号是表名的一部分。Oracle中如上SQL是执行不成功的,报:ORA-00911: invalid character原创 2018-01-26 12:41:47 · 836 阅读 · 0 评论 -
【转自PostgreSQL中文社区 】pg_chameleon - MySQL2PostgreSQL复制工具
https://weibo.com/ttarticle/p/show?id=2309404194013937814131#interestpg_chameleon 是一款 MySQL 到 PostgreSQL 的复制工具。2018-01-01,pg_chameleon 2.0 版本发布了,新版本可以兼容 python 3.3+,并且带来了许多新的改进。新特性将同一 MyS转载 2018-02-07 20:04:04 · 1551 阅读 · 0 评论 -
PostgreSQL数据库中的to_char函数
https://www.postgresql.org/docs/10/static/functions-formatting.html原创 2018-02-09 11:39:55 · 28078 阅读 · 0 评论 -
PostgreSQL数据库中有关timezone的视图
PostgreSQL数据库中有关timezone的视图pg_timezone_namespg_timezone_abbrevs参考链接见下:https://www.postgresql.org/docs/10/static/view-pg-timezone-abbrevs.htmlhttps://www.postgresql.org/docs/10/static/view-pg-timezone-...原创 2018-02-09 13:39:31 · 1206 阅读 · 0 评论