Andrew Chernow <ac(at)esilo(dot)com> writes:
> Division segfaults server as well - SELECT '3'::money / 2 - for the same reason
> multiplication did.
Yup. A quick scan doesn't show any other mistaken int32->int64
replacements in the file, but maybe someone wants to look closer?
Patch applied.
regards, tom lane