expand virtual generated columns in get_relation_constraints() - Mailing list pgsql-hackers

From Peter Eisentraut
Subject expand virtual generated columns in get_relation_constraints()
Date
Msg-id 204804c0-798f-4c72-bd1f-36116024fda3@eisentraut.org
Whole thread Raw
List pgsql-hackers
We (I) missed expanding virtual generated columns in 
get_relation_constraints() in plancat.c.  That way, some opportunities 
for constraint exclusion will be missed if a constraint contains virtual 
generated columns, as can be shown in the attached test case (thanks to 
Richard Guo).  Simple fix attached.

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Remove traces of long in dynahash.c
Next
From: jian he
Date:
Subject: Re: Refactoring: Use soft error reporting for *_opt_error functions