[==========] Running 3 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 3 tests from PostgresTest
[ RUN      ] PostgresTest.TestAddUser
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20260812 06:37:25.685755 18819 mini_postgres.cc:62] Running initdb...
The files belonging to this database system will be owned by user "slave".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /tmp/dist-test-taskKx1dKp/test-tmp/mini_postgres-test.0.PostgresTest.TestAddUser.1786516645683175-18819-0/postgres ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default "max_connections" ... 100
selecting default "shared_buffers" ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

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:

    /tmp/dist-test-taskKx1dKp/build/debug/bin/postgres/pg_ctl -D /tmp/dist-test-taskKx1dKp/test-tmp/mini_postgres-test.0.PostgresTest.TestAddUser.1786516645683175-18819-0/postgres -l logfile start

2026-08-12 06:37:28.357 UTC [18836] LOG:  starting PostgreSQL 17.2 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
2026-08-12 06:37:28.357 UTC [18836] LOG:  listening on IPv4 address "127.0.0.1", port 55277
2026-08-12 06:37:28.362 UTC [18836] LOG:  listening on Unix socket "/tmp/.s.PGSQL.55277"
2026-08-12 06:37:28.369 UTC [18841] LOG:  database system was shut down at 2026-08-12 06:37:26 UTC
2026-08-12 06:37:28.375 UTC [18836] LOG:  database system is ready to accept connections
I20260812 06:37:30.344828 18819 mini_postgres.cc:96] Postgres bound to 55277
2026-08-12 06:37:30.352 UTC [18848] FATAL:  database "slave" does not exist
127.0.0.1:55277 - accepting connections
2026-08-12 06:37:30.371 UTC [18836] LOG:  received smart shutdown request
2026-08-12 06:37:30.375 UTC [18836] LOG:  background worker "logical replication launcher" (PID 18844) exited with exit code 1
2026-08-12 06:37:30.375 UTC [18839] LOG:  shutting down
2026-08-12 06:37:30.377 UTC [18839] LOG:  checkpoint starting: shutdown immediate
2026-08-12 06:37:30.391 UTC [18839] LOG:  checkpoint complete: wrote 7 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.004 s, sync=0.006 s, total=0.017 s; sync files=6, longest=0.003 s, average=0.001 s; distance=3 kB, estimate=3 kB; lsn=0/147B630, redo lsn=0/147B630
2026-08-12 06:37:30.395 UTC [18836] LOG:  database system is shut down
[       OK ] PostgresTest.TestAddUser (4758 ms)
[ RUN      ] PostgresTest.TestCreateDatabaseNonExistentUser
I20260812 06:37:30.443876 18819 mini_postgres.cc:62] Running initdb...
The files belonging to this database system will be owned by user "slave".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /tmp/dist-test-taskKx1dKp/test-tmp/mini_postgres-test.0.PostgresTest.TestCreateDatabaseNonExistentUser.1786516645683175-18819-0/postgres ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default "max_connections" ... 100
selecting default "shared_buffers" ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

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:

    /tmp/dist-test-taskKx1dKp/build/debug/bin/postgres/pg_ctl -D /tmp/dist-test-taskKx1dKp/test-tmp/mini_postgres-test.0.PostgresTest.TestCreateDatabaseNonExistentUser.1786516645683175-18819-0/postgres -l logfile start

2026-08-12 06:37:33.027 UTC [18864] LOG:  starting PostgreSQL 17.2 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
2026-08-12 06:37:33.028 UTC [18864] LOG:  listening on IPv4 address "127.0.0.1", port 45981
2026-08-12 06:37:33.032 UTC [18864] LOG:  listening on Unix socket "/tmp/.s.PGSQL.45981"
2026-08-12 06:37:33.039 UTC [18870] LOG:  database system was shut down at 2026-08-12 06:37:31 UTC
2026-08-12 06:37:33.044 UTC [18864] LOG:  database system is ready to accept connections
I20260812 06:37:34.974468 18819 mini_postgres.cc:96] Postgres bound to 45981
2026-08-12 06:37:34.980 UTC [18876] FATAL:  database "slave" does not exist
127.0.0.1:45981 - accepting connections
2026-08-12 06:37:34.998 UTC [18878] ERROR:  role "nonexistentuser" does not exist
2026-08-12 06:37:34.998 UTC [18878] STATEMENT:  CREATE DATABASE testdb OWNER nonexistentuser;
createdb: error: database creation failed: ERROR:  role "nonexistentuser" does not exist
2026-08-12 06:37:34.998 UTC [18864] LOG:  received smart shutdown request
2026-08-12 06:37:35.002 UTC [18864] LOG:  background worker "logical replication launcher" (PID 18873) exited with exit code 1
2026-08-12 06:37:35.003 UTC [18867] LOG:  shutting down
2026-08-12 06:37:35.005 UTC [18867] LOG:  checkpoint starting: shutdown immediate
2026-08-12 06:37:35.016 UTC [18867] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.004 s, sync=0.002 s, total=0.014 s; sync files=2, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB; lsn=0/147A950, redo lsn=0/147A950
2026-08-12 06:37:35.020 UTC [18864] LOG:  database system is shut down
[       OK ] PostgresTest.TestCreateDatabaseNonExistentUser (4625 ms)
[ RUN      ] PostgresTest.TestCreateDatabaseExistingUserWithPersistence
I20260812 06:37:35.069933 18819 mini_postgres.cc:62] Running initdb...
The files belonging to this database system will be owned by user "slave".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /tmp/dist-test-taskKx1dKp/test-tmp/mini_postgres-test.0.PostgresTest.TestCreateDatabaseExistingUserWithPersistence.1786516645683175-18819-0/postgres ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default "max_connections" ... 100
selecting default "shared_buffers" ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

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:

    /tmp/dist-test-taskKx1dKp/build/debug/bin/postgres/pg_ctl -D /tmp/dist-test-taskKx1dKp/test-tmp/mini_postgres-test.0.PostgresTest.TestCreateDatabaseExistingUserWithPersistence.1786516645683175-18819-0/postgres -l logfile start

