How to install tablefunc in postgres on Mac OS X?

postgresql-9.1

Solution

As suggested by a_horse_with_no_name the solution was simple.

I just had to execute:

CREATE EXTENSION tablefunc;

Problem

I used StackBuilder to install Postgres 9.2 on my Mac OS X machine. Now I need to use tablefunc and it seems that the function is not available. How do I install the contrib package on the Mac?

Original source