You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Allow parallel zstd compression when taking a base backup.
libzstd allows transparent parallel compression just by settingan option when creating the compression context, so permit thatfor both client and server-side backup compression. To use this,use something like pg_basebackup --compress WHERE-zstd:workers=Nwhere WHERE is "client" or "server" and N is an integer.When compression is performed on the server side, this will spawnthreads inside the PostgreSQL backend. While there is almost noPostgreSQL server code which is thread-safe, the threads here are usedinternally by libzstd and touch only data structures controlled bylibzstd.Patch by me, based in part on earlier work by Dipesh Panditand Jeevan Ladhe. Reviewed by Justin Pryzby.Discussion:http://postgr.es/m/CA+Tgmobj6u-nWF-j=FemygUhobhryLxf9h-wJN7W-2rSsseHNA@mail.gmail.com