Multi servers and PostgreSQL [message #7251] |
Wed, 06 February 2019 12:46 |
pdv
Messages: 15 Registered: January 2019
|
Junior Member |
|
|
Hi,
I'm trying to access some existing PostgreSQL databases on macos with Radicore.
Since I want to keep my existing (pgsql)databases unmodified, Radicore is loaded in a separate (pgsql)database and I must use several connections. In my case these are all hosted by localhost and this poses a problem.
The function &_getDBMSengineByHost ($dbhost) in dict_databse_s01.class.inc loops over servers until a matching host is found and then breaks the loop, so that of e.g. 2 different (pgsql) servers on localhost, only one can be reached.
I solved this by passing the server(number) instead of the host: function &_getDBMSengineByServer ($server) and then no looping is needed since $server can directly be used as an index in the $servers array.
Regards,
Patrick
|
|
|