'Setup the inter-process signaling on this registry.'

def setup_signaling(self):

    if (not odoo.multi_process):
        return
    with self.cursor() as cr:
        cr.execute("SELECT    sequence_name    FROM    information_schema.sequences    WHERE    sequence_name='base_registry_signaling'")
        if (not cr.fetchall()):
            cr.execute('CREATE    SEQUENCE    base_registry_signaling    INCREMENT    BY    1    START    WITH    1')
            cr.execute("SELECT    nextval('base_registry_signaling')")
            cr.execute('CREATE    SEQUENCE    base_cache_signaling    INCREMENT    BY    1    START    WITH    1')
            cr.execute("SELECT    nextval('base_cache_signaling')")
        cr.execute('    SELECT    base_registry_signaling.last_value,\n                                                                                                                                        base_cache_signaling.last_value\n                                                                                                            FROM    base_registry_signaling,    base_cache_signaling')
        (self.registry_sequence, self.cache_sequence) = cr.fetchone()
        _logger.debug('Multiprocess    load    registry    signaling:    [Registry:    %s]    [Cache:    %s]', self.registry_sequence, self.cache_sequence)
