/usr/share/globus/setup/globus-rls-rli-postgres.sql is in globus-rls-server 4.9-11.
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 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | create table t_lfn (
id serial primary key,
name varchar(500) not null,
ref int default 0 not null
);
create unique index t_lfn_name on t_lfn(name);
create table t_lrc (
id serial primary key,
name varchar(500) not null,
ref int default 0 not null
);
create unique index t_lrc_name on t_lrc(name);
create table t_sender (
id serial primary key,
name varchar(500) not null,
ref int default 0 not null
);
create unique index t_sender_name on t_sender(name);
create table t_map (
lfn_id int not null references t_lfn(id),
lrc_id int not null references t_lrc(id),
sender_id int not null references t_sender(id),
updatetime timestamp not null
);
alter table t_map add constraint pk_map primary key(lfn_id, lrc_id, sender_id);
create index t_map_lrc_id on t_map(lrc_id);
create index t_map_sender_id on t_map(sender_id);
create index t_map_updatetime on t_map(updatetime);
create table t_rli (
id serial primary key,
flags int default 0 not null,
name varchar(500) not null
);
create unique index t_rli_name on t_rli(name);
create table t_rlipartition (
rli_id int not null references t_rli(id),
pattern varchar(500) not null
);
alter table t_rlipartition add constraint pk_rlipartition primary key(rli_id, pattern);
create index t_rlipartition_pattern on t_rlipartition(pattern);
|