Fix longstanding bug with VIEW using BETWEEN: OffsetVarNodes would get

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 0e952cdb9029cf6f8a574f4d888cbb134e646d0e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-12-21T17:36:15Z
Releases: 7.1.1
Fix longstanding bug with VIEW using BETWEEN: OffsetVarNodes would get
applied to the duplicated subtree twice.  Probably someday we should
fix the parser not to generate multiple links to the same subtree,
but for now a quick copyObject() is the path of least resistance.

Files

PathChange+/−
src/backend/commands/view.c modified +29 −28