From: Rakesh Kumar <rakeshkumar464@aol.com>
To: michael@kruegers.email
To: pgsql-general@postgresql.org
Subject: Re: Slow alter sequence with PG10.1
Date: Mon, 22 Jan 2018 13:46:38 -0500
Message-ID: <1611f31928f-1d2f-3419@webjas-vaa078.srv.aolmail.net> (raw)
In-Reply-To: <CACSnzzXZw+QyvRMJ5s9PjFkYDPwWVswb_FtQLY4FVOp0R02Hpg@mail.gmail.com>
References: <CACSnzzXZw+QyvRMJ5s9PjFkYDPwWVswb_FtQLY4FVOp0R02Hpg@mail.gmail.com>
why are you not using CACHE clause which is precisely for the purpose :
cache
The optional clause CACHE cache specifies how many sequence numbers are to be preallocated and stored in memory for faster access. The minimum value is 1 (only one value can be generated at a time, i.e., no cache), and this is also the default.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rakeshkumar464@aol.com, michael@kruegers.email
Subject: Re: Slow alter sequence with PG10.1
In-Reply-To: <1611f31928f-1d2f-3419@webjas-vaa078.srv.aolmail.net>
References: <CACSnzzXZw+QyvRMJ5s9PjFkYDPwWVswb_FtQLY4FVOp0R02Hpg@mail.gmail.com> <1611f31928f-1d2f-3419@webjas-vaa078.srv.aolmail.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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