Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khcDK-0000i8-D2 for pgsql-general@arkaria.postgresql.org; Tue, 24 Nov 2020 17:34:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khcDJ-0003qi-BH for pgsql-general@arkaria.postgresql.org; Tue, 24 Nov 2020 17:34:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khcDJ-0003qa-39 for pgsql-general@lists.postgresql.org; Tue, 24 Nov 2020 17:34:49 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1khcDG-0005SD-I6 for pgsql-general@lists.postgresql.org; Tue, 24 Nov 2020 17:34:48 +0000 Received: by mail-ot1-x332.google.com with SMTP id o3so20109655ota.8 for ; Tue, 24 Nov 2020 09:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=F9S8tahM1lXtIrWMdeIy7f2i+r75sP3DAGreOFr1UAg=; b=Bxl7qu4jaEvVCf06X0LFkNfUnmPqNhK385EDqebtM8n9mRK3bYBVfrrYKS+bg+/oR7 lqkB1p6YF7aInkbbrEwC9lGWtoyyExHNXY3J1IoSzSWMSlhxnFNEVbmqgStmQkBNEEYi vNmeK0siMtwmZdIklu3tRo3NaziKfuc4AiLABQKpM7eXIrYUReG1KdxSSzN04FbhbNC6 khQfqoA57f54dtVSC+NXeGGCEdLmKbarpDQMXmvXhMx7nQGusoFjGzGY5BYF+tn8Xp59 BBvynZ8Z4ljJ+e6CNlNoM8cb3H0T5CoeNbfxu+gROCK+fuxNhW9JO+xS0e9eBVZqIp5E k9hQ== 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-language; bh=F9S8tahM1lXtIrWMdeIy7f2i+r75sP3DAGreOFr1UAg=; b=shtfWavoZTCiR54eAkOqM3CtPO/5TbEV6YQygErNwybW203yT74Pi1P/VGDqI5Dd90 DkY+N51QClr2jEsMFVP2Iipx1cwrgx+cinBTsUuBE9Uy39wiISWZI8pCMzg1T7FSniHE LzTM73Ku1/zRCbzQf53UAZGQKlBzS7bW5sgnPkHJal93hs6NIzxkSY7yZdf2a6R+guw0 J9H6y0Jm1RNAO+sukIddk6ChNa3nVMUOUBZxGl/J4PZ4Ke06WRNIpyXgoTMIqi9imhJ/ Dfd+Jxm6EVOnD1qpR2gsM5LR04d4u18vx+E5eHhyQw2MLcbk0zKrUzJx07IKODKY15MO 6h+g== X-Gm-Message-State: AOAM531JI4Ywxo7oRwhu1J6I2xj9aoYMDCKHVQkv2mL29XREfL+832XM WVWmtff5NBOnLzl/fXKGolD91pWgG6wc6g== X-Google-Smtp-Source: ABdhPJzB4+P+mROiryGEHgplg9hPyCu9Vd8S2OXweB+6xM4OpK0xJq3lgXnueCzToH1sHg9eBqHJbw== X-Received: by 2002:a9d:7f84:: with SMTP id t4mr4260781otp.302.1606239284498; Tue, 24 Nov 2020 09:34:44 -0800 (PST) Received: from [192.168.1.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id n129sm9949497ooa.17.2020.11.24.09.34.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2020 09:34:43 -0800 (PST) Subject: Re: Performance hit if I create multiple DBs on same instance To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <81211276-b0d3-305b-6fcb-4682af73b5f4@gmail.com> Date: Tue, 24 Nov 2020 11:34:42 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------74B42DC79C60B0D6DCEF6270" 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. --------------74B42DC79C60B0D6DCEF6270 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 11/24/20 8:36 AM, David Gauthier wrote: > Hi: > > 11.3 on linux > > I've come up with a plan to archive data from my main DB which involves > creating other DBs on the same server.  But even though there will be zero > activity on the archive DBs in terms of insert/update/delete, and almost > no activity in terms of select, I'm still worried that the mere existence > of these other DBs will steal resources away from the instance and degrade > performance in my main DB. *Why?*  If the data is just sitting there like a dead lump, it's not using any RAM or CPU cycles... And if you're afraid of autovacuum and autoanalyze stealing resources, then disable them (at the table level). -- Angular momentum makes the world go 'round. --------------74B42DC79C60B0D6DCEF6270 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 11/24/20 8:36 AM, David Gauthier wrote:
Hi:

11.3 on linux

I've come up with a plan to archive data from my main DB which involves creating other DBs on the same server.  But even though there will be zero activity on the archive DBs in terms of insert/update/delete, and almost no activity in terms of select, I'm still worried that the mere existence of these other DBs will steal resources away from the instance and degrade performance in my main DB.

*Why?*  If the data is just sitting there like a dead lump, it's not using any RAM or CPU cycles... And if you're afraid of autovacuum and autoanalyze stealing resources, then disable them (at the table level).

--
Angular momentum makes the world go 'round.
--------------74B42DC79C60B0D6DCEF6270--