Content-Length: 1264 | pFad | http://github.com/postgrespro/testgres/pull/168.patch

thub.com From a33860d0cb625516535cf5814cac2e89562a5f70 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Tue, 24 Dec 2024 20:47:20 +0300 Subject: [PATCH] PSQL passes a database name through the explicit '-d ' parameter --- testgres/node.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/testgres/node.py b/testgres/node.py index 7121339f..f7d6e839 100644 --- a/testgres/node.py +++ b/testgres/node.py @@ -1107,13 +1107,12 @@ def _psql( else: raise Exception("Input data must be None or bytes.") - dbname = dbname or default_dbname() - psql_params = [ self._get_bin_path("psql"), "-p", str(self.port), "-h", self.host, "-U", username or self.os_ops.username, + "-d", dbname or default_dbname(), "-X", # no .psqlrc "-A", # unaligned output "-t", # print rows only @@ -1135,9 +1134,6 @@ def _psql( else: raise QueryException('Query or filename must be provided') - # should be the last one - psql_params.append(dbname) - return self.os_ops.exec_command( psql_params, verbose=True,








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/testgres/pull/168.patch

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy