# Running: pg_ctl --help [21:18:55.416](0.093s) ok 1 - pg_ctl --help exit code 0 [21:18:55.417](0.001s) ok 2 - pg_ctl --help goes to stdout [21:18:55.417](0.000s) ok 3 - pg_ctl --help nothing to stderr [21:18:55.417](0.000s) ok 4 - pg_ctl --help maximum line length # Running: pg_ctl --version [21:18:55.448](0.031s) ok 5 - pg_ctl --version exit code 0 [21:18:55.448](0.000s) ok 6 - pg_ctl --version goes to stdout [21:18:55.449](0.000s) ok 7 - pg_ctl --version nothing to stderr # Running: pg_ctl --not-a-valid-option [21:18:55.491](0.042s) ok 8 - pg_ctl with invalid option nonzero exit code [21:18:55.492](0.001s) ok 9 - pg_ctl with invalid option prints error message # Running: pg_ctl start -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/nonexistent pg_ctl: directory "C:/cirrus/build/testrun/pg_ctl/001_start_stop/data/tmp_test_zMaL/nonexistent" does not exist [21:18:55.522](0.030s) ok 10 - pg_ctl start with nonexistent directory # Running: pg_ctl initdb -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data -o -N The files belonging to this database system will be owned by user "SYSTEM". This user must also own the server process. The database cluster will be initialized with locale "English_United States.1252". The default database encoding has accordingly been set to "WIN1252". The default text search configuration will be set to "english". Data page checksums are disabled. creating directory C:/cirrus/build/testrun/pg_ctl/001_start_stop/data/tmp_test_zMaL/data ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... windows selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Atlantic/Reykjavik creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok Sync to disk skipped. The data directory might become corrupt if the operating system crashes. initdb: warning: enabling "trust" authentication for local connections initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Success. You can now start the database server using: ^"C^:^\cirrus^\build^\tmp^_install^\usr^\local^\pgsql^\bin^\pg^_ctl^" -D C:/cirrus/build/testrun/pg_ctl/001_start_stop/data/tmp_test_zMaL/data -l logfile start [21:18:58.782](3.260s) ok 11 - pg_ctl initdb # Running: C:\cirrus\build\src/test\regress\pg_regress.exe --config-auth C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data [21:18:58.829](0.047s) ok 12 - configure authentication # Checking port 54171 # Found port 54171 # Running: pg_ctl start -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data -l C:\cirrus\build/testrun/pg_ctl/001_start_stop\log/001_start_stop_server.log [21:18:59.563](0.734s) ok 13 - pg_ctl start: exit code 0 [21:18:59.564](0.001s) ok 14 - pg_ctl start: no stderr [21:18:59.568](0.004s) ok 15 - pg_ctl start: matches # Running: pg_ctl start -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data pg_ctl: another server might be running; trying to start server anyway waiting for server to start....2024-03-18 21:19:02.759 GMT [7584][postmaster] FATAL: lock file "postmaster.pid" already exists 2024-03-18 21:19:02.759 GMT [7584][postmaster] HINT: Is another postmaster (PID 1052) running in data directory "C:/cirrus/build/testrun/pg_ctl/001_start_stop/data/tmp_test_zMaL/data"? stopped waiting pg_ctl: could not start server Examine the log output. [21:19:02.850](3.282s) ok 16 - second pg_ctl start fails # Running: pg_ctl stop -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data waiting for server to shut down.... done server stopped [21:19:03.221](0.371s) ok 17 - pg_ctl stop # Running: pg_ctl stop -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data pg_ctl: PID file "C:/cirrus/build/testrun/pg_ctl/001_start_stop/data/tmp_test_zMaL/data/postmaster.pid" does not exist Is server running? [21:19:03.365](0.144s) ok 18 - second pg_ctl stop fails # Running: pg_ctl restart -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data -l C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data/perm-test-600.log pg_ctl: PID file "C:/cirrus/build/testrun/pg_ctl/001_start_stop/data/tmp_test_zMaL/data/postmaster.pid" does not exist Is server running? trying to start server anyway waiting for server to start.... done server started [21:19:03.654](0.289s) ok 19 - pg_ctl restart with server not running [21:19:03.657](0.003s) ok 20 # skip unix-style permissions not supported on Windows [21:19:03.658](0.001s) ok 21 # skip unix-style permissions not supported on Windows [21:19:03.663](0.005s) ok 22 # skip group access not supported on Windows [21:19:03.673](0.010s) ok 23 # skip group access not supported on Windows [21:19:03.674](0.000s) ok 24 # skip group access not supported on Windows # Running: pg_ctl restart -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data waiting for server to shut down.... done server stopped waiting for server to start....2024-03-18 21:19:03.853 GMT [3424][postmaster] FATAL: could not create lock file "postmaster.pid": File exists stopped waiting pg_ctl: could not start server Examine the log output. [21:19:04.100](0.426s) not ok 25 - pg_ctl restart with server running [21:19:04.100](0.001s) # Failed test 'pg_ctl restart with server running' # at C:/cirrus/src/bin/pg_ctl/t/001_start_stop.pl line 98. # Running: pg_ctl stop -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data pg_ctl: PID file "C:/cirrus/build/testrun/pg_ctl/001_start_stop/data/tmp_test_zMaL/data/postmaster.pid" does not exist Is server running? [21:19:04.148](0.048s) Bail out! command "pg_ctl stop -D C:\cirrus\build\testrun\pg_ctl\001_start_stop\data\tmp_test_zMaL/data" exited with value 1