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 1t6tNl-00GHMl-8A for pgsql-general@arkaria.postgresql.org; Fri, 01 Nov 2024 15:16:13 +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 1t6tNj-00EhLz-J7 for pgsql-general@arkaria.postgresql.org; Fri, 01 Nov 2024 15:16:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6tNj-00EhLq-7R for pgsql-general@lists.postgresql.org; Fri, 01 Nov 2024 15:16:11 +0000 Received: from cloud.gatewaynet.com ([185.90.37.94]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6tNc-004Cbc-SJ for pgsql-general@lists.postgresql.org; Fri, 01 Nov 2024 15:16:10 +0000 Content-Type: multipart/alternative; boundary="------------60UU9tFJkaBV2fl7RtgNeotx" Message-ID: Date: Fri, 1 Nov 2024 16:15:54 +0100 MIME-Version: 1.0 Subject: Re: Plans for partitioning of inheriting tables To: pgsql-general@lists.postgresql.org References: <20241024214702.Horde.hYZQZgT8lc-DKEIqL9Ai-E3@webmail.gelassene-pferde.biz> Content-Language: en-US From: Achilleas Mantzios - cloud In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------60UU9tFJkaBV2fl7RtgNeotx Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/24/24 21:58, David G. Johnston wrote: > On Thursday, October 24, 2024, wrote: > > > Up to version 17, partitioning of tables inheriting from other > tables is not possible. > > psql:../code_files/data_storage/PostgreSQL/tables/TOPO_FILES.pg_sql:68: > ERROR:  no se puede crear una tabla particionada como hija de > herencia > > > Are there plans to support this in the future? I could not find > any hint in the documentation or in > https://wiki.postgresql.org/wiki/Development_information > . > > > My impression of things is that directly using “inherit” for table > creation is considered deprecated at this point.  No one has interest > in expanding on the feature nor even recommends it be used in new > development.  That particular unique feature of PostgreSQL hasn’t > caught on. Hi, opinions vary, IMHO inheritance it is a nice feature to have especially in multi-tenant situation where tenants represent a division or subsidiary rather than a completely foreign entity which should live in total isolation, plus the ability to have data on the top owning or managing organization. IMHO nothing beats inheritance in fitting to the above model. Partitioning comes close but partitioned tables cannot have any data on their own. There are workarounds of course to that, but they don't fit like a glove. But again I have not tested in heavy xactional envs TBT, I am just saying the feature is handy for many applications and models. I use it personally in my company and love it. Could I do without it? of course, but it would be ugly. > > David J. --------------60UU9tFJkaBV2fl7RtgNeotx Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 10/24/24 21:58, David G. Johnston wrote:
On Thursday, October 24, 2024, <thiemo@gelassene-pferde.biz> wrote:

Up to version 17, partitioning of tables inheriting from other tables is not possible.
psql:../code_files/data_storage/PostgreSQL/tables/TOPO_FILES.pg_sql:68: ERROR:  no se puede crear una tabla particionada como hija de herencia

Are there plans to support this in the future? I could not find any hint in the documentation or in https://wiki.postgresql.org/wiki/Development_information.

My impression of things is that directly using “inherit” for table creation is considered deprecated at this point.  No one has interest in expanding on the feature nor even recommends it be used in new development.  That particular unique feature of PostgreSQL hasn’t caught on.
Hi, opinions vary, IMHO inheritance it is a nice feature to have especially in multi-tenant situation where tenants represent a division or subsidiary rather than a completely foreign entity which should live in total isolation, plus the ability to have data on the top owning or managing organization. IMHO nothing beats inheritance in fitting to the above model. Partitioning comes close but partitioned tables cannot have any data on their own. There are workarounds of course to that, but they don't fit like a glove. But again I have not tested in heavy xactional envs TBT, I am just saying the feature is handy for many applications and models. I use it personally in my company and love it. Could I do without it? of course, but it would be ugly.

David J.
 
--------------60UU9tFJkaBV2fl7RtgNeotx--