Sonam Sharma <sonams1209@xxxxxxxxx> writes: > Is there any option to run reindex or vaccum in background? > Every time the session gets logged off in between. If your session is getting killed by a network idle-time timeout, you could probably prevent that with suitable adjustment of the server's TCP-keepalive settings. regards, tom lane