码迷,mamicode.com
首页 > 数据库 > 详细

除了mysql 和 sql server, 你还有另外一种选择 postgreSQL

时间:2020-11-11 16:31:33      阅读:18      评论:0      收藏:0      [点我收藏+]

标签:bin   live   add-ons   首页   基本   source   put   官网   个人   

数据库的重要性,不用多说。数据库的名字,大家应该也知道很多。就国内来说,使用者最多的应该是mysql 和sql server,大企业用ORACLE的也不在少数。

就我个人而言,在使用.NET的时候,基本用的是SQL Server,毕竟和微软是一家的产品。用PHP或者其他语言的时候,基本就是Mysql(mariadb)。

话不多说,先了解一下PostgreSql的一些基本情况,作为一个工程师,学习一个新技能,我的首要选择,是先到官网去看看,毕竟官网的代表官方的准确性。如果官方的看不到,再去百度,或者在博客园,

再找一些通俗易懂的解析。

官方网站:https://www.postgresql.org/。

首页一个醒目的大字:PostgreSQL: The World‘s Most Advanced Open Source Relational Database(自称世界上最先进的开源关系数据库)。
官网的自我介绍:
PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads. The origins of PostgreSQL date back to 1986 as part of the POSTGRES project at the University of California at Berkeley and has more than 30 years of active development on the core platform.

PostgreSQL has earned a strong reputation for its proven architecture, reliability, data integrity, robust feature set, extensibility, and the dedication of the open source community behind the software to consistently deliver performant and innovative solutions. PostgreSQL runs on all major operating systems, has been ACID-compliant since 2001, and has powerful add-ons such as the popular PostGIS geospatial database extender. It is no surprise that PostgreSQL has become the open source relational database of choice for many people and organisations.

起源于1986年的加利福尼亚大学的POSTGRES,超过30年的历史。

PostgreSQL 特征

  • 函数:通过函数,可以在数据库服务器端执行指令程序。

  • 索引:用户可以自定义索引方法,或使用内置的 B 树,哈希表与 GiST 索引。

  • 触发器:触发器是由SQL语句查询所触发的事件。如:一个INSERT语句可能触发一个检查数据完整性的触发器。触发器通常由INSERT或UPDATE语句触发。 多版本并发控制:PostgreSQL使用多版本并发控制(MVCC,Multiversion concurrency control)系统进行并发控制,该系统向每个用户提供了一个数据库的"快照",用户在事务内所作的每个修改,对于其他的用户都不可见,直到该事务成功提交。

  • 规则:规则(RULE)允许一个查询能被重写,通常用来实现对视图(VIEW)的操作,如插入(INSERT)、更新(UPDATE)、删除(DELETE)。

  • 数据类型:包括文本、任意精度的数值数组、JSON 数据、枚举类型、XML 数据等。

  • 全文检索:通过 Tsearch2 或 OpenFTS,8.3版本中内嵌 Tsearch2。

  • NoSQL:JSON,JSONB,XML,HStore 原生支持,至 NoSQL 数据库的外部数据包装器。

  • 数据仓库:能平滑迁移至同属 PostgreSQL 生态的 GreenPlum,DeepGreen,HAWK 等,使用 FDW 进行 ETL。

当然,作为开源数据库,跨平台,肯定不是问题,支持windows,Mac,linux 等系统。

除了mysql 和 sql server, 你还有另外一种选择 postgreSQL

标签:bin   live   add-ons   首页   基本   source   put   官网   个人   

原文地址:https://www.cnblogs.com/pzscit/p/13766752.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!