1999fe227.
I added these assertions in an attempt to show that setting ret_old_alias/ret_new_alias in set_deparse_plan() fully covered all the parts of the plan where RETURNING Vars could be found. But it emerges that the returningOldAlias/returningNewAlias fields they are filled from can sometimes be NULL themselves, allowing the asserts to fail. We discussed various ways that we might adjust the rewriter to prevent that, but the upshot of the discussion was just to remove the asserts again. Reported-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Author: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com> Discussion: https://postgr.es/m/CAJTYsWWsORQbyViXmsvT4-NWkjuykkjjk2c+gQtq+vw2PJON-A@mail.gmail.com Backpatch-through: 18
PostgreSQL Database Management System
This directory contains the source code distribution of the PostgreSQL database management system.
PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings.
Copyright and license information can be found in the file COPYRIGHT.
General documentation about this version of PostgreSQL can be found at https://www.postgresql.org/docs/devel/. In particular, information about building PostgreSQL from the source code can be found at https://www.postgresql.org/docs/devel/installation.html.
The latest version of this software, and related software, may be obtained at https://www.postgresql.org/download/. For more information look at our web site located at https://www.postgresql.org/.