Re: BUG #8257: Multi-Core Restore fails when containing index comments - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #8257: Multi-Core Restore fails when containing index comments
Date
Msg-id 20760.1372343354@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #8257: Multi-Core Restore fails when containing index comments  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: BUG #8257: Multi-Core Restore fails when containing index comments
List pgsql-bugs
Andres Freund <andres@2ndquadrant.com> writes:
> The problem is that pg_dump makes the comment depend on the index
> instead of the constraint:

Yeah, I figured that out yesterday, but hadn't gotten to writing a patch
yet.

> ... So what we need
> to do is to make the comment depend on the constraint instead.

Your proposed patch will only fix the problem for dumps created after
it ships.  In the past, we've tried to deal with this type of issue by
having pg_restore fix up the dependencies when reading a dump, so that
it would still work on existing dumps.

I'm afraid there may be no way to do that in this case --- it doesn't
look like there's enough info in the dump to tell where the dependency
link should have led.  But we should think about it a little before
taking the easy way out.

            regards, tom lane

pgsql-bugs by date:

Previous
From: varunkarkala@gmail.com
Date:
Subject: BUG #8259: Not able to search composite type in search object
Next
From: Andres Freund
Date:
Subject: Re: BUG #8257: Multi-Core Restore fails when containing index comments