Akash Garg <akash(dot)garg(at)gmail(dot)com> writes:
> How do you recompile postgres to allow more than 1024 connections?
If you are using any remotely modern version of Postgres, there isn't
any specific compile-time limit on that. So I think the correct
answer is "upgrade".
regards, tom lane