Add missing 'consttypmod' field to outfast/readfast functions.
This field was added to Const struct and the text out/read functions in PostgreSQL 8.3 (upstream commit 0f4ff460). In the merge, we missed that it also needs to be handled in the "fast" out/read functions. I wasn't able to come up with a test case that would misbehave because of this. When a Const is dispatched from the master to segments, the typmod has already been "applied" to the value, e.g. a numeric has been rounded to the desired precision. So it doesn't matter that the typmod is not available in the segments. However, gpcheckcat complained about the mismatch, in index expressions stored between the master and segments, as well as in atttypmod stored for a view. And if we leave the typmod uninitialized, it's left to 0, rather than -1 which would mean "no typmod", so clearly this must be fixed, even if it doesn't have any user-visible effects at the moment. Reported by Jimmy.
Showing
想要评论请 注册 或 登录