This file is indexed.

/usr/share/opensips/postgres/clusterer-create.sql is in opensips-postgres-module 2.2.2-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
INSERT INTO version (table_name, table_version) values ('clusterer','1');
CREATE TABLE clusterer (
    id SERIAL PRIMARY KEY NOT NULL,
    cluster_id INTEGER NOT NULL,
    machine_id INTEGER NOT NULL,
    url VARCHAR(64) NOT NULL,
    state INTEGER DEFAULT 1 NOT NULL,
    last_attempt BIGINT DEFAULT 0 NOT NULL,
    failed_attempts INTEGER DEFAULT 3 NOT NULL,
    no_tries INTEGER DEFAULT 0 NOT NULL,
    duration INTEGER DEFAULT 30 NOT NULL,
    description VARCHAR(64),
    CONSTRAINT clusterer_clusterer_idx UNIQUE (cluster_id, machine_id)
);

ALTER SEQUENCE clusterer_id_seq MAXVALUE 2147483647 CYCLE;