postgresql://uri-user:secret@host:12345/db postgresql://uri-user@host:12345/db postgresql://uri-user@host/db postgresql://host:12345/db postgresql://host/db postgresql://uri-user@host:12345/ postgresql://uri-user@host/ postgresql://uri-user@ postgresql://host:12345/ postgresql://host:12345 postgresql://host/db postgresql://host/ postgresql://host postgresql:// postgresql://?hostaddr=127.0.0.1 postgresql://example.com?hostaddr=63.1.2.4 postgresql://%68ost/ postgresql://host/db?user=uri-user postgresql://host/db?user=uri-user&port=12345 postgresql://host/db?u%73er=someotheruser&port=12345 postgresql://host/db?u%7aer=someotheruser&port=12345 postgresql://host:12345?user=uri-user postgresql://host?user=uri-user postgresql://host? postgresql://[::1]:12345/db postgresql://[::1]/db postgresql://[2001:db8::1234]/ postgresql://[200z:db8::1234]/ postgresql://[::1] postgres:// postgres:///tmp postgresql://host?uzer= postgre:// postgres://[::1 postgres://[] postgres://[::1]z postgresql://host?zzz postgresql://host?value1&value2 postgresql://host?key=key=value postgres://host?dbname=%XXfoo postgresql://a%00b postgresql://%zz postgresql://%1 postgresql://% postgres://@host postgres://host:/ postgres://otheruser@/no/such/directory postgres://otheruser@/no/such/socket/path:12345 postgres://otheruser@/path/to/socket:12345/db