def install_trigger_function(connection: connection, overwrite: bool=False) -> None:
prior_install = False<EOL>if not overwrite:<EOL><INDENT>prior_install = trigger_function_installed(connection)<EOL><DEDENT>if not prior_install:<EOL><INDENT>log('<STR_LIT>', logger_name=_LOGGER_NAME)<EOL>execute(connection, INSTALL_TRIGGER_FUNCTION_STATEMENT)<EOL><DEDENT>else:<EOL><INDENT>log('<STR_LIT>', logger_name=_LOGGER_NAME)<EOL><DEDENT>
Install the psycopg2-pgevents trigger function against the database.

    Parameters
    ----------
    connection: psycopg2.extensions.connection
        Active connection to a PostGreSQL database.
    overwrite: bool
        Whether or not to overwrite existing installation of psycopg2-pgevents
        trigger function, if existing installation is found.

    Returns
    -------
    None