You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 'WARNING: could not connect to database backupdb: connection to server at "localhost" (127.0.0.1), port 29732 failed: FATAL: must be superuser or replication role to start walsender'
3229
3238
# OS-dependant messages:
3230
3239
# 'WARNING: could not connect to database backupdb: connection to server at "localhost" (::1), port 12101 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\nconnection to server at "localhost" (127.0.0.1), port 12101 failed: FATAL: must be superuser or replication role to start walsender'
3231
-
self.assertRegex(
3232
-
output,
3233
-
r'WARNING: could not connect to database backupdb:[\s\S]*?FATAL: must be superuser or replication role to start walsender')
3240
+
3241
+
ifself.pg_config_version<160000:
3242
+
self.assertRegex(
3243
+
output,
3244
+
r'WARNING: could not connect to database backupdb:[\s\S]*?'
3245
+
r'FATAL: must be superuser or replication role to start walsender')
3246
+
else:
3247
+
self.assertRegex(
3248
+
output,
3249
+
r'WARNING: could not connect to database backupdb:[\s\S]*?'
0 commit comments