Re: Surjective functional indexes
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-05-25T16:37:40Z
Lists: pgsql-hackers
Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes: > My proposal is to check value of function for functional indexes instead > of just comparing set of effected attributes. > Obviously, for some complex functions it may have negative effect on > update speed. > This is why I have added "surjective" option to index. This seems overcomplicated. We would have to compute the function value at some point anyway. Can't we refactor to do that earlier? regards, tom lane
Commits
-
Finish reverting "recheck_on_update" patch.
- 1c53c4dec398 12.0 landed