Re: A generated column cannot be part of a partition key

From: Diego Stammerjohann <diegostammer(at)gmail(dot)com>
To: Francisco Olarte <folarte(at)peoplecall(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: A generated column cannot be part of a partition key
Date: 2024-07-23 14:01:53
Message-ID: CAJ7eQr027fE8qJTpudjf-b2wNLoU_Ax4FwpcWF277uPFfJ2zCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)peoplecall(dot)com> wrote:

> Diego:
>
> On Tue, 23 Jul 2024 at 14:01, Diego Stammerjohann
> <diegostammer(at)gmail(dot)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.
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2024-07-23 14:18:48 Re: A generated column cannot be part of a partition key
Previous Message Francisco Olarte 2024-07-23 13:57:45 Re: A generated column cannot be part of a partition key