PostgreSQL 覆盖 Oracle 18c 重大新特性

标签

PostgreSQL , Oracle , 兼容性 , 18c

背景

Oracle 18c 发布了诸多新特性,其中大部分Oracle 18c的重大特性,在早期版本的PostgreSQL数据库已支持。

如下

一、开发特性

1 图式搜索

Oracle 18c

《PostgreSQL 覆盖 Oracle 18c 重大新特性》

SQL-Based Property Graph Query and Analytics

https://docs.oracle.com/en/database/oracle/oracle-database/18/spgdg/sql-based-property-graph-query-analytics.html#GUID-C5CC6650-0375-4F32-8317-BAF859C1909C

PostgreSQL 8.4+ (2009 year+)

1、2009年PostgreSQL社区版本8.4,加入CTE递归语法的支持,支持图式搜索。

《PostgreSQL 图式搜索(graph search)实践 – 百亿级图谱,毫秒响应》

《PostgreSQL 实践 – 内容社区(如论坛)图式搜索应用》

《小微贷款、天使投资(风控助手)业务数据库设计(图式搜索\图谱分析) – 阿里云RDS PostgreSQL, HybridDB for PostgreSQL最佳实践》

2、2017年3月,基于PostgreSQL的专业图数据库AgensGraph发布1.0,兼容标准SQL和图式搜索语法openCypher。

AgensGraph supports ANSI-SQL and openCypher (http://www.opencypher.org).

https://github.com/bitnine-oss/agensgraph

2 JSON 增强

Oracle 18c

SQL Enhancements for JSON

支持行转JSON。

https://www.oracle.com/pls/topic/lookup?ctx=en/database/oracle/oracle-database/18/newft&id=ADJSN-GUID-8C9B00DD-45D8-499B-919C-8632E034B664

PostgreSQL 9.2+ (2012 year+)

2012年PostgreSQL社区版本9.2,加入JSON的支持。

https://www.postgresql.org/docs/current/static/datatype-json.html

9.2已支持行转JSON

row_to_json(record[, pretty_bool])

除此之外,PostgreSQL还支持嵌套JSON,K-V转JSON,K-V类型。支持数组类型,LTREE,RANGE,XML,TS,IP 等类型,对开发更加的友好。

https://www.postgresql.org/docs/devel/static/functions.html

https://www.postgresql.org/docs/devel/static/hstore.html

https://www.postgresql.org/docs/current/static/ltree.html

3 空间数据sharding

《PostgreSQL 覆盖 Oracle 18c 重大新特性》

Oracle 18c

    原文作者:rewq123
    原文地址: https://www.jianshu.com/p/dee5e4c61261
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