Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fksHP-00052M-GR for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 14:39:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fksHN-0003RV-SM for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 14:39:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fksHN-0003RO-IC for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 14:39:09 +0000 Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fksHK-0007oc-D3 for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 14:39:09 +0000 Received: by mail-oi0-x244.google.com with SMTP id y207-v6so34975831oie.13 for ; Wed, 01 Aug 2018 07:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=K/ftL2YflbrRVT62UO/UCpbSnHopCZcE9575zQP15TQ=; b=WOT4qirJYTAU9K4yEK8KUo+OlzcUZe8G1cx3b1DLKHZROkspOW20Kt5srkU7cEpWE4 QNy83zThWRNu5eWzAQ4GHp7WTyOcXEwO+eDZEmyS3W1xRJf1KxM7EvrRL96+Cm2T7Uma 7DR4rWvypZtKEFauhaihyExxQHV6E4CX3wl16NxNiVejiB6U/dsVvFpbYW0iiEZHoj30 V5BaWNN0oI7o1AvHMABXmRXRsWTT3/vIxVNNZcpCiP9zBb1t/+o1W4U81nq4rmKRyl7S pu1MMc6xA0/4arspduM3tBRNHRhNhQY0KWGSV8NRvxjYizg4oeziDltzt9rZsCjwTRY0 PSMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=K/ftL2YflbrRVT62UO/UCpbSnHopCZcE9575zQP15TQ=; b=OP7X2bMnzVg4z9JjKRzyFi1JOcadGDJRRcCYGgvKjMhXHEnvxHqNcYXb8Ig7xD7l8/ cf08GqcP0EPAwRahdTN56uXtcIA6nNuzvT6LrRTR9xLIA+hrIxcdvdnce0koblHXzI0V 4naVrcChv+WlXcmCp69w/EMy9Ti8wjBI+QvUojBzxYfAPV4uMG19MzsvdfvQrzqRWNnM mPsv9X6F4guVOlX2j4fQobpUwqGkKTszOv04XAWuep2XMgXv7tzlMZDLLg3T6JDUXWkh DD4UzWatB3/2HZpmo62cxc8h7vpKvhZ/knCFpHR13YetIpvMnT+08xfKxoy9M7x93Inl P0ng== X-Gm-Message-State: AOUpUlG2tSW2YJyrpt6nYpb2WSlg+PJIAa92ku4ClCu3AlSIvHpbn0Yt QyH9bTlY+RvemKRaq7jJC7LHuCca X-Google-Smtp-Source: AAOMgpeCzgb7ilj5A+/QfZx8APUpAeBv57mbnD3CRapGRf8BoGtzaHM5ggQ42BxxdtKbGklSzfF+Qw== X-Received: by 2002:aca:e748:: with SMTP id e69-v6mr3942129oih.263.1533134343540; Wed, 01 Aug 2018 07:39:03 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id j193-v6sm11032034oih.55.2018.08.01.07.39.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 07:39:02 -0700 (PDT) Subject: Re: Settings for fast restores To: pgsql-general@lists.postgresql.org References: <158db2d8-6dc2-95c7-6247-1d405366e2ff@gmail.com> From: Ron Message-ID: <4e70e8ee-010b-28ce-9e51-f8c34ad991cc@gmail.com> Date: Wed, 1 Aug 2018 09:39:01 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------56A07AD8F18734A52740624B" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------56A07AD8F18734A52740624B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 08/01/2018 09:11 AM, Vick Khera wrote: > On Wed, Aug 1, 2018 at 2:03 AM, Ron > 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. 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. --------------56A07AD8F18734A52740624B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 08/01/2018 09:11 AM, Vick Khera wrote:
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.

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.
--------------56A07AD8F18734A52740624B--