2026-08-12 06:37:37.577 UTC [18892] LOG:  starting PostgreSQL 17.2 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
2026-08-12 06:37:37.578 UTC [18892] LOG:  listening on IPv4 address "127.0.0.1", port 33027
2026-08-12 06:37:37.581 UTC [18892] LOG:  listening on Unix socket "/tmp/.s.PGSQL.33027"
2026-08-12 06:37:37.586 UTC [18897] LOG:  database system was shut down at 2026-08-12 06:37:36 UTC
2026-08-12 06:37:37.592 UTC [18892] LOG:  database system is ready to accept connections
I20260812 06:37:39.539683 18819 mini_postgres.cc:96] Postgres bound to 33027
2026-08-12 06:37:39.545 UTC [18903] FATAL:  database "slave" does not exist
127.0.0.1:33027 - accepting connections
2026-08-12 06:37:39.630 UTC [18892] LOG:  received smart shutdown request
2026-08-12 06:37:39.634 UTC [18892] LOG:  background worker "logical replication launcher" (PID 18900) exited with exit code 1
2026-08-12 06:37:39.634 UTC [18895] LOG:  shutting down
2026-08-12 06:37:39.636 UTC [18895] LOG:  checkpoint starting: shutdown immediate
2026-08-12 06:37:40.064 UTC [18895] LOG:  checkpoint complete: wrote 901 buffers (5.5%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.016 s, sync=0.406 s, total=0.430 s; sync files=308, longest=0.005 s, average=0.002 s; distance=4013 kB, estimate=4013 kB; lsn=0/1865F80, redo lsn=0/1865F80
2026-08-12 06:37:40.071 UTC [18892] LOG:  database system is shut down
2026-08-12 06:37:40.113 UTC [18909] LOG:  starting PostgreSQL 17.2 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
2026-08-12 06:37:40.113 UTC [18909] LOG:  listening on IPv4 address "127.0.0.1", port 33027
2026-08-12 06:37:40.117 UTC [18909] LOG:  listening on Unix socket "/tmp/.s.PGSQL.33027"
2026-08-12 06:37:40.124 UTC [18916] LOG:  database system was shut down at 2026-08-12 06:37:40 UTC
2026-08-12 06:37:40.130 UTC [18909] LOG:  database system is ready to accept connections
I20260812 06:37:42.090149 18819 mini_postgres.cc:96] Postgres bound to 33027
2026-08-12 06:37:42.096 UTC [18923] FATAL:  database "slave" does not exist
127.0.0.1:33027 - accepting connections
2026-08-12 06:37:42.178 UTC [18927] ERROR:  database "testdb1" already exists
2026-08-12 06:37:42.178 UTC [18927] STATEMENT:  CREATE DATABASE testdb1 OWNER testuser;
createdb: error: database creation failed: ERROR:  database "testdb1" already exists
2026-08-12 06:37:42.178 UTC [18909] LOG:  received smart shutdown request
2026-08-12 06:37:42.181 UTC [18909] LOG:  background worker "logical replication launcher" (PID 18920) exited with exit code 1
2026-08-12 06:37:42.182 UTC [18914] LOG:  shutting down
2026-08-12 06:37:42.183 UTC [18914] LOG:  checkpoint starting: shutdown immediate
2026-08-12 06:37:42.615 UTC [18914] LOG:  checkpoint complete: wrote 895 buffers (5.5%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.018 s, sync=0.407 s, total=0.434 s; sync files=304, longest=0.005 s, average=0.002 s; distance=4010 kB, estimate=4010 kB; lsn=0/1C50A90, redo lsn=0/1C50A90
2026-08-12 06:37:42.622 UTC [18909] LOG:  database system is shut down
[       OK ] PostgresTest.TestCreateDatabaseExistingUserWithPersistence (7617 ms)
[----------] 3 tests from PostgresTest (17001 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test suite ran. (17002 ms total)
[  PASSED  ] 3 tests.
