Add support for MFV
Note: Just a save point. This version doesn't work in GPDB because the bug with PLPYTHON which
raises sub-transaction errors.
Add a workaround for GPDB to avoid sub-transaction bug in PLPYTHON