pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feed(no subject)
4+ messages / 4 participants
[nested] [flat]
* (no subject)
@ 2019-08-28 06:58 Sonam Sharma <sonams1209@gmail.com>
0 siblings, 3 replies; 4+ messages in thread
From: Sonam Sharma @ 2019-08-28 06:58 UTC (permalink / raw)
To: pgsql-general
Is there any option to run reindex or vaccum in background?
Every time the session gets logged off in between.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re:
@ 2019-08-28 07:04 Fabio Pardi <f.pardi@portavita.eu>
parent: Sonam Sharma <sonams1209@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: Fabio Pardi @ 2019-08-28 07:04 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi,
if you have access to the OS, then you have plenty of options.
Else, I think pg_cron might do the job
regards,
fabio pardi
On 28/08/2019 08:58, Sonam Sharma wrote:
> Is there any option to run reindex or vaccum in background?
> Every time the session gets logged off in between.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re:
@ 2019-08-28 13:37 David G. Johnston <david.g.johnston@gmail.com>
parent: Sonam Sharma <sonams1209@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: David G. Johnston @ 2019-08-28 13:37 UTC (permalink / raw)
To: Sonam Sharma <sonams1209@gmail.com>; +Cc: pgsql-general
On Tue, Aug 27, 2019 at 11:59 PM Sonam Sharma <sonams1209@gmail.com> wrote:
> Is there any option to run reindex or vaccum in background?
> Every time the session gets logged off in between.
>
There is not - though you can make your auto-vacuum parameters super
aggressive.
I'm having trouble imagining a scenario where running reindex or vacuum
arbitrarily at session end would be a useful thing.
David J.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re:
@ 2019-08-28 13:54 Tom Lane <tgl@sss.pgh.pa.us>
parent: Sonam Sharma <sonams1209@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2019-08-28 13:54 UTC (permalink / raw)
To: Sonam Sharma <sonams1209@gmail.com>; +Cc: pgsql-general
Sonam Sharma <sonams1209@gmail.com> 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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-08-28 13:54 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-08-28 06:58 Sonam Sharma <sonams1209@gmail.com>
2019-08-28 07:04 ` Re: Fabio Pardi <f.pardi@portavita.eu>
2019-08-28 13:37 ` Re: David G. Johnston <david.g.johnston@gmail.com>
2019-08-28 13:54 ` Re: Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox