|
From: <mar...@mh...> - 2011-02-19 13:08:48
|
Peter Czanik writes: > And that's right. With MySQL, if I don't configure a port number in > syslog-ng.conf, then the default 3306 is used. Setting the port number > to another value also works fine. > With PostgreSQL if the port is not specified, libdbi tries to connect to > port 0 (zero). It works fine, once a port is specified. > I was told, that in syslog-ng all databases are treated equal, so it's > something in libdbi port handling. I had to revisit this issue in a different context (libdbi-drivers Bug #3163428). Now pgsql and mysql are supposed to deal with ports the same way. If a string option is used to set the port, this port is used. If no string option is set, but a numeric option is set, use that. If neither is set, the port will be set to zero. This essentially means that applications using libdbi are expected to provide an appropriate port. There is nothing going to happen automagically. If this behaviour is not desired, feel free to request a change. As mentioned previously, we could provide the well-known defaults of pgsql and mysql instead of zero. regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 |