From: | Andres Freund <andres(at)2ndquadrant(dot)com> |
---|---|
To: | guettliml(at)thomas-guettler(dot)de |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #12086: docs: prewarm: When does prewarm happen? |
Date: | 2014-11-28 18:10:11 |
Message-ID: | 20141128181011.GF5164@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi,
On 2014-11-28 07:48:18 +0000, guettliml(at)thomas-guettler(dot)de wrote:
> The following bug has been logged on the website:
>
> Bug reference: 12086
> Logged by: Thomas Güttler
> Email address: guettliml(at)thomas-guettler(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | David G Johnston | 2014-11-28 18:59:47 | Re: PQfinish() in a C multi-threaded application |
Previous Message | John R Pierce | 2014-11-28 16:40:55 | Re: Solaris fails test with float8. |