Some queries have different syntax depending what version of postgres
        we are querying against.

        :returns: boolean

def is_pg_at_least_nine_two(self):
        """
        Some queries have different syntax depending what version of postgres
        we are querying against.

        :returns: boolean
        """

        if self._is_pg_at_least_nine_two is None:
            results = self.version()
            regex = re.compile("PostgreSQL (\d+\.\d+\.\d+) on")
            matches = regex.match(results[0].version)
            version = matches.groups()[0]

            if version > '9.2.0':
                self._is_pg_at_least_nine_two = True
            else:
                self._is_pg_at_least_nine_two = False

        return self._is_pg_at_least_nine_two