Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnnLS-0005LC-QF for pgsql-docs@arkaria.postgresql.org; Fri, 01 Sep 2017 14:54:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dnnLS-0002qI-Cu for pgsql-docs@arkaria.postgresql.org; Fri, 01 Sep 2017 14:54:54 +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.84_2) (envelope-from ) id 1dnnLR-0002q6-VI for pgsql-docs@postgresql.org; Fri, 01 Sep 2017 14:54:54 +0000 Received: from resqmta-po-12v.sys.comcast.net ([2001:558:fe16:19:96:114:154:171]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dnnLM-0005ev-TZ for pgsql-docs@postgresql.org; Fri, 01 Sep 2017 14:54:53 +0000 Received: from resomta-po-08v.sys.comcast.net ([96.114.154.232]) by resqmta-po-12v.sys.comcast.net with ESMTP id nnJzdi67fvtGcnnLEdzanN; Fri, 01 Sep 2017 14:54:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1504277680; bh=4b7zV8AzNaH2rNlNu1IbObYJIdbN61SyKkdXL13Fl34=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=T88u2A0ayORZNIoi7PL31uvQSLc4Im5YQHCXQ1wcYIyylK0mFVp5fFi14gQ7pk5Zo PdATAcduJ34tXHsyq2+/co5n8OlNwSJ2l+UxPFlOwVXpGL9GiFvvxZAemJ00XVR3a1 Y3ZN5btwF0+F1x32UHC3n39gwBFehvjVFOs+OAQNoXm3IkWTZCW77/zfy8rroRwU4H GlbQFuS6PJBgSAT8S85WKJQt/d9j1WwetgP6+hioqu5LWwhNQxpUCsSPFhSonu7ksc vjpgiA2xca57FDSbs4fDXrrN1DLhCA8zcnMLnXfh32HjAYe6hQvk5T9BNR4Z5e+885 K5Si/zSvK79Yg== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-po-08v.sys.comcast.net with SMTP id nnKydImRZR5dinnL3dTB7k; Fri, 01 Sep 2017 14:54:37 +0000 Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id EC85526005E; Fri, 1 Sep 2017 09:54:23 -0500 (CDT) From: Jerry Sievers To: None Cc: pgsql-docs@postgresql.org Subject: Re: Need help finding all possible parameters for wal_level References: Date: Fri, 01 Sep 2017 09:54:23 -0500 In-Reply-To: (None's message of "Fri, 1 Sep 2017 10:36:13 -0400") Message-ID: <8737865v1c.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Envelope: MS4wfDFqtTZ8hRounPFUSk2gXYWRJnlzPoEEjyRkwJgmg6Fxxy42TDzXJ9AFLrzWdrypssgK/F6T6lFZdcS1G6qEAzEmsrLbCUOQpyYtmON18OkCLEpJ7IW1 DUZiC4V+AFr9X+nTJOzzWPcfTT+LDvWJ9KuWKNLFWE+kaWzEB5rNAhyPT0F48AOjXLhJTMnbpbJwEurAWxdmjDR51QIt37u5CNpigMV3WIYQW8+40J3pOYl6 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org None writes: > Hi, > > I'm searching for all of the possible parameters for setting the > "wal_level" outlined in the PostgreSQL Streaming Replication article: > > https://wiki.postgresql.org/wiki/Streaming_Replication > > I currently see hot_standby, but I can't find a list for all of the > parameters that setting will take. Where can I find that? You didn't even tell us what version is relevant here but let's assume 9.6... https://www.postgresql.org/docs/9.6/static/runtime-config-wal.html wal_level (enum) wal_level determines how much information is written to the WAL. The default value is minimal, which writes only the information needed to recover from a crash or immediate shutdown. replica adds logging required for WAL archiving as well as information required to run read-only queries on a standby server. Finally, logical adds information necessary to support logical decoding. Each level includes the information logged at all lower levels. This parameter can only be set at server start. In minimal level, WAL-logging of some bulk operations can be safely skipped, which can make those operations much faster (see Section 14.4.7). Operations in which this optimization can be applied include: CREATE TABLE AS CREATE INDEX CLUSTER COPY into tables that were created or truncated in the same transaction But minimal WAL does not contain enough information to reconstruct the data from a base backup and the WAL logs, so replica or higher must be used to enable WAL archiving (archive_mode) and streaming replication. In logical level, the same information is logged as with replica, plus information needed to allow extracting logical change sets from the WAL. Using a level of logical will increase the WAL volume, particularly if many tables are configured for REPLICA IDENTITY FULL and many UPDATE and DELETE statements are executed. In releases prior to 9.6, this parameter also allowed the values archive and hot_standby. These are still accepted but mapped to replica. > > Thanks! > > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs