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 1quy9O-002NH9-E3 for pgsql-general@arkaria.postgresql.org; Mon, 23 Oct 2023 16:51:34 +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 1quy9M-00Byds-Et for pgsql-general@arkaria.postgresql.org; Mon, 23 Oct 2023 16:51:33 +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 1quy9M-00Byd8-4X for pgsql-general@lists.postgresql.org; Mon, 23 Oct 2023 16:51:32 +0000 Received: from cloud.gatewaynet.com ([185.90.37.94]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1quy9K-001w3v-4U for pgsql-general@lists.postgresql.org; Mon, 23 Oct 2023 16:51:31 +0000 Message-ID: <1fe0ffaa-1794-4db5-aa2d-31e6e9f8b4bd@cloud.gatewaynet.com> Date: Mon, 23 Oct 2023 19:51:27 +0300 MIME-Version: 1.0 Subject: Re: PostgreSQL inheritance vs https://wiki.postgresql.org/wiki/Don%27t_Do_This Content-Language: en-US To: Alvaro Herrera Cc: pgsql-general@lists.postgresql.org References: <202310231401.y5y5daugt7yn@alvherre.pgsql> From: Achilleas Mantzios In-Reply-To: <202310231401.y5y5daugt7yn@alvherre.pgsql> 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 Στις 23/10/23 17:01, ο/η Alvaro Herrera έγραψε: > On 2023-Oct-23, Achilleas Mantzios - cloud wrote: > >> I believe this text is false on too many accounts. So, what's the consensus >> about Inheritance in PostgreSQL, I am going to give a talk on it in November >> and I wouldn't like to advertise/promote/teach something that the community >> has decided to abandon or drop. Actually I proposed several topics and they >> chose this one (Inheritance). > There are several things wrong with table inheritance; see [1] in our > docs, in addition to the things that the wiki page notes. I think it's > good advice to stay clear of it, and if you're giving a talk, do not > talk about inheritance except to mention its drawbacks. Regarding your > talk, I would strongly suggest to ask them to choose another topic from > your list. Yes, those limitations are known, and must be dealt. The wiki IMHO is aggressive and insulting plus the advice to use FK instead of inheritance is at least laughable. I don't think there should be such an official text on the official PostgreSQL site. Thanks! > [1] https://www.postgresql.org/docs/16/ddl-inherit.html#DDL-INHERIT-CAVEATS > -- Achilleas Mantzios IT DEV - HEAD IT DEPT Dynacom Tankers Mgmt