Re: misleading error message in DefineIndex

2025-11-17 Thread jian he
On Mon, Nov 17, 2025 at 8:52 PM Daniel Gustafsson wrote: > > Some of the internals does seem bleed through. Do you want to work on a patch > for a suggestion on an improvement? Maybe it could be possible to improve the > wording by incorporating constraint_type in some way? > I have changed thi

Re: misleading error message in DefineIndex

2025-11-17 Thread Daniel Gustafsson
> On 17 Nov 2025, at 05:06, jian he wrote: > In the example above , the primary error message "unique > constraint..." seems confusing. Some of the internals does seem bleed through. Do you want to work on a patch for a suggestion on an improvement? Maybe it could be possible to improve the wo

misleading error message in DefineIndex

2025-11-16 Thread jian he
hi. while working on virtual generated column as partition key, I found below errmsg the constraint type is hardcoded. if (!found) { Form_pg_attribute att; att = TupleDescAttr(RelationGetDescr(rel), key->p