Re: A generated column cannot be part of a partition key - Mailing list pgsql-bugs

From Diego Stammerjohann
Subject Re: A generated column cannot be part of a partition key
Date
Msg-id CAJ7eQr027fE8qJTpudjf-b2wNLoU_Ax4FwpcWF277uPFfJ2zCw@mail.gmail.com
Whole thread Raw
In response to Re: A generated column cannot be part of a partition key  (Francisco Olarte <folarte@peoplecall.com>)
Responses Re: A generated column cannot be part of a partition key
List pgsql-bugs

So, for me, it would be good to have in some place the information that an IDENTITY column is not a GENERATED column. That's what caused confusion to me.

Diego H. S.

On Tue, Jul 23, 2024, 10:58 Francisco Olarte <folarte@peoplecall.com> wrote:
Diego:

On Tue, 23 Jul 2024 at 14:01, Diego Stammerjohann
<diegostammer@gmail.com> wrote:
> OK, that sounds good to me.
Due to top posting I am unable to discern what part sounds good.

> So, the documentation should be update to something like this:
> "An expression based generated column cannot be part of a partition key."
> Sounds fair?

Sounds good, but if you analyze it there is no such thing as "An
expression based generated column" defined. There are generated
columns and identity columns. Unfortunately both use the keyword
GENERATED in their definition / creation, probably due to some
standard committee shenanigans.

Francisco Olarte.

pgsql-bugs by date:

Previous
From: Francisco Olarte
Date:
Subject: Re: A generated column cannot be part of a partition key
Next
From: "David G. Johnston"
Date:
Subject: Re: A generated column cannot be part of a partition key