Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6vxS-00GW17-I7 for pgsql-general@arkaria.postgresql.org; Fri, 01 Nov 2024 18:01:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t6vxQ-00G2KF-QJ for pgsql-general@arkaria.postgresql.org; Fri, 01 Nov 2024 18:01:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6vxP-00G2K3-6i for pgsql-general@lists.postgresql.org; Fri, 01 Nov 2024 18:01:12 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6vxJ-003zxp-SH for pgsql-general@lists.postgresql.org; Fri, 01 Nov 2024 18:01:10 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfout.stl.internal (Postfix) with ESMTP id 865EE1140142; Fri, 1 Nov 2024 14:01:04 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Fri, 01 Nov 2024 14:01:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1730484064; x=1730570464; bh=NdxIei8m3u2dvpl36Omq+dkPxrpzmBUAdlHyRUau/jc=; b= qpAiIYwxZHYUXByQvGwUtE25LnNyRt8E2gWI3rgJ7Jc3wHxn/YGQtutO1M7VcNHB RRle9E6EVFTDZV7jY1T93rv6UsUkUnelqDnWKtrrSMDf0XBPmUl2OBBwmj1uyO06 vWPndofljB02axyiT6ygh/E9ObKTy8oGPW8uWUx4qi3lGuO1EtZpdMl35mcB3o10 r8cdi2FGdD8hA0mNfR3E2krFF4ALQ4UJt1GtYHx2WqI3HVpzNyrcTmN9R7UueVzF yK952Ivd5ZuP7ITPj2F8ocaWhRJ0wDd9js62TII6cIAaNKkV+0Uz/3fTHAxc+Rk6 GmASu+4jgNcwV3mcBxcdVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1730484064; x= 1730570464; bh=NdxIei8m3u2dvpl36Omq+dkPxrpzmBUAdlHyRUau/jc=; b=R sWOJJkuLmGuxa+Q86+UA6z5ejvsm2ac3f6H78kb+5rjyrSP4aivX4u9yw/NWQqI1 7pGtlHylXLroSXahDYODcZ+1fLNWhWyQse4mc5h85vGPpNNaspB6auRcJmlum29U hipcjJvudgvMsgGldXiD46aja8kc3y+DFnNsDivjD/alXYtTbaZJgUBjYBAWl5D9 NzLp/WA6VxVqQD2tvgzID51EhVWxGN0qKt9308Wd+W4FX/VaAwnjMITv1ioa2Cek CICwVD3cb4YeyOZDGuL+ermFGuimEk4z4U17ak7oz4jsQDqtVN73A5Znwn+MHSJS BSTLFnlYAN8PaJDcuai0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdekledguddtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefgudefkefhveefleev ieeuveehvdduudekuddvvdelhfeuueeijedtuedvvedvueenucffohhmrghinhepphhosh htghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnh gspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepthhhihgv mhhosehgvghlrghsshgvnhgvqdhpfhgvrhguvgdrsghiiidprhgtphhtthhopehpghhsqh hlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Nov 2024 14:01:03 -0400 (EDT) Message-ID: <6bc57377-52e1-496a-b9d6-4cd9dc84d92e@aklaver.com> Date: Fri, 1 Nov 2024 11:01:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Plans for partitioning of inheriting tables To: thiemo@gelassene-pferde.biz Cc: PostgreSQL General References: <5757acdc-39ed-4642-a449-26e47b1bcf95@gelassene-pferde.biz> <20241101094106.Horde.TwPSs9YUgJ5v-_M-4ltwoeh@webmail.gelassene-pferde.biz> <14c1eb8c-a853-43b3-a1ea-b105bfd6c99b@aklaver.com> <20241101182110.Horde.P_w6KptTjJNeM1X9Asg5bE3@webmail.gelassene-pferde.biz> Content-Language: en-US From: Adrian Klaver In-Reply-To: <20241101182110.Horde.P_w6KptTjJNeM1X9Asg5bE3@webmail.gelassene-pferde.biz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/1/24 10:21 AM, thiemo@gelassene-pferde.biz wrote: > > Adrian Klaver escribió: > >> Changing that would count as a major change. Even if you where to >> convince the developers to make the change the earliest it would >> released would be with the next major release in Fall of 2025. That >> assumes you can convince then early enough or at all. > > I was not trying to convince anyone to do anything about the > implementation of declarative partitioning. I have been just curious if > there were plans. If I have raised the impression of the former, I am > sorry. Even if there where plans, any changes would happen in the future and would not be help the now problem. >>> Is there experience on the efficiency/speed comparing partitioning >>> with inheritance using triggers/rules and using the declarative way? >>> I don't think that partition speed is an issue in my case, as I have >>> fairly few records that are in themselves rather big. >> >> Hard to say without some firm numbers and/or testing. > > Sure, I was hoping those test would have been done some day. But in the > end, to me, it is not important. That is contradicted by your statement below: "I mean to say that I believe that loading that much data into one field will take much more time than runtime difference of trigger/rules/declarative partitioning solutions would to sort the data into the correct partition." Either performance is important or it is not. If TILE is referring to the same thing you are dealing with in related question on psycopg list then you are talking about bytea storage. You should take a look at: https://www.postgresql.org/docs/current/storage-toast.html In any case assuming you are not entering/reading/updating all the bytea data at one time then you are looking at fetching only that bytea data that are filtered by other attributes of the rows. I would strongly suggest running some tests on a single table with the data and see if you can live with the performance results before complicating things with partitioning. > >> Also this "... I have fairly few records that are in themselves rather >> big" could use some explanation. In other words what makes you think >> that partitioning is the answer to this issue? > > I was not thinking that partitioning was the answer to a performance > problem. Partitioning might be an answer to the maintenance of records, > specifically if entire sources are affected. The size of the tif files > to get loaded into the raster attribute TILE range from 112 kB to 32 MB. > I am complete unaware of the inner storing mechanisms of raster in > PostGIS, but on first sight, it seems that the rest of a records of > TOPO_FILES is negligible compared to the TILE. The total number of files > to be loaded in my case are 3273, even though that only encompasses a > small part of the world, I do not think, the latter would surpass 100000 > records. Not much for a database table, afaik. I mean to say that I > believe that loading that much data into one field will take much more > time than runtime difference of trigger/rules/declarative partitioning > solutions would to sort the data into the correct partition. > -- Adrian Klaver adrian.klaver@aklaver.com