From c5c9b4c8d7ed5acc44d7ef20d832a436d6c4b14a Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Wed, 26 Jun 2024 12:31:20 +0500 Subject: [PATCH] Changed PostgreSQL default port * Changed admin port from 6034 to 6132 * Changed pgsql backend port from 6035 to 6133 --- lib/PgSQL_Thread.cpp | 3 +-- lib/ProxySQL_Admin.cpp | 2 +- test/tap/tap/command_line.h | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/PgSQL_Thread.cpp b/lib/PgSQL_Thread.cpp index 83b5ae884..8bd43a772 100644 --- a/lib/PgSQL_Thread.cpp +++ b/lib/PgSQL_Thread.cpp @@ -2339,8 +2339,7 @@ void PgSQL_Threads_Handler::start_listeners() { char* _tmp = NULL; _tmp = GloPTH->get_variable((char*)"interfaces"); if (strlen(_tmp) == 0) { - //GloPTH->set_variable((char *)"interfaces", (char *)"0.0.0.0:6033;/tmp/proxysql.sock"); // set default - GloPTH->set_variable((char*)"interfaces", (char*)"0.0.0.0:6035"); // changed. See isseu #1104 + GloPTH->set_variable((char*)"interfaces", (char*)"0.0.0.0:6133"); } free(_tmp); tokenizer_t tok; diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 7bed4e72d..953f9b064 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -5954,7 +5954,7 @@ ProxySQL_Admin::ProxySQL_Admin() : } else { variables.mysql_ifaces=strdup("0.0.0.0:6032"); // changed. See isseu #1103 } - variables.pgsql_ifaces= strdup("0.0.0.0:6034"); + variables.pgsql_ifaces= strdup("0.0.0.0:6132"); variables.telnet_admin_ifaces=NULL; variables.telnet_stats_ifaces=NULL; variables.refresh_interval=2000; diff --git a/test/tap/tap/command_line.h b/test/tap/tap/command_line.h index c95f5b8d5..f2988d2f3 100644 --- a/test/tap/tap/command_line.h +++ b/test/tap/tap/command_line.h @@ -40,7 +40,7 @@ class CommandLine { // proxysql postgresql admin connection char* pgsql_admin_host = strdup("127.0.0.1"); - int pgsql_admin_port = 6034; + int pgsql_admin_port = 6132; // pgsql server connection char* pgsql_server_host = strdup("127.0.0.1"); @@ -50,13 +50,13 @@ class CommandLine { // unpriviliged test connection char* pgsql_host = strdup("127.0.0.1"); - int pgsql_port = 6035; + int pgsql_port = 6133; char* pgsql_username = strdup("testuser"); char* pgsql_password = strdup("testuser"); // priviliged test connection char* pgsql_root_host = strdup("127.0.0.1"); - int pgsql_root_port = 6035; + int pgsql_root_port = 6133; char* pgsql_root_username = strdup("postgres"); char* pgsql_root_password = strdup("postgres");