# HG changeset patch # User Mahlon E. Smith # Date 1519153166 28800 # Node ID e1777929ba15913cb1ddb2c2db4e5d1a5766550e # Parent 450df27eaeec80d8dc60881d33516ca0b79dee4b Remove port and user from the default dbopts, so they instead use the postgresql behavioral default. diff -r 450df27eaeec -r e1777929ba15 README.md --- a/README.md Mon Feb 19 18:34:36 2018 -0800 +++ b/README.md Tue Feb 20 10:59:26 2018 -0800 @@ -107,7 +107,10 @@ All database connection options are passed as a key/val string to the *dbopts* flag. The default is: - "host=localhost port=5432 dbname=netdata user=netdata application_name=netdata-tsrelay" + "host=localhost dbname=netdata application_name=netdata-tsrelay" + +... which uses the default PostgreSQL port, and connects as the running +user. Reference the [PostgreSQL Documentation](https://www.postgresql.org/docs/current/static/libpq-conn diff -r 450df27eaeec -r e1777929ba15 netdata_tsrelay.nim --- a/netdata_tsrelay.nim Mon Feb 19 18:34:36 2018 -0800 +++ b/netdata_tsrelay.nim Tue Feb 20 10:59:26 2018 -0800 @@ -56,7 +56,7 @@ -h: Help. You're lookin' at it. The default connection string is: - "host=localhost port=5432 dbname=netdata user=netdata application_name=netdata-tsrelay" + "host=localhost dbname=netdata application_name=netdata-tsrelay" """ INSERT_SQL = """ INSERT INTO $1 @@ -259,7 +259,7 @@ # Config object defaults. # result = Config( - dbopts: "host=localhost port=5432 dbname=netdata user=netdata application_name=netdata-tsrelay", + dbopts: "host=localhost dbname=netdata application_name=netdata-tsrelay", dbtable: "netdata", listen_port: 14866, listen_addr: "0.0.0.0",