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://<usr>:<pwd>@<host>:5432/<db_instance>;
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.
set work_mem=...
after your connection has been established. Or if you want that permanently change the user withalter user