Working memory on the connection string for postgres instance I'm trying to understand how can I set the work_mem setting on the Postgres(v10) for a single connection/session.

Currently I'm connection to my Postgres Instance in the cloud through a NodeJs app using a query string as showing bellow: 

postgres://&lt;usr&gt;:&lt;pwd&gt;@&lt;host&gt;:5432/&lt;db_instance&gt;;


I know that you can set parameters in the connection string such as connection_timeout and so on, but I can't find anyware how to set the work_mem for the current connection/session.
Only a select list of parameters are allowed directly in the connection string.  Others must be imbedded via the "options" parameter.  This leads to much ugliness and escaping and quoting challenges.

Here is an example that sets work_mem to 1234 kB: 

psql "postgresql://jjanes@localhost/jjanes?connect_timeout=10&amp;options=-c work_mem%3D1234"