Check for stack overflow when rewriting graph queries generate_queries_for_path_pattern_recurse() and generate_setop_from_pathqueries() are recursive functions. For a property graph with hundreds of tables, a graph pattern with a handful element patterns can cause stack overflow. Fix it by calling check_stack_depth() at the beginning of these functions.
Author: Satyanarayana Narlapuram <[email protected]> Reviewed-by: Ashutosh Bapat <[email protected]> Discussion: https://www.postgresql.org/message-id/cahg+qdfgk0xddh8f3eab+uvn7sbdonv8rvm6okp4hthat6a...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/2ff289d03939498a656a0c6cf2da08623f8357b4 Modified Files -------------- src/backend/rewrite/rewriteGraphTable.c | 7 +++++++ 1 file changed, 7 insertions(+)
