Robert Haas <robertmhaas@gmail.com> writes:
> Err, sorry, I quoted the wrong part. I meant, how would you rlimit
> the server memory usage?
Put a ulimit command in the server start script? Depending on the
details of the start script you might need to put it in the postgres
user's .profile instead, but it's certainly doable.
regards, tom lane