Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gymaN-0003PV-QQ for pgsql-general@arkaria.postgresql.org; Tue, 26 Feb 2019 23:56:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gymaM-0003jo-DV for pgsql-general@arkaria.postgresql.org; Tue, 26 Feb 2019 23:56:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gymaK-0003jU-AH for pgsql-general@lists.postgresql.org; Tue, 26 Feb 2019 23:56:30 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gymaH-0002Mv-C5 for pgsql-general@lists.postgresql.org; Tue, 26 Feb 2019 23:56:27 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1EAE1218A8; Tue, 26 Feb 2019 18:56:24 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 26 Feb 2019 18:56:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=+ MEN7OmqJErW9g3gdpwrLgmSpANwxedLLJTQJ3SsYz4=; b=aW9ngPo6VpJC9mbpK CVX1+z4J+xW7XSIEbzFXNYa/iKDcg45AXdIw+HXHIhNJSSXBWQ/lGCIRtW7AXACe veDRLTrIBtGWvgJFZF3xGBa1sjJgqgSfpUX+XrkRJjyL41EbWz2u//kW4E5t8AKq /18sxak0/m7cV/wnNImy2scQKa10Md4QtYDy77Yxtp8aoEDo+wzboSZGdR0d/Y/I sriWJBtINwrfSYj6R6pVJbeePt1Jy4q1FmUNGHUUDGrnMuKtih6ZP0nzq1htXpWv QBen+7SoMZx+htuBXdwUb87huJmzW3xvK61XKsZDtBQ/X8TPEK4/P5YtUiNgghL3 4UGqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=+MEN7OmqJErW9g3gdpwrLgmSpANwxedLLJTQJ3SsY z4=; b=zgSDPQFJ6MFFrAPohd8N/o9pVttBiwr+szF3CgpqTxQAlcjjbK4uy44DW lqN4aJ1cnczuCgzbwhZPqPPQKt+CPUfGfRgz6ibi5ofWuZS4yrldQwTUrbYBiCyJ +XdXLqDHhRn1US5vYpGXNzVIqBqHwB1gYSTbcZOPrxeYJGR+FZsifMFsfAlg1XpK Lx+EIp9abPlAQLjKkfpc5hdPKeFMRrK7GuZggjNNINJUFoknO74GN+pFmWU3pmQK Pu7vSnwPBKdgIJjLLPCjSxsSaU0GcsIhNexc82hIuVl/dKSlx9vnpWc02tQTNc7B ggYoU1ep81ehZ4tvsq2FzLnKG6f8g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrvddtgddufecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefheenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 353A9E4309; Tue, 26 Feb 2019 18:56:23 -0500 (EST) Subject: Re: replication topography To: Julie Nishimura , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: Date: Tue, 26 Feb 2019 15:56:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/26/19 2:40 PM, Julie Nishimura wrote: > Hello everybody, > I've inherited big complicated postgresql kingdon with multiple servers > in it, some of them are replicated, some of them are not, and there is > Bunch of them. > > What would you be your suggestion, how should I start my investigation > what is master, what is replicas, is there any slony/streaming > replication. etc? In addition to what Steve posted: 1) Do a search on the machines for the file PG_VERSION. That will locate the the PGDATA directory for each instance. 2) Are you dealing with the same OS across the servers? Can you use the package manager to ferret out the Postgres servers? > > Some of them stand alone instances, but some are mirrored. And of > course, developers want to know answers NOW:) Well either: 1) They don't how things where setup in the past and still managed to get development done, so the need to know NOW is just panicking. 2) They do know some or all of the layout and can contribute to the solution. > > The versions are mainly 8.3 and 9.4. So, pg_is_in_recovery shows either > function doe not exist (on 8.3) or "f" for 9.4 (which can mean it is > master, right)? > > Any advises are greatly appreciated. > > Thank you, > Julie -- Adrian Klaver adrian.klaver@aklaver.com