I have put some small script which runs in a loop with "free -h" command,
while I am running "vacuumdb". Once I clear by "sync" or bounce PG,
everything runs normal afterward.
From: Don Seiler <don@seiler.us>
Sent: Thursday, April 26, 2018 11:33 AM
To: Sushil Shirodkar
Cc: pgsql-admin@postgresql.org
Subject: Re: vacuumdb causes memory drain.