Skip to content

Commit

Permalink
Merge pull request #4 from bichht0608/RELEASE_5.5.0
Browse files Browse the repository at this point in the history
Release v5.5.0
  • Loading branch information
hrkuma authored Dec 20, 2023
2 parents 22de09a + 656534b commit abdce58
Show file tree
Hide file tree
Showing 128 changed files with 30,542 additions and 80 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# mongo_fdw/Makefile
# mongo_fdw/Makefile.meta
#
# Portions Copyright (c) 2004-2022, EnterpriseDB Corporation.
# Portions Copyright © 2012–2014 Citus Data, Inc.
# Portions Copyright (c) 2021, TOSHIBA CORPORATION
#

MODULE_big = mongo_fdw
Expand Down Expand Up @@ -50,8 +51,8 @@ ifndef MAJORVERSION
MAJORVERSION := $(basename $(VERSION))
endif

ifeq (,$(findstring $(MAJORVERSION), 9.6 10 11 12 13 14))
$(error PostgreSQL 9.6, 10, 11, 12, 13, or 14 is required to compile this extension)
ifeq (,$(findstring $(MAJORVERSION), 13 14 15 16))
$(error PostgreSQL 13, 14 15 or 16 is required to compile this extension)
endif

ifdef REGRESS_PREFIX
Expand Down
5 changes: 3 additions & 2 deletions Makefile.legacy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Portions Copyright (c) 2004-2022, EnterpriseDB Corporation.
# Portions Copyright © 2012–2014 Citus Data, Inc.
# Portions Copyright (c) 2021, TOSHIBA CORPORATION
#

MODULE_big = mongo_fdw
Expand Down Expand Up @@ -46,8 +47,8 @@ ifndef MAJORVERSION
MAJORVERSION := $(basename $(VERSION))
endif

ifeq (,$(findstring $(MAJORVERSION), 9.6 10 11 12 13 14))
$(error PostgreSQL 9.6, 10, 11, 12, 13, or 14 is required to compile this extension)
ifeq (,$(findstring $(MAJORVERSION), 13 14 15 16))
$(error PostgreSQL 13, 14 15 or 16 is required to compile this extension)
endif

ifdef REGRESS_PREFIX
Expand Down
5 changes: 3 additions & 2 deletions Makefile.meta
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Portions Copyright (c) 2004-2022, EnterpriseDB Corporation.
# Portions Copyright © 2012–2014 Citus Data, Inc.
# Portions Copyright (c) 2021, TOSHIBA CORPORATION
#

MODULE_big = mongo_fdw
Expand Down Expand Up @@ -50,8 +51,8 @@ ifndef MAJORVERSION
MAJORVERSION := $(basename $(VERSION))
endif

ifeq (,$(findstring $(MAJORVERSION), 13 14 15))
$(error PostgreSQL 13, 14 or 15 is required to compile this extension)
ifeq (,$(findstring $(MAJORVERSION), 13 14 15 16))
$(error PostgreSQL 13, 14 15 or 16 is required to compile this extension)
endif

ifdef REGRESS_PREFIX
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This PostgreSQL extension implements a Foreign Data Wrapper (FDW) for
[MongoDB][1].

Please note that this version of mongo_fdw works with PostgreSQL and EDB
Postgres Advanced Server 9.6, 10, 11, 12, 13, and 14.
Postgres Advanced Server 13, 14, 15 and 16.

Installation
------------
Expand Down Expand Up @@ -579,6 +579,7 @@ License
-------
Portions Copyright (c) 2004-2022, EnterpriseDB Corporation.
Portions Copyright © 2012–2014 Citus Data, Inc.
Portions Copyright (c) 2021, TOSHIBA CORPORATION
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
Expand Down
6 changes: 4 additions & 2 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
# Portions Copyright (c) 2012-2014, PostgreSQL Global Development Group
# Portions Copyright (c) 2004-2022, EnterpriseDB Corporation.
# Portions Copyright (c) 2021, TOSHIBA CORPORATION
#
# IDENTIFICATION
# autogen.sh
Expand All @@ -30,7 +31,7 @@ if ! [ -x "$(command -v cmake3)" ]; then
fi

###
# Pull the latest version of Monggo C Driver's master branch
# Pull the latest version of Mongo C Driver's master branch
#
function checkout_mongo_driver
{
Expand All @@ -42,7 +43,7 @@ function checkout_mongo_driver
}

###
# Pull the legacy branch from the Mongo C Driver's
# Pull the legacy branch of the Mongo C Driver
#
function checkout_legacy_branch
{
Expand Down Expand Up @@ -112,6 +113,7 @@ function create_config
cleanup

if [ "--with-legacy" = $1 ]; then
echo "Warning: The legacy driver support has been deprecated in mongo_fdw 5.4.0 and is expected to be removed entirely in a future release."
checkout_json_lib &&
checkout_legacy_branch &&
install_json_lib &&
Expand Down
19 changes: 18 additions & 1 deletion data/aggregates_test_data.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion data/join_test_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ db.b2.drop();
db.innertab.drop();
db.fkest.drop();
db.fkest1.drop();
db.j1.drop();

// Below queries will create and insert values in collections
db.J1_TBL.insertMany([
Expand Down Expand Up @@ -12285,4 +12286,6 @@ db.fkest1.insertMany([
db.int2_tbl.insertMany([
{_id: NumberInt(1), f1: NumberInt(0) },
{_id: NumberInt(2), f1: NumberInt(1) }
]);
]);

db.createCollection("j1");
7 changes: 6 additions & 1 deletion data/json_test_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ db.test_json.drop();
db.foo.drop();
db.jspoptest.drop();
db.json_tbl.drop();
db.repeat_json_tbl.drop();
db.pg_input_is_valid_tbl.drop();

// Below queries will create and insert values in collections
db.rows.insertMany([
Expand Down Expand Up @@ -67,4 +69,7 @@ db.nestjsonb.insertMany([
{_id : ObjectId("60f10025c6d173cad75bf388"), j : {"a":[["b",{"x":NumberInt(1)}],["b",{"x":NumberInt(2)}]],"c":NumberInt(3)} },
{_id : ObjectId("60f10025c6d173cad75bf389"), j : [[NumberInt(14),NumberInt(2),NumberInt(3)]] },
{_id : ObjectId("60f10025c6d173cad75bf38a"), j : [NumberInt(1),[NumberInt(14),NumberInt(2),NumberInt(3)]] }
]);
]);

db.createCollection("repeat_json_tbl");
db.createCollection("pg_input_is_valid_tbl");
1 change: 1 addition & 0 deletions data/jsonb_testjsonb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions deparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Portions Copyright (c) 2012-2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2004-2022, EnterpriseDB Corporation.
* Portions Copyright (c) 2012–2014 Citus Data, Inc.
* Portions Copyright (c) 2021, TOSHIBA CORPORATION
*
* IDENTIFICATION
* deparse.c
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion expected/13.8/select.out → expected/13.12/select.out
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE USER MAPPING FOR public SERVER mongo_server;
SELECT mongo_fdw_version();
mongo_fdw_version
-------------------
50400
50500
(1 row)

-- Create foreign tables
Expand Down
2 changes: 1 addition & 1 deletion expected/13.8/select_1.out → expected/13.12/select_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CREATE USER MAPPING FOR public SERVER mongo_server;
SELECT mongo_fdw_version();
mongo_fdw_version
-------------------
50400
50500
(1 row)

-- Create foreign tables
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion expected/14.5/select.out → expected/14.9/select.out
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE USER MAPPING FOR public SERVER mongo_server;
SELECT mongo_fdw_version();
mongo_fdw_version
-------------------
50400
50500
(1 row)

-- Create foreign tables
Expand Down
2 changes: 1 addition & 1 deletion expected/15.0/select_1.out → expected/14.9/select_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CREATE USER MAPPING FOR public SERVER mongo_server;
SELECT mongo_fdw_version();
mongo_fdw_version
-------------------
50400
50500
(1 row)

-- Create foreign tables
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion expected/15.0/select.out → expected/15.4/select.out
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE USER MAPPING FOR public SERVER mongo_server;
SELECT mongo_fdw_version();
mongo_fdw_version
-------------------
50400
50500
(1 row)

-- Create foreign tables
Expand Down
2 changes: 1 addition & 1 deletion expected/14.5/select_1.out → expected/15.4/select_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CREATE USER MAPPING FOR public SERVER mongo_server;
SELECT mongo_fdw_version();
mongo_fdw_version
-------------------
50400
50500
(1 row)

-- Create foreign tables
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit abdce58

Please sign in to comment.