Today I Learned

2021/11/03

postgres

That

  1. There are two accepted formats for these strings: plain keyword/value strings and URIs. URIs generally follow RFC 3986, except that multi-host connection strings are allowed.

    https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING

  2. you can pass a application_name parameter to a connection string – https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-APPLICATION-NAME