mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Teach map_partition_varattnos to handle whole-row expressions.
Otherwise, partitioned tables with RETURNING expressions or subject to a WITH CHECK OPTION do not work properly. Amit Langote, reviewed by Amit Khandekar and Etsuro Fujita. A few comment changes by me. Discussion: http://postgr.es/m/9a39df80-871e-6212-0684-f93c83be4097@lab.ntt.co.jp
This commit is contained in:
@@ -72,7 +72,7 @@ extern Node *replace_rte_variables_mutator(Node *node,
|
||||
extern Node *map_variable_attnos(Node *node,
|
||||
int target_varno, int sublevels_up,
|
||||
const AttrNumber *attno_map, int map_length,
|
||||
bool *found_whole_row);
|
||||
Oid to_rowtype, bool *found_whole_row);
|
||||
|
||||
extern Node *ReplaceVarsFromTargetList(Node *node,
|
||||
int target_varno, int sublevels_up,
|
||||
|
Reference in New Issue
Block a user