Thread: [PATCH] In case module has wrong magic, report exact problem

[PATCH] In case module has wrong magic, report exact problem

From
Marko Kreen
Date:
In case module and server magic blocks do not match
report exact parameters that differ.

It is quite cumbersome problem to track down unless
user already knows the cause.

As we want to encourage module use, such situations
can happen more often.
Attachment

Re: [PATCH] In case module has wrong magic, report exact problem

From
Tom Lane
Date:
Marko Kreen <markokr@gmail.com> writes:
> In case module and server magic blocks do not match
> report exact parameters that differ.

Applied with revisions --- your patch produced a message that wasn't
localizable and didn't follow the style guidelines.  Also it assumed
that all the fields would be plain integer values, which isn't true
even today.
        regards, tom lane