citus/src/backend/distributed
Nils Dijk d77e386e92 force aliases in deparsing for queries with anonymous column references (#4011)
DESCRIPTION: Force aliases in deparsing for queries with anonymous column references

Fixes: #3985

The root cause has todo with discrepancies in the query tree we create. I think in the future we should spend some time on categorising all changes we made to ruleutils and see if we can change the data structure `query` we pass to the deparser to have an actual valid postgres query for the deparser to render.

For now the fix is to keep track, besides changing the names of the entries in the target list, also if we have a reference to an anonymous columns. If there are anonymous columns we set the `printaliases` flag to true which forces the deparser to add the aliases.
(cherry picked from commit 449d1f0e91)
2020-07-21 11:01:49 +03:00
..
commands Fix Subtransaction memory leak 2020-07-21 11:01:49 +03:00
connection Remove master from file hierarchy 2020-06-16 17:49:09 +02:00
deparser force aliases in deparsing for queries with anonymous column references (#4011) 2020-07-21 11:01:49 +03:00
executor Rename master evaluation to coordinator evaluation 2020-07-21 11:01:49 +03:00
metadata Improve performance of metadata cache (#3924) 2020-06-30 12:10:10 +02:00
operations Remove master from file hierarchy 2020-06-16 17:49:09 +02:00
planner Rename master evaluation to coordinator evaluation 2020-07-21 11:01:49 +03:00
progress Replace foreach with foreach_ptr/foreach_oid (#3544) 2020-02-27 16:54:49 +01:00
relay Replace foreach with foreach_ptr/foreach_oid (#3544) 2020-02-27 16:54:49 +01:00
sql Introduce new make targets for downgrade scripts 2020-07-17 12:44:16 +03:00
test Fix Subtransaction memory leak 2020-07-21 11:01:49 +03:00
transaction Fix Subtransaction memory leak 2020-07-21 11:01:49 +03:00
utils Rename master evaluation to coordinator evaluation 2020-07-21 11:01:49 +03:00
worker Make static analysis happier (#4008) 2020-07-21 11:01:49 +03:00
.gitignore Change SQL migration build process for easier reviews (#2951) 2019-09-13 18:44:27 +02:00
Makefile Introduce new make targets for downgrade scripts 2020-07-17 12:44:16 +03:00
citus.control Bump Citus to 9.4devel (#3788) 2020-04-22 12:50:00 +03:00
safeclib Compile safestringlib using regular configure 2020-03-19 11:52:20 +01:00
shared_library_init.c Fix wrong cancellation message about distributed deadlocks (#3956) 2020-06-30 14:57:46 +02:00