def install_trigger(connection: connection, table: str, schema: str='<STR_LIT>', overwrite: bool=False) -> None:
prior_install = False<EOL>if not overwrite:<EOL><INDENT>prior_install = trigger_installed(connection, table, schema)<EOL><DEDENT>if not prior_install:<EOL><INDENT>log('<STR_LIT>'.format(schema, table), logger_name=_LOGGER_NAME)<EOL>statement = INSTALL_TRIGGER_STATEMENT.format(<EOL>schema=schema,<EOL>table=table<EOL>)<EOL>execute(connection, statement)<EOL><DEDENT>else:<EOL><INDENT>log('<STR_LIT>'.format(schema, table), logger_name=_LOGGER_NAME)<EOL><DEDENT>
Install a psycopg2-pgevents trigger against a table.

    Parameters
    ----------
    connection: psycopg2.extensions.connection
        Active connection to a PostGreSQL database.
    table: str
        Table for which the trigger should be installed.
    schema: str
        Schema to which the table belongs.
    overwrite: bool
        Whether or not to overwrite existing installation of trigger for the
        given table, if existing installation is found.

    Returns
    -------
    None