Peter Eisentraut <peter_e@gmx.net> writes:
> ISTM that before long someone will want to use more than 2 GB for work_mem.
> Currently, you can't set more because it overflows the variable.
Yes you can, because the value is measured in KB.
Now, if you were to redefine it as being measured in bytes, you would
have a backlash, because people already are using values above 2GB.
> I'm not sure a wholesale switch of GUC integers to 64 bit is the
> solution.
I'd be fairly worried about whether that wouldn't mean we fail
completely on INT64_IS_BROKEN platforms ...
regards, tom lane