How to increase max_locks_per_transaction in MacOSX
Check the postgres.conf file. The parameter is defined there. On windows I found it in the data directory so I guess it will be the same for Mac OSX.