diff --git a/Makefile b/Makefile index 3dedd7f80..b405ff61a 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ MODULE_big = age -age_sql = age--1.4.0.sql +age_sql = age--1.5.0.sql OBJS = src/backend/age.o \ src/backend/catalog/ag_catalog.o \ @@ -75,10 +75,12 @@ OBJS = src/backend/age.o \ EXTENSION = age -#SQLS = $(sort ($(wildcard sql/*.sql))) +# to allow cleaning of previous (old) age--.sql files +all_age_sql = $(shell find . -maxdepth 1 -type f -regex './age--[0-9]+\.[0-9]+\.[0-9]+\.sql') + SQLS := $(shell cat sql/sql_files) -SQLS := $(addprefix sql/,$(SQLS)) -SQLS := $(addsuffix .sql,$(SQLS)) +SQLS := $(addprefix sql/,$(SQLS)) +SQLS := $(addsuffix .sql,$(SQLS)) DATA_built = $(age_sql) @@ -115,7 +117,7 @@ ag_regress_dir = $(srcdir)/regress REGRESS_OPTS = --load-extension=age --inputdir=$(ag_regress_dir) --outputdir=$(ag_regress_dir) --temp-instance=$(ag_regress_dir)/instance --port=61958 --encoding=UTF-8 --temp-config $(ag_regress_dir)/age_regression.conf ag_regress_out = instance/ log/ results/ regression.* -EXTRA_CLEAN = $(addprefix $(ag_regress_dir)/, $(ag_regress_out)) src/backend/parser/cypher_gram.c src/include/parser/cypher_gram_def.h src/include/parser/cypher_kwlist_d.h $(age_sql) +EXTRA_CLEAN = $(addprefix $(ag_regress_dir)/, $(ag_regress_out)) src/backend/parser/cypher_gram.c src/include/parser/cypher_gram_def.h src/include/parser/cypher_kwlist_d.h $(all_age_sql) GEN_KEYWORDLIST = $(PERL) -I ./tools/ ./tools/gen_keywordlist.pl GEN_KEYWORDLIST_DEPS = ./tools/gen_keywordlist.pl tools/PerfectHash.pm diff --git a/README.md b/README.md index 66bc44d92..1d962e12b 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@   - +   diff --git a/RELEASE b/RELEASE index bbd324115..1e67a1332 100644 --- a/RELEASE +++ b/RELEASE @@ -15,46 +15,68 @@ # specific language governing permissions and limitations # under the License. -Release Notes for Apache AGE release 1.4.0 for PG 14 +Release Notes for Apache AGE release 1.5.0 for PostgreSQL version 14 -Apache AGE 1.4.0 - Release Notes +Apache AGE 1.5.0 - Release Notes -NOTE: This is an initial release of PG14. There are no upgrade - scripts to this release. +NOTE: Due to the complexity and the amount of additions, there are no + upgrade scripts to this release. NOTE: Some of these reference the master branch PR that was either applied to lower versions via a separate PR or merged into a newly created branch. -Added license in Python driver README.md (#956) -Added the toStringList() function (#1128) -Added toBooleanList() (#1165) -Added toFloatList() function (#1016) -Added toIntegerList() function (#1025) -Added regression tests for MATCH clause using labels only (#1019) -Added REGTYPEOID to toString function (#1036) -Added Dockerfile.dev & move docker-related files to "docker/" (#943) -Fixed complex MERGE causes crash (#897) (#961) -Fixed docker build files (#1104) -Fixed case sensitivity on label usage of reserved keyword (#1040) -Fixed issue 1000: Indexes created on WHERE (#1133) -Fixed issue 1002: Invalid reuse of variables in MATCH clause (#1003) -Fixed issue 1033: access operator on vle edge lists (#1037) -Fixed issue 1043: ERROR: container must be an array or object (#1046) -Fixed issue 1124: Segmentation fault when using specific tables (#1125) -Fixed issue 395: ERROR: container is not an agtype array (#1039) -Fixed issue 870: regarding orderability and added regression tests (#994) -Fixed issue 876: column reference "_age_default_alias_0" is ambiguous (#931) -Fixed issue 975: Invalid reuse of variables in CREATE clause (#977) -Fixed issue 989: Impossible to create array with > 100 items (#1001) -Fixed memory leak issues with age_load (#1142) -Fixed memory leaks in MERGE (merge_edge & merge_vertex) (#958) -Fixed MERGE crashes due to incorrect label type (#957) -Fixed MERGE variable reuse (#997) -Fixed misspellings in many AGE files (#985) -Fixed warning messages in DockerHub builds. (#1075) -Modified test_agtypes to view useful testing message (#992) -Optimised Antlr4ResultHandler initialization (#1169) -Updated CIs to pull correct image based on branch (#1105) -Updated files, format, and version information (#1063) -Updated README. +Add additional index support and performance enhancements (#1232) +Add an additional way to find a previous variable ref (#1450) +Add auto apply labeler workflow for PRs (#1161) +Add checks for array functions to recognize and decode VPC (#1064) +Add concat || operator to agtype (#1198) +Add exist(?, ?|, ?&) operators for agtype (#1218) +Add missing dependency in cypher_expr.c (#1256) +Add path extraction(#>, #>>)operators to agtype (#1224) +Add support for chained expressions in CASE (#1431) +Clean up agtype_to_int8, agtype_to_int4, & agtype_to_int2 (#1354) +Clean up #included files in parser directory (#1465) +Converted SQL main file into multiple files. (#1401) +docs: Add to Docker setup (#1204) +Extend access(->, ->>), addition and subtraction operators (#1258) +Extend agtype containment operators (@>, <@) (#1285) +Extend EXPLAIN and add config param to switch transformation of property filter (#1262) +Fix ambiguous conditions (#1373) +Fix DockerHub warning messages for latest (#1380) +Fix issue #1045 - error using path var in WHERE (#1295) +Fix Issue #1159 - Server terminates for SET plus-equal (#1160) +Fix issue #1219 - MERGE not seeing previous clause var (#1441) +Fix issue #1302 - crash on NULL input to UNWIND (#1304) +Fix issue #1303 - Server crashes on executing SELECT * FROM agtype(null); (#1317) +Fix Issue #1305 - drop_label NULL cases (#1306) +Fix Issue #1329 - agtype_to_int4 crash (#1339) +Fix issue #1347 - unknow type of agtype container 0 (#1349) +Fix issue #1389 - Server crash on using null operand for access operators (#1390) +Fix issue #1393 - previous clause variables not seen with EXISTS (#1426) +Fix issue #1398 - SET followed by DELETE does not delete (#1412) +Fix issue #1399 - EXISTS doesn't handle non-existent labels (#1400) +Fix Issue #945 - incorrect count(*) return values (#1288) +Fix typo in agtype_raw.h header guard (#1368) +Implement chained expression order of operations (#1402) +Implemented age_tail function (#1283) +Implemented the toBooleanList() function (#1014) +Implement EXISTS subquery for CASE (#1345) +Master to PostgreSQL version 16 (#1451) +Minor fix in `agtype_volatile_wrapper` function (#1172) +Modify COUNT() to output agtype (#1311) +Optimize performance of detach delete (#1271) +Optimize vertex and edge builder functions (#1252) +py_driver : optimised Antlr4ResultHandler to improve time (#1107) +Refactor Regression Tests for CASE statement (#1268) +Refactor the IN operator to use '= ANY()' syntax (#1236) +Removed unnecessary assignment (#1185) +Remove redundant job from CIs (#1473) +Remove unnecessary #include in src/backend/utils +Updated age.control. +Updated files, format, and version information. +Updated Makefile. +Updated RELEASE. +Update Discord channel in README.md (#1253) +Update README.md file for PostgreSQL version 16 support (#1463) +Update the Python Driver (#1246) diff --git a/age.control b/age.control index cf75ac57a..d82a479aa 100644 --- a/age.control +++ b/age.control @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -default_version = '1.4.0' +default_version = '1.5.0' comment = 'AGE database extension' module_pathname = '$libdir/age' diff --git a/sql/age_agtype.sql b/sql/age_agtype.sql index 499464d73..944508dd0 100644 --- a/sql/age_agtype.sql +++ b/sql/age_agtype.sql @@ -16,8 +16,8 @@ * specific language governing permissions and limitations * under the License. */ - - -- + +-- -- agtype type and its support functions -- diff --git a/sql/agtype_coercions.sql b/sql/agtype_coercions.sql index 031a808e3..cdf5f6f8c 100644 --- a/sql/agtype_coercions.sql +++ b/sql/agtype_coercions.sql @@ -16,8 +16,8 @@ * specific language governing permissions and limitations * under the License. */ - - -- + +-- -- agtype - type coercions -- -- agtype -> text (explicit) diff --git a/sql/agtype_comparison.sql b/sql/agtype_comparison.sql index 711226c8e..5b937e847 100644 --- a/sql/agtype_comparison.sql +++ b/sql/agtype_comparison.sql @@ -16,8 +16,8 @@ * specific language governing permissions and limitations * under the License. */ - - -- + +-- -- agtype - comparison operators (=, <>, <, >, <=, >=) -- diff --git a/sql/agtype_gin.sql b/sql/agtype_gin.sql index 71243a0f2..a409d11b2 100644 --- a/sql/agtype_gin.sql +++ b/sql/agtype_gin.sql @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ - + -- -- agtype GIN support -- diff --git a/sql/agtype_operators.sql b/sql/agtype_operators.sql index 7b08b7df7..aaff16d55 100644 --- a/sql/agtype_operators.sql +++ b/sql/agtype_operators.sql @@ -16,8 +16,8 @@ * specific language governing permissions and limitations * under the License. */ - - -- + +-- -- Contains operators @> <@ -- CREATE FUNCTION ag_catalog.agtype_contains(agtype, agtype) diff --git a/sql/agtype_string.sql b/sql/agtype_string.sql index 8e2b6360c..430b189b5 100644 --- a/sql/agtype_string.sql +++ b/sql/agtype_string.sql @@ -16,8 +16,8 @@ * specific language governing permissions and limitations * under the License. */ - - -- + +-- -- agtype - string matching (`STARTS WITH`, `ENDS WITH`, `CONTAINS`, & =~) --