Use the postgis pattern

This requires the newest version of postgres to install, but does not
require it to be the active version. Instead, it will install to the
currently selected postgres.