From 4cdcfae022a9bfd0e9b717e10b23dc0eee6f2ad5 Mon Sep 17 00:00:00 2001 From: Jeevan Chalke Date: Fri, 7 Jul 2023 20:21:47 +0530 Subject: [PATCH] Update comments in README.md and test case files. 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. --- README.md | 13 ++++++++++--- expected/aggregate_pushdown.out | 6 +++--- expected/aggregate_pushdown_1.out | 6 +++--- expected/aggregate_pushdown_2.out | 6 +++--- expected/aggregate_pushdown_3.out | 6 +++--- expected/connection_validation.out | 7 +++---- expected/connection_validation_1.out | 7 +++---- expected/dml.out | 8 ++++---- expected/join_pushdown.out | 6 +++--- expected/join_pushdown_1.out | 6 +++--- expected/join_pushdown_2.out | 6 +++--- expected/join_pushdown_3.out | 6 +++--- expected/limit_offset_pushdown.out | 5 +++-- expected/limit_offset_pushdown_1.out | 5 +++-- expected/pushdown.out | 7 +++---- expected/pushdown_1.out | 7 +++---- expected/select.out | 7 +++---- expected/select_1.out | 7 +++---- expected/server_options.out | 7 +++---- expected/server_options_1.out | 7 +++---- mongodb_init.sh | 2 ++ sql/aggregate_pushdown.sql | 6 +++--- sql/connection_validation.sql | 7 +++---- sql/dml.sql | 8 ++++---- sql/join_pushdown.sql | 6 +++--- sql/limit_offset_pushdown.sql | 5 +++-- sql/pushdown.sql | 7 +++---- sql/select.sql | 7 +++---- sql/server_options.sql | 7 +++---- 29 files changed, 95 insertions(+), 95 deletions(-) diff --git a/README.md b/README.md index a9114e1..8b31b8d 100644 --- a/README.md +++ b/README.md @@ -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]. diff --git a/expected/aggregate_pushdown.out b/expected/aggregate_pushdown.out index 620e2fd..005aba8 100644 --- a/expected/aggregate_pushdown.out +++ b/expected/aggregate_pushdown.out @@ -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 diff --git a/expected/aggregate_pushdown_1.out b/expected/aggregate_pushdown_1.out index e915224..374a004 100644 --- a/expected/aggregate_pushdown_1.out +++ b/expected/aggregate_pushdown_1.out @@ -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 diff --git a/expected/aggregate_pushdown_2.out b/expected/aggregate_pushdown_2.out index aae1f77..432d90e 100644 --- a/expected/aggregate_pushdown_2.out +++ b/expected/aggregate_pushdown_2.out @@ -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 diff --git a/expected/aggregate_pushdown_3.out b/expected/aggregate_pushdown_3.out index 3635786..12a3956 100644 --- a/expected/aggregate_pushdown_3.out +++ b/expected/aggregate_pushdown_3.out @@ -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 diff --git a/expected/connection_validation.out b/expected/connection_validation.out index 9cfcd63..bcf665f 100644 --- a/expected/connection_validation.out +++ b/expected/connection_validation.out @@ -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 diff --git a/expected/connection_validation_1.out b/expected/connection_validation_1.out index 92678f0..2bd1251 100644 --- a/expected/connection_validation_1.out +++ b/expected/connection_validation_1.out @@ -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 diff --git a/expected/dml.out b/expected/dml.out index b094a93..cff659a 100644 --- a/expected/dml.out +++ b/expected/dml.out @@ -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 diff --git a/expected/join_pushdown.out b/expected/join_pushdown.out index 2907478..3fa1e39 100644 --- a/expected/join_pushdown.out +++ b/expected/join_pushdown.out @@ -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 diff --git a/expected/join_pushdown_1.out b/expected/join_pushdown_1.out index c93140a..5115d36 100644 --- a/expected/join_pushdown_1.out +++ b/expected/join_pushdown_1.out @@ -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 diff --git a/expected/join_pushdown_2.out b/expected/join_pushdown_2.out index 49ff150..a7f4557 100644 --- a/expected/join_pushdown_2.out +++ b/expected/join_pushdown_2.out @@ -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 diff --git a/expected/join_pushdown_3.out b/expected/join_pushdown_3.out index b3bd36c..096ef91 100644 --- a/expected/join_pushdown_3.out +++ b/expected/join_pushdown_3.out @@ -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 diff --git a/expected/limit_offset_pushdown.out b/expected/limit_offset_pushdown.out index b797352..0227f28 100644 --- a/expected/limit_offset_pushdown.out +++ b/expected/limit_offset_pushdown.out @@ -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; diff --git a/expected/limit_offset_pushdown_1.out b/expected/limit_offset_pushdown_1.out index b4d361b..4983483 100644 --- a/expected/limit_offset_pushdown_1.out +++ b/expected/limit_offset_pushdown_1.out @@ -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; diff --git a/expected/pushdown.out b/expected/pushdown.out index f1c47b6..035d15f 100644 --- a/expected/pushdown.out +++ b/expected/pushdown.out @@ -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 diff --git a/expected/pushdown_1.out b/expected/pushdown_1.out index cab8360..750701a 100644 --- a/expected/pushdown_1.out +++ b/expected/pushdown_1.out @@ -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 diff --git a/expected/select.out b/expected/select.out index 967d790..e98ec03 100644 --- a/expected/select.out +++ b/expected/select.out @@ -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 diff --git a/expected/select_1.out b/expected/select_1.out index ef1712e..9aa50f5 100644 --- a/expected/select_1.out +++ b/expected/select_1.out @@ -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 diff --git a/expected/server_options.out b/expected/server_options.out index f0858da..fb9216d 100644 --- a/expected/server_options.out +++ b/expected/server_options.out @@ -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 diff --git a/expected/server_options_1.out b/expected/server_options_1.out index 46191ba..62f3b9d 100644 --- a/expected/server_options_1.out +++ b/expected/server_options_1.out @@ -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 diff --git a/mongodb_init.sh b/mongodb_init.sh index 8a140d6..358d929 100755 --- a/mongodb_init.sh +++ b/mongodb_init.sh @@ -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 diff --git a/sql/aggregate_pushdown.sql b/sql/aggregate_pushdown.sql index cf0538c..cb6f4e0 100644 --- a/sql/aggregate_pushdown.sql +++ b/sql/aggregate_pushdown.sql @@ -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; diff --git a/sql/connection_validation.sql b/sql/connection_validation.sql index daacd20..4d5ae79 100644 --- a/sql/connection_validation.sql +++ b/sql/connection_validation.sql @@ -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; diff --git a/sql/dml.sql b/sql/dml.sql index 503bb5f..aa61bff 100644 --- a/sql/dml.sql +++ b/sql/dml.sql @@ -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; diff --git a/sql/join_pushdown.sql b/sql/join_pushdown.sql index 48711a4..4cd4cdd 100644 --- a/sql/join_pushdown.sql +++ b/sql/join_pushdown.sql @@ -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; diff --git a/sql/limit_offset_pushdown.sql b/sql/limit_offset_pushdown.sql index 9071483..af357b7 100644 --- a/sql/limit_offset_pushdown.sql +++ b/sql/limit_offset_pushdown.sql @@ -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 diff --git a/sql/pushdown.sql b/sql/pushdown.sql index 3cf124a..0345355 100644 --- a/sql/pushdown.sql +++ b/sql/pushdown.sql @@ -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; diff --git a/sql/select.sql b/sql/select.sql index 5629613..5e07dc6 100644 --- a/sql/select.sql +++ b/sql/select.sql @@ -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; diff --git a/sql/server_options.sql b/sql/server_options.sql index 01b53c1..7c444a0 100644 --- a/sql/server_options.sql +++ b/sql/server_options.sql @@ -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;