Not able to create postgres_fdw

I am using postgresql-9.5. Creating an extension postgres_fdw seems to be taking too long without throwing up any error.

create extension postgres_fdw; 

It keeps on running till I terminate the query and it is not getting created. Already have contrib module installed on the server.

Any possible reason?