pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #12086: docs: prewarm: When does prewarm happen?
2+ messages / 2 participants
[nested] [flat]

* BUG #12086: docs: prewarm: When does prewarm happen?
@ 2014-11-28 07:48 guettliml@thomas-guettler.de
  2014-11-28 18:10 ` Re: BUG #12086: docs: prewarm: When does prewarm happen? Andres Freund <andres@2ndquadrant.com>
  0 siblings, 1 reply; 2+ messages in thread

From: guettliml@thomas-guettler.de @ 2014-11-28 07:48 UTC (permalink / raw)
  To: pgsql-bugs

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:

http://www.postgresql.org/docs/9.4/static/pgprewarm.html

I am missing: When does the prewarm happen? I guess it happens at server
start. But that's just a guess. Or does postgres do prewarm every N minutes?
Please improve the docs. 

Second thing I am missing: How to use this method? Please provide an
example. 

Thank you.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #12086: docs: prewarm: When does prewarm happen?
  2014-11-28 07:48 BUG #12086: docs: prewarm: When does prewarm happen? guettliml@thomas-guettler.de
@ 2014-11-28 18:10 ` Andres Freund <andres@2ndquadrant.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2014-11-28 18:10 UTC (permalink / raw)
  To: guettliml@thomas-guettler.de; +Cc: pgsql-bugs

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2014-11-28 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-11-28 07:48 BUG #12086: docs: prewarm: When does prewarm happen? guettliml@thomas-guettler.de
2014-11-28 18:10 ` Andres Freund <andres@2ndquadrant.com>

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