Skip to content

Commit 3094f27

Browse files
authored
optin for pgwire port (#7870)
1 parent 87d8083 commit 3094f27

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ydb/tests/functional/postgresql/ya.make

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ ENV(PYTHONWARNINGS="ignore")
1616
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd")
1717
ENV(YDB_TABLE_ENABLE_PREPARED_DDL=true)
1818
ENV(YDB_USE_IN_MEMORY_PDISKS=true)
19+
ENV(YDB_ALLOCATE_PGWIRE_PORT=true)
20+
ENV(YDB_ALLOCATE_PGWIRE_PORT=true)
1921

2022
SIZE(MEDIUM)
2123

ydb/tests/library/harness/kikimr_runner.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,12 @@ def __make_run_command(self):
178178
"--grpc-port=%s" % self.grpc_port,
179179
"--mon-port=%d" % self.mon_port,
180180
"--ic-port=%d" % self.ic_port,
181-
"--pgwire-port=%d" % self.pgwire_port,
182181
]
183182
)
184183

184+
if os.environ.get("YDB_ALLOCATE_PGWIRE_PORT", "") == "true":
185+
command.append("--pgwire-port=%d" % self.pgwire_port)
186+
185187
if self.__encryption_key is not None:
186188
command.extend(["--key-file", self.__encryption_key])
187189

0 commit comments

Comments
 (0)