Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRjWB-0008BV-Bt for pgsql-performance@arkaria.postgresql.org; Thu, 12 Jan 2017 17:50:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cRjWA-0007lI-TO for pgsql-performance@arkaria.postgresql.org; Thu, 12 Jan 2017 17:50:30 +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 1cRjUU-0005np-Jr for pgsql-performance@postgresql.org; Thu, 12 Jan 2017 17:48:46 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cRjUC-0000Lm-In for pgsql-performance@postgresql.org; Thu, 12 Jan 2017 17:48:44 +0000 Received: by mail-pf0-x22f.google.com with SMTP id y143so16540016pfb.0 for ; Thu, 12 Jan 2017 09:48:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=propaas-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=3usfAPtHQt9SmwLRcBquwIChsS+9DdRl6cuanDH+gRE=; b=gwIqz5lRFbNbWy4aYCqDD1ENcPQT9YrwapXTtclzriLKLuud0MQmnybUnUy/dyS3nV rq6EMNnoNLe06EPWQ0amTOhPDlGEFrBvmBx4XqChws/v13ARqbObux5caVSMGVFrF2SF 7H6BtNsF0B84gMRZ36qeMvHryX6PmAnRUPzm6YOlfoKc3/smCWU03Zs1S9hId8rjeWti /FCnur5PH4cvFxgiTu4dNUCn9rplVgdA+q7ZYT9LTYESxGpOormsaxt66GXr3Q40eZSa JAab7DxVbGpNN8Wr3np/Ckzt3cXrLqhDwYXlggnVR96n1ebrDVGwpjP1Chl5bXifhvyN w1UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=3usfAPtHQt9SmwLRcBquwIChsS+9DdRl6cuanDH+gRE=; b=khcwnehFbOvEmTrZsEbrcEWzX3jb8mYg1VSydu2yKj9HL2B/iOmdpGjDIfguGY9Is/ zJf2WnVhoRURGEzilx9UmQpm+5jQ3uJgy5MnIuiasJBOP/2Ykh231LkOOttIOWCkIlSZ hRvC0ew5TrkeXzoBFHJgKpNGLSdrvmJ3hQHcEl+mPLkwTPRUoTIygY2tstB8XsA6zKcM Vq6S4Y15ZEigxPrgwRLXioGtavj8qEVSBS4hvxRn/Z+kaMifW+vZQ2Ahu6WaGayigWtw shUh5X83dOMeVW6lfPJ29JT2oXlZq9wIEva6K0FVkAzWkKtmks//K3vZ10jEmlzs60lb wKyA== X-Gm-Message-State: AIkVDXIE77X0Y5f5eMS8ElbSL33r+ElwBQ6MqwdlevgyDhrL4vA9UZtT1y8XbR1VBs9QEw== X-Received: by 10.98.32.221 with SMTP id m90mr18264057pfj.127.1484243306722; Thu, 12 Jan 2017 09:48:26 -0800 (PST) Received: from [192.168.1.17] (c-24-9-41-137.hsd1.co.comcast.net. [24.9.41.137]) by smtp.gmail.com with ESMTPSA id x4sm23342321pgc.14.2017.01.12.09.48.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 09:48:25 -0800 (PST) Subject: Re: Sort-of replication for reporting purposes To: pgsql-performance@postgresql.org References: From: ProPAAS DBA Message-ID: <4ddea826-e99e-ff6f-d791-cc7bff89b03c@propaas.com> Date: Thu, 12 Jan 2017 10:48:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 01/06/2017 12:24 PM, Ivan Voras wrote: > Hello, > > I'm investigating options for an environment which has about a dozen > servers and several dozen databases on each, and they occasionally > need to run huge reports which slow down other services. This is of > course "legacy code". After some discussion, the idea is to offload > these reports to separate servers - and that would be fairly > straightforward if not for the fact that the report code creates temp > tables which are not allowed on read-only hot standby replicas. > > So, the next best thing would be to fiddle with the storage system and > make lightweight snapshots of live database clusters (their storage > volumes) and mount them on the reporting servers when needed for the > reports. This is a bit messy :-) > > I'm basically fishing for ideas. Are there any other options available > which would offer fast replication-like behaviour ? > > If not, what practices would minimise problems with the storage > snapshots idea? Any filesystem options? > You could have a look at SLONY - it locks the replicated tables into read only but the standby cluster remains read/write. As an added bonus you could replicate everything into a single reporting database cluster, in separate schema's there are lots and lots of features with SLONY that give you flexibility. http://slony.info/ I can't speak from direct experience but I think pg_logical may offer similar features -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance