Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJVud-00059o-Ex for pgsql-admin@postgresql.org; Wed, 03 Oct 2012 20:51:23 +0000 Received: from smtp.01.com ([199.36.142.181]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJVub-0003gj-TY for pgsql-admin@postgresql.org; Wed, 03 Oct 2012 20:51:22 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 46E4E392E65 for ; Wed, 3 Oct 2012 15:51:20 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jVr9RjJiJm1t for ; Wed, 3 Oct 2012 15:51:20 -0500 (CDT) Received: from smtp.01.com (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 1F3D83A8D0E for ; Wed, 3 Oct 2012 15:51:20 -0500 (CDT) Received: from [192.168.1.100] (74-93-229-125-Colorado.hfc.comcastbusiness.net [74.93.229.125]) by smtp-out-2.01.com (Postfix) with ESMTPSA id 270A5392E80 for ; Wed, 3 Oct 2012 15:51:18 -0500 (CDT) Message-ID: <506CA4AA.6000709@consistentstate.com> Date: Wed, 03 Oct 2012 14:48:42 -0600 From: Brian Fehrle User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Should data directories match between master and hot standby? References: <506C99A6.2030708@consistentstate.com> In-Reply-To: <506C99A6.2030708@consistentstate.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/17 X-Sequence-Number: 40133 Hi all, Looks like I found the reason. There is a huge query on the slave that has been running for 5 hours. It's doing major sorting and has claimed 29 gigs in the base/pgsql_tmp/ directory, which is the excact discrepancy between the master and the slave. So makes sense, I'm good, - Brian F On 10/03/2012 02:01 PM, Brian Fehrle wrote: > Hi all, > > I have a hot standby (via streaming replication) set up on a > postgresql 9.0.4 system. > > (I'm looking at base to eliminate differences in xlog and pg_log, etc) > The size of my base directory on the master is 775G, the size of the > base directory on the hot standby is 804G. > > Is this normal? Collecting the info from the master and the slave > using the following shows I'm in sync: > > [on the master] select pg_current_xlog_location() -> > pg_xlogfile_name_offset -> (0000000100007AB0000000E7,7282688) > [on the slave] select pg_last_xlog_receive_location() -> > pg_xlogfile_name_offset -> (0000000100007AB0000000E7,7282688) > [on the slave] select pg_last_xlog_replay_location() -> > pg_xlogfile_name_offset -> (0000000100007AB0000000E7,7281296) > > So I'm in sync, not like the slave is waiting on a huge delete or > anything. > > Any thoughts or ideas what this could be? > > Thanks in advance, > > - Brian F > >