Skip to content

Commit

Permalink
Update comments in README.md and test case files.
Browse files Browse the repository at this point in the history
The execution of mongodb_init.sh is compulsory before running
regression, and it is missed to mention it in the README file.
Also, update a few comments in test cases.

FDW-600, Vaibhav Dalvi, reviewed by Suraj Kharage and Jeevan Chalke.
  • Loading branch information
jeevanchalke committed Jul 7, 2023
1 parent d54d029 commit 4cdcfae
Show file tree
Hide file tree
Showing 29 changed files with 95 additions and 95 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,19 @@ EDB Postgres Advanced Server.

4. Running regression test.

Run `mongodb_init.sh` file to load required collections.

```sh
source mongodb_init.sh
```
Finally, run regression.

```sh
make USE_PGXS=1 installcheck
```
However, make sure to set the `MONGO_HOST`, `MONGO_PORT`, `MONGO_USER_NAME`,
and `MONGO_PWD` environment variables correctly. The default settings can be
found in the `mongodb_init.sh` script.
However, make sure to set the `MONGO_HOST`, `MONGO_PORT`, `MONGO_USER_NAME`,
and `MONGO_PWD` environment variables correctly. The default settings can
be found in the `mongodb_init.sh` script.


If you run into any issues, please [let us know][2].
Expand Down
6 changes: 3 additions & 3 deletions expected/aggregate_pushdown.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
6 changes: 3 additions & 3 deletions expected/aggregate_pushdown_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
6 changes: 3 additions & 3 deletions expected/aggregate_pushdown_2.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
6 changes: 3 additions & 3 deletions expected/aggregate_pushdown_3.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
7 changes: 3 additions & 4 deletions expected/connection_validation.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
7 changes: 3 additions & 4 deletions expected/connection_validation_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
8 changes: 4 additions & 4 deletions expected/dml.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress,
-- mongo_fdw_regress1 and mongo_fdw_regress2 databases on MongoDB with all
-- permission for MONGO_USER_NAME user with MONGO_PASS password and ran
-- mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
6 changes: 3 additions & 3 deletions expected/join_pushdown.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
6 changes: 3 additions & 3 deletions expected/join_pushdown_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
6 changes: 3 additions & 3 deletions expected/join_pushdown_2.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
6 changes: 3 additions & 3 deletions expected/join_pushdown_3.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
5 changes: 3 additions & 2 deletions expected/limit_offset_pushdown.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- Before running this file user must create database mongo_fdw_regress,
-- mongo_fdw_regress1 and mongo_fdw_regress2 databases on MongoDB with all
-- permission for MONGO_USER_NAME user with MONGO_PASS password and ran
-- mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down
5 changes: 3 additions & 2 deletions expected/limit_offset_pushdown_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- Before running this file user must create database mongo_fdw_regress,
-- mongo_fdw_regress1 and mongo_fdw_regress2 databases on MongoDB with all
-- permission for MONGO_USER_NAME user with MONGO_PASS password and ran
-- mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down
7 changes: 3 additions & 4 deletions expected/pushdown.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
7 changes: 3 additions & 4 deletions expected/pushdown_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
7 changes: 3 additions & 4 deletions expected/select.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
7 changes: 3 additions & 4 deletions expected/select_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
Expand Down
7 changes: 3 additions & 4 deletions expected/server_options.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
NOTICE: extension "mongo_fdw" already exists, skipping
Expand Down
7 changes: 3 additions & 4 deletions expected/server_options_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
\set MONGO_PORT `echo \'"$MONGO_PORT"\'`
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`
-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.
\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
NOTICE: extension "mongo_fdw" already exists, skipping
Expand Down
2 changes: 2 additions & 0 deletions mongodb_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export MONGO_PWD="edb"
# db.createUser({user:"edb",pwd:"edb",roles:[{role:"dbOwner", db:"mongo_fdw_regress"},{role:"readWrite", db:"mongo_fdw_regress"}]})
# use mongo_fdw_regress1
# db.createUser({user:"edb",pwd:"edb",roles:[{role:"dbOwner", db:"mongo_fdw_regress1"},{role:"readWrite", db:"mongo_fdw_regress1"}]})
# use mongo_fdw_regress2
# db.createUser({user:"edb",pwd:"edb",roles:[{role:"dbOwner", db:"mongo_fdw_regress2"},{role:"readWrite", db:"mongo_fdw_regress2"}]})

mongoimport --host=$MONGO_HOST --port=$MONGO_PORT -u $MONGO_USER_NAME -p $MONGO_PWD --db mongo_fdw_regress --collection countries --jsonArray --drop --maintainInsertionOrder --quiet < data/mongo_fixture.json
mongoimport --host=$MONGO_HOST --port=$MONGO_PORT -u $MONGO_USER_NAME -p $MONGO_PWD --db mongo_fdw_regress --collection warehouse --jsonArray --drop --maintainInsertionOrder --quiet < data/mongo_warehouse.json
Expand Down
6 changes: 3 additions & 3 deletions sql/aggregate_pushdown.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`

-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.

\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down
7 changes: 3 additions & 4 deletions sql/connection_validation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`

-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.

\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down
8 changes: 4 additions & 4 deletions sql/dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`

-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress,
-- mongo_fdw_regress1 and mongo_fdw_regress2 databases on MongoDB with all
-- permission for MONGO_USER_NAME user with MONGO_PASS password and ran
-- mongodb_init.sh file to load collections.

\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down
6 changes: 3 additions & 3 deletions sql/join_pushdown.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`

-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- mongodb_init.sh file to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.

\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down
5 changes: 3 additions & 2 deletions sql/limit_offset_pushdown.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`

-- Before running this file User must create database mongo_fdw_regress on
-- MongoDB with all permission for 'edb' user with 'edb' password and ran
-- Before running this file user must create database mongo_fdw_regress,
-- mongo_fdw_regress1 and mongo_fdw_regress2 databases on MongoDB with all
-- permission for MONGO_USER_NAME user with MONGO_PASS password and ran
-- mongodb_init.sh file to load collections.

\c contrib_regression
Expand Down
7 changes: 3 additions & 4 deletions sql/pushdown.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`

-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.

\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down
7 changes: 3 additions & 4 deletions sql/select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`

-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.

\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down
7 changes: 3 additions & 4 deletions sql/server_options.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
\set MONGO_USER_NAME `echo \'"$MONGO_USER_NAME"\'`
\set MONGO_PASS `echo \'"$MONGO_PWD"\'`

-- Before running this file User must create database mongo_fdw_regress and
-- mongo_fdw_regress1 databases on MongoDB with all permission for
-- MONGO_USER_NAME user with MONGO_PASS password and ran mongodb_init.sh file
-- to load collections.
-- Before running this file user must create database mongo_fdw_regress on
-- MongoDB with all permission for MONGO_USER_NAME user with MONGO_PASS
-- password and ran mongodb_init.sh file to load collections.

\c contrib_regression
CREATE EXTENSION IF NOT EXISTS mongo_fdw;
Expand Down

0 comments on commit 4cdcfae

Please sign in to comment.