On 1/3/18 15:13, Tomas Vondra wrote: > Forgot to mention that the v4 also extends the CREATE SUBSCRIPTION to > allow customizing the streaming and memory limit. So you can do > > CREATE SUBSCRIPTION ... WITH (streaming=on, work_mem=1024) > > and this subscription will allow streaming, and the logica_work_mem (on > provider) will be set to 1MB.
I was wondering already during PG10 development whether we should give subscriptions a generic configuration array, like databases and roles have, so we don't have to hardcode a bunch of similar stuff every time we add an option like this. At the time we only had synchronous_commit, but now we're adding more. Also, instead of sticking this into the START_REPLICATION command, could we just run a SET command? That should work over replication connections as well. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services