diff options
author | Robert Haas <rhaas@postgresql.org> | 2022-03-29 13:48:39 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2022-03-29 13:48:39 -0400 |
commit | 3d067c53b26dfeb95da0d75a65614b4d7b45c317 (patch) | |
tree | 78a3dc7c5ad248c08f66e2e454516e42015b5ad9 | |
parent | 9c08aea6a3090a396be334cc58c511edab05776a (diff) | |
download | postgresql-3d067c53b26dfeb95da0d75a65614b4d7b45c317.tar.gz postgresql-3d067c53b26dfeb95da0d75a65614b4d7b45c317.zip |
In 020_createdb.pl, change order of command-line arguments.
Linux thinks that something like "createdb foo -S bar" is perfectly
fine, but Windows wants the options to precede any bare arguments, so
we must write "createdb -S bar foo" for portability.
Per reports from CI, the buildfarm, and Andres.
Discussion: http://postgr.es/m/20220329173536.7d2ywdatsprxl4x6@alap3.anarazel.de
-rw-r--r-- | src/bin/scripts/t/020_createdb.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/scripts/t/020_createdb.pl b/src/bin/scripts/t/020_createdb.pl index 14d3a9563d1..b81f06a251e 100644 --- a/src/bin/scripts/t/020_createdb.pl +++ b/src/bin/scripts/t/020_createdb.pl @@ -115,12 +115,12 @@ $node->command_checks_all( # Check database creation strategy $node->issues_sql_like( - [ 'createdb', '-T', 'foobar2', 'foobar6', '-S', 'wal_log'], + [ 'createdb', '-T', 'foobar2', '-S', 'wal_log', 'foobar6' ], qr/statement: CREATE DATABASE foobar6 STRATEGY wal_log TEMPLATE foobar2/, 'create database with WAL_LOG strategy'); $node->issues_sql_like( - [ 'createdb', '-T', 'foobar2', 'foobar7', '-S', 'file_copy'], + [ 'createdb', '-T', 'foobar2', '-S', 'file_copy', 'foobar7' ], qr/statement: CREATE DATABASE foobar7 STRATEGY file_copy TEMPLATE foobar2/, 'create database with FILE_COPY strategy'); |