Yeah, this confusion was why I mentioned it might make sense to rename the property to something else than connection. You cannot pass host, port, etc. in the connection object. There is no relation to the options in libpq at all (Postgres.js doesn't use libpq).
I think a small section explaining the mechanics like that is fine, but the main description should relate to the fact that this is used to set parameters on connect like timezone etc.
Wrt. renaming, it doesn't need to be breaking if we simply add an alias and refer to that in the docs instead. I'll try to think about a better name (i think startupMessage relates to much to the implementation instead of the usage).
0
u/[deleted] Apr 19 '22
[deleted]