pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Settings for fast restores
3+ messages / 2 participants
[nested] [flat]

* Settings for fast restores
@ 2018-08-01 06:03  Ron <ronljohnsonjr@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Ron @ 2018-08-01 06:03 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi,

http://www.databasesoup.com/2014/09/settings-for-fast-pgrestore.html

shared_buffers = 1/2 of what you'd usually set
maintenance_work_mem = 1GB-2GB
wal_level = minimal
full_page_writes = off
wal_buffers = 64MB
checkpoint_segments = 256 or higher
max_wal_senders = 0
wal_keep_segments = 0

How many of these 4 year old setting recommendations are still valid for 9.6?

Thanks

-- 
Angular momentum makes the world go 'round.




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

* Re: Settings for fast restores
@ 2018-08-01 14:11  Vick Khera <vivek@khera.org>
  parent: Ron <ronljohnsonjr@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Vick Khera @ 2018-08-01 14:11 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On Wed, Aug 1, 2018 at 2:03 AM, Ron <ronljohnsonjr@gmail.com> wrote:

> Hi,
>
> http://www.databasesoup.com/2014/09/settings-for-fast-pgrestore.html
>
> shared_buffers = 1/2 of what you'd usually set
> maintenance_work_mem = 1GB-2GB
> wal_level = minimal
> full_page_writes = off
> wal_buffers = 64MB
> checkpoint_segments = 256 or higher
> max_wal_senders = 0
> wal_keep_segments = 0
>
> How many of these 4 year old setting recommendations are still valid for
> 9.6?
>

They all look still valid to me. I personally also set fsync=off since I
can always start over if the machine crashes and corrupts the data.

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

* Re: Settings for fast restores
@ 2018-08-01 14:39  Ron <ronljohnsonjr@gmail.com>
  parent: Vick Khera <vivek@khera.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Ron @ 2018-08-01 14:39 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 08/01/2018 09:11 AM, Vick Khera wrote:
> On Wed, Aug 1, 2018 at 2:03 AM, Ron <ronljohnsonjr@gmail.com 
> <mailto:ronljohnsonjr@gmail.com>> wrote:
>
>     Hi,
>
>     http://www.databasesoup.com/2014/09/settings-for-fast-pgrestore.html
>     <http://www.databasesoup.com/2014/09/settings-for-fast-pgrestore.html;
>
>     shared_buffers = 1/2 of what you'd usually set
>     maintenance_work_mem = 1GB-2GB
>     wal_level = minimal
>     full_page_writes = off
>     wal_buffers = 64MB
>     checkpoint_segments = 256 or higher
>     max_wal_senders = 0
>     wal_keep_segments = 0
>
>     How many of these 4 year old setting recommendations are still valid
>     for 9.6?
>
>
> They all look still valid to me. I personally also set fsync=off since I 
> can always start over if the machine crashes and corrupts the data.

Right.  I didn't mention these, because they seem version-agnostic:

fsync = off
synchronous_commit = off
archive_mode = off
autovacuum = off
all activity logging settings disabled

-- 
Angular momentum makes the world go 'round.

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


end of thread, other threads:[~2018-08-01 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01 06:03 Settings for fast restores Ron <ronljohnsonjr@gmail.com>
2018-08-01 14:11 ` Vick Khera <vivek@khera.org>
2018-08-01 14:39   ` Ron <ronljohnsonjr@gmail.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