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 1nA05x-00024S-EG for pgsql-admin@arkaria.postgresql.org; Wed, 19 Jan 2022 01:49:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nA05w-0007aW-5i for pgsql-admin@arkaria.postgresql.org; Wed, 19 Jan 2022 01:49:04 +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 1nA05v-0007aM-Ps for pgsql-admin@lists.postgresql.org; Wed, 19 Jan 2022 01:49:03 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nA05t-000476-Gd for pgsql-admin@lists.postgresql.org; Wed, 19 Jan 2022 01:49:03 +0000 Received: by mail-ot1-x32b.google.com with SMTP id x31-20020a056830245f00b00599111c8b20so1005427otr.7 for ; Tue, 18 Jan 2022 17:49:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=IKZnL70MfnhqNK2kk8GoLsPbGgyUPSMTTHWcLcYn0W8=; b=KFzwNRMdQlc+9w5dY/SIFgWAKmVhnuyL6AzzDcwGIgW+64KjJmvdyDdx0Dn/0sD2NS c+fDIu/8YD8KFgtcvJ2Xbk42oyMlSooJjWInGZbUbxdyeLckvT49daexykSRqKVdRGaB SbPJamMYCYO10VIYi7BjKswJRGWqqfDIw3HQlrgaUHPF7odIDP3fMbiROIBaEunXSptf 7HEb2StPr68RpbJkoTu3FKioqwB+dXqjrfp2F5t891uaRAVMadsz0kaN6wTySJrP+FEO +3xmyrS8x5yUNWLdNUobLOaD/cU7K23Q3oUW14+Z8MXJ6zEeyLZEDkEQZeqyTvRHD0Ts gdIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=IKZnL70MfnhqNK2kk8GoLsPbGgyUPSMTTHWcLcYn0W8=; b=47zLHVAbyJqTF8BHY4H7+slrtlXEuwB2EIWI1I441bzVCyGtEoJQ8mhbtao7JTUuC/ q2XTo2Ol2BY7+zjyxN2hFSgJBwmBGF6ObBUaO/a9PGo05JNtnQIUPRp0FsnDZ49Bag3R dkwOqbc16X+54eymol3rszgZ6nZvbkn/Dpa/2kfu3LZ9l5CJs7IV9W8EaI0n/Ej/81m5 tsmtc5ZbICga8DMiBybAk3Anir49sabegWgYjYWo8AXvwajINtfsO6dSHgEq+yR40WxI 38ILZkrIl+qc9cEQwhNY+LpT8N2x/4O+y5Dn4zSyVrQ9OuBk80ce9fX9VOA0MxYnYzUr gO5Q== X-Gm-Message-State: AOAM531XNge7oFxcyB2B7rKaTliCCL0mYxBshswMygCVPdQHuJUzx7Rh 66Tt8zDDkQW+WP1aj9wJRtctpSW2EXE= X-Google-Smtp-Source: ABdhPJxvK9OCan7YEcoJujA4gmdZffccqopZi3RrfEvQGrTmUk4EAqFMHWJGGO1QpZdi3/rVtzdS2w== X-Received: by 2002:a9d:604d:: with SMTP id v13mr12745983otj.33.1642556939234; Tue, 18 Jan 2022 17:48:59 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id 64sm1391524oif.8.2022.01.18.17.48.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jan 2022 17:48:58 -0800 (PST) Subject: Re: Large number of partitions of a table To: pgsql-admin@lists.postgresql.org References: <3919502.1642393668@sss.pgh.pa.us> <671340a5-1960-e5dc-1d09-4b7f36cda2c8@gmail.com> <254601.1642480213@sss.pgh.pa.us> <268771.1642489687@sss.pgh.pa.us> <0fdfb200-9aad-370b-3282-6585158de94f@gmail.com> From: Ron Message-ID: <6cea6b1c-9e12-2771-a2f7-d8a73ce723f3@gmail.com> Date: Tue, 18 Jan 2022 19:48:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <0fdfb200-9aad-370b-3282-6585158de94f@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/18/22 6:09 PM, Mladen Gogala wrote: > On 1/18/22 09:47, Ron wrote: >> EXPLAIN plans are going to be hilariously gigantic, which means that >> query planning would take a loooong time,  And the query planner (in v12, >> at least) can generate some pretty bad plans in partitioned tables; I bet >> there are edge cases in the QP code that don't work well with 10000 >> partitions and 50000 indices. > > These things sometimes happen. On the oracle-l, there is a thread in > progress about a generated SQL with 130,000 lines which fails parsing > because parsing exhausts the available memory. > But there wasn't any programming.  The company saved so much money!!! > In such cases, I am less inclined to look for a fault with the database > software and more inclined to inflict an unusual and cruel punishment on > whoever has designed the data model. > OOP was definitely involved, in some way or form... -- Angular momentum makes the world go 'round.