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 1fiJd0-0000nY-Qk for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 13:14:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiJcz-000254-AF for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 13:14:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiJcy-00024x-UH for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 13:14:53 +0000 Received: from fiedler.schlittermann.de ([212.80.235.136] helo=ikarus.unix-solution.de) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fiJcr-0001VT-Ah for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 13:14:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unix-solution.de; s=mx; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kNr+PlvY2NeIltYenCaynstGWqYcIAaGbRSvk+Nu6WU=; b=i7A/SGTv1LDJfzt5jSYOh2p7Ao haxHnFNDIh5Ty3+yDs9DikmFfaJgdP7tzcL5n2s1GubSyP3IxE9Gf33+JhLVGWWkR07Fyssygcrsz A4hQ7GzWnGe8kSSevPapGPQO85plPidn0RPzmg8vOyfx3+dI4CVSzCVNsc8aFtSuZl2s=; Received: from [10.10.11.134] (helo=[192.168.0.148]) by ikarus.unix-solution.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiJcl-0004Cn-Jb; Wed, 25 Jul 2018 15:14:39 +0200 Subject: Re: DB Backup from WAL Slave To: Andreas Kretschmer , pgsql-general@lists.postgresql.org References: <47914E19-80F3-47B9-90BF-E95F6FEB3700@a-kretschmer.de> From: basti Message-ID: <3fbd4917-254b-5f12-0df8-46e492182d04@unix-solution.de> Date: Wed, 25 Jul 2018 15:14:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <47914E19-80F3-47B9-90BF-E95F6FEB3700@a-kretschmer.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks a lot for this tip. I don't know is this is the right param. Becouse of: "... , but can cause database bloat on the primary for some workloads." This the an other way to backup the database and work around pg_dump: Error message from server: ERROR: canceling statement due to conflict with recovery # DETAIL: User was holding a relation lock for too long. this error? I have try bg_asepackup but this close with: pg_basebackup: could not connect to server: FATAL: number of requested standby connections exceeds max_wal_senders (currently 0) Best regards, On 24.07.2018 15:33, Andreas Kretschmer wrote: > On 24 July 2018 14:44:45 CEST, basti wrote: >> Hello, >> >> we have a db master and a slave. > > - >> >> How can I do an backup with pg_dumpall from slave? > > Set hot_standby_feedback to on. > > > Regards, Andreas > >