Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egdVg-00056R-69 for pgsql-admin@arkaria.postgresql.org; Tue, 30 Jan 2018 21:32:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egdVe-00028c-Jj for pgsql-admin@arkaria.postgresql.org; Tue, 30 Jan 2018 21:32:06 +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.84_2) (envelope-from ) id 1egdVe-00028S-53 for pgsql-admin@lists.postgresql.org; Tue, 30 Jan 2018 21:32:06 +0000 Received: from mail-ot0-x234.google.com ([2607:f8b0:4003:c0f::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1egdVb-0007rv-Fn for pgsql-admin@lists.postgresql.org; Tue, 30 Jan 2018 21:32:04 +0000 Received: by mail-ot0-x234.google.com with SMTP id d9so11387717oth.6 for ; Tue, 30 Jan 2018 13:32:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgsqlrocket-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=NCXfNr9I8UzjWWiUbSXcq1Dy3RHEpAbCLM9SoHTaL9U=; b=b3QvPpRRk2S8hbjXdwbUjoga4WWejP6u1CNV8kKdcufatGT1Kz+49ZNgCTouSdSBGc xMHVMsOswgB72uCs1QgEcPueIjjzOJxdJNC5ah1M14MrwRV+heJwuF2/LHYufFWB00mG k2ms0EhI1ncjuuMKfmh7rAJ37/oyUGWcZv93+BQnT/NbZp8lUOd4bdmDJ5OPcrEVEiRZ oF8VA6NM3js50qddu2ywQkHZa/ePUyHxCVgszOjjZNo4q+wZFUDKXj39zUm0C1W5iEMX IIU5X9QC/F1+FowACSDUNIwr498+hgykew58u0vDtxyFi4Wi0ZwVra+qsPJdHe9m14zR MNKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=NCXfNr9I8UzjWWiUbSXcq1Dy3RHEpAbCLM9SoHTaL9U=; b=fZ+IvG4XVkTVNydftwEVrwrDZJEe486vM4E7sIuACdfuBbqmnlUQl4o4i8hiMv07bS hLaFftvI6PLsoneK94RnN6zNSoOwm5UrhmiPf8tbOisAMM5lAw6M3bMwOXx0cMqbdf8b MjhDHc0Z2gnL+J2H308HQVnBXtWbmTcZJ6xkldUyBQWKTt734S4QbJki7lhfTM+vGyQU rsgYzBrtvcGbCpsd9vHJT7YSRvLKtt8IGVamJ1bEo3ailRzioNxcijN6QFfPPc9n5HD8 APNV65Z7Qbf3+n3/XgnZu0noJc0LlbUlBWetXVlEfFntKjzaQXmWxzDKE1ktnmhp5aBr 6vyQ== X-Gm-Message-State: AKwxytesQ8ICsYuyOfkxl8pBFRTDAjx85zUfDYEn6vO2N6aVUUNOao+H xpvClSVcxC3NF0ZN+qNYa+E0b64eds0= X-Google-Smtp-Source: AH8x225hD99HeDOef6X/kFP7lKfe45L86q7Xg88uJYM1wG3cOyajUI+uijyC55yTZILTIOvvXSxXbQ== X-Received: by 10.157.35.114 with SMTP id k47mr7669710otd.338.1517347921981; Tue, 30 Jan 2018 13:32:01 -0800 (PST) Received: from localhost.localdomain ([65.132.155.214]) by smtp.gmail.com with ESMTPSA id 72sm8184464oth.1.2018.01.30.13.32.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 13:32:01 -0800 (PST) Subject: Re: pg_xlog piling To: Jorge Torralba , "David G. Johnston" Cc: "pgsql-admin@lists.postgresql.org" References: <575c1026-aabd-4854-55f7-1292c57b3da6@pgsqlrocket.com> From: chris Message-ID: <5ea7febf-4697-ff4d-4ee4-aa9508feb6e1@pgsqlrocket.com> Date: Tue, 30 Jan 2018 14:31:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------E9F24E1C0B1BFC4D30B2D06F" 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. --------------E9F24E1C0B1BFC4D30B2D06F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit postgres=# select * from pg_stat_replication; pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | state | sent_location | write_location | flush_location | replay_locatio n | sync_priority | sync_state ------+----------+----------+------------------+----------------+-----------------+-------------+-------------------------------+-----------+---------------+----------------+----------------+--------------- --+---------------+------------ 5303 | 10 | postgres | walreceiver | 198.161.184.74 | | 57049 | 2017-12-14 11:13:16.339948-07 | streaming | 2FD3/41A38140 | 2FD3/41A38140 | 2FD3/41A38140 | 2F47/7015D490 | 0 | async (1 row) postgres=# # - Archiving - archive_mode = on        # allows archiving to be done archive_command = 'cp %p /ComplianceDB/pitr/walstage/%f; mv /ComplianceDB/pitr/walstage/%f /ComplianceDB/pitr/wal/%f'     # (change requires restart) #archive_command = ''        # command to use to archive a logfile segment                 # placeholders: %p = path of file to archive                 #               %f = file name only                 # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' #archive_timeout = 0        # force a logfile segment switch after this                 # number of seconds; 0 disables Thanks On 01/30/2018 12:59 PM, Jorge Torralba wrote: > what is your archive command and is your replica up to date?  Any > messages in the pg_log that would indicate the replica is not > receiving update ? > > On Tue, Jan 30, 2018 at 11:09 AM, David G. Johnston > > wrote: > > On Tuesday, January 30, 2018, chris > wrote: > > This was a problem before when we were on postgresl 9.2 > > > What version are you on now? > > David J. > > > > > -- > Thanks, > > Jorge Torralba > ---------------------------- > > Note: This communication may contain privileged or other confidential > information. If you are not the intended recipient, please do not > print, copy, retransmit, disseminate or otherwise use the information. > Please indicate to the sender that you have received this email in > error and delete the copy you received. Thank You. --------------E9F24E1C0B1BFC4D30B2D06F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
postgres=# select * from pg_stat_replication;
 pid  | usesysid | usename  | application_name |  client_addr   |
client_hostname | client_port |         backend_start         |   state   |
sent_location | write_location | flush_location | replay_locatio
n | sync_priority | sync_state 
------+----------+----------+------------------+----------------+-----------------+-------------+-------------------------------+-----------+---------------+----------------+----------------+---------------
--+---------------+------------
 5303 |       10 | postgres | walreceiver      | 198.161.184.74 |               
 |       57049 | 2017-12-14 11:13:16.339948-07 | streaming | 2FD3/41A38140 |
2FD3/41A38140  | 2FD3/41A38140  | 2F47/7015D490 
  |             0 | async
(1 row)

postgres=# 


# - Archiving -

archive_mode = on        # allows archiving to be done

archive_command = 'cp %p /ComplianceDB/pitr/walstage/%f; mv /ComplianceDB/pitr/walstage/%f /ComplianceDB/pitr/wal/%f'                # (change requires restart)
#archive_command = ''        # command to use to archive a logfile segment
                # placeholders: %p = path of file to archive
                #               %f = file name only
                # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
#archive_timeout = 0        # force a logfile segment switch after this
                # number of seconds; 0 disables
Thanks


On 01/30/2018 12:59 PM, Jorge Torralba wrote:
what is your archive command and is your replica up to date?  Any messages in the pg_log that would indicate the replica is not receiving update ?

On Tue, Jan 30, 2018 at 11:09 AM, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Tuesday, January 30, 2018, chris <chrisk@pgsqlrocket.com> wrote:
This was a problem before when we were on postgresl 9.2 

What version are you on now?

David J. 



--
Thanks,

Jorge Torralba
----------------------------

Note: This communication may contain privileged or other confidential information. If you are not the intended recipient, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this email in error and delete the copy you received. Thank You.

--------------E9F24E1C0B1BFC4D30B2D06F--