Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XuPzp-0007V3-VE for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Nov 2014 18:10:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XuPzo-0006Te-Ti for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Nov 2014 18:10:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XuPzn-0006TT-Sp for pgsql-bugs@postgresql.org; Fri, 28 Nov 2014 18:10:19 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XuPzj-0005sy-KH for pgsql-bugs@postgresql.org; Fri, 28 Nov 2014 18:10:18 +0000 Received: from intern.anarazel.de (ns1.anarazel.de [217.115.131.41]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id D5082460002; Fri, 28 Nov 2014 19:10:13 +0100 (CET) Date: Fri, 28 Nov 2014 19:10:11 +0100 From: Andres Freund To: guettliml@thomas-guettler.de Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12086: docs: prewarm: When does prewarm happen? Message-ID: <20141128181011.GF5164@alap3.anarazel.de> References: <20141128074818.741.8401@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20141128074818.741.8401@wrigleys.postgresql.org> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, On 2014-11-28 07:48:18 +0000, guettliml@thomas-guettler.de wrote: > The following bug has been logged on the website: > > Bug reference: 12086 > Logged by: Thomas Güttler > Email address: guettliml@thomas-guettler.de > PostgreSQL version: 9.4beta2 > Operating system: none > Description: > > The docs of prewarm could be improved: That's not really a bug. > http://www.postgresql.org/docs/9.4/static/pgprewarm.html > > I am missing: When does the prewarm happen? When you call the function. > I guess it happens at server > start. But that's just a guess. Or does postgres do prewarm every N > minutes? There's no automatisms running in the background or anything like that. > Second thing I am missing: How to use this method? Please provide an > example. It's a function. You call it like SELECT pg_prewarm('your_relation'); The only required parameter is the relation, the rest is optional. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs