Re: BUG #16703: pg-dump fails to process recursive view definition - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16703: pg-dump fails to process recursive view definition
Date
Msg-id 1473888.1604590908@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #16703: pg-dump fails to process recursive view definition  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #16703: pg-dump fails to process recursive view definition
List pgsql-bugs
I wrote:
> It seems like the least painful solution might be to teach
> LockTableRecurse to detect recursion and just not recurse into
> a view it's already locked.  (BTW, I wonder if we shouldn't
> have a stack depth check there, too.)

Oh, I see it already has a recursion test ... it's just that throwing
an error is an unnecessarily harsh reaction.  We can just stop
recursing.  Will push a fix shortly.

(Also, we need no check_stack_depth call here, because
expression_tree_walker has one.)

            regards, tom lane



pgsql-bugs by date:

Previous
From: Wolfgang Walther
Date:
Subject: Re: Wrong result for comparing ROW(...) with IS NOT NULL
Next
From: Tom Lane
Date:
Subject: Re: BUG #16703: pg-dump fails to process recursive view definition