/usr/share/globus/setup/globus-rls-lrc-postgres.sql is in globus-rls-server 4.9-13.
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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | 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_pfn (
id serial primary key,
name varchar(500) not null,
ref int default 0 not null
);
create unique index t_pfn_name on t_pfn(name);
create table t_map (
lfn_id int not null references t_lfn(id),
pfn_id int not null references t_pfn(id)
);
alter table t_map add constraint pk_map primary key(lfn_id, pfn_id);
create index t_map_pfn_id on t_map(pfn_id);
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);
create table t_attribute (
id serial primary key,
name varchar(500) not null,
objtype int not null,
type int not null
);
create unique index t_attribute_name_objtype on t_attribute(name, objtype);
create table t_date_attr (
obj_id int not null,
attr_id int not null references t_attribute(id),
value timestamp not null
);
create index t_date_attr_attr_id on t_date_attr(attr_id);
create index t_date_attr_value on t_date_attr(value);
create unique index t_date_obj_id_attr_id on t_date_attr(obj_id, attr_id);
create table t_flt_attr (
obj_id int not null,
attr_id int not null references t_attribute(id),
value float not null
);
create index t_flt_attr_attr_id on t_flt_attr(attr_id);
create index t_flt_attr_value on t_flt_attr(value);
create unique index t_flt_obj_id_attr_id on t_flt_attr(obj_id, attr_id);
create table t_int_attr (
obj_id int not null,
attr_id int not null references t_attribute(id),
value int not null
);
create index t_int_attr_attr_id on t_int_attr(attr_id);
create index t_int_attr_value on t_int_attr(value);
create unique index t_int_obj_id_attr_id on t_int_attr(obj_id, attr_id);
create table t_str_attr (
obj_id int not null,
attr_id int not null references t_attribute(id),
value varchar(500) not null
);
create index t_str_attr_attr_id on t_str_attr(attr_id);
create index t_str_attr_value on t_str_attr(value);
create unique index t_str_obj_id_attr_id on t_str_attr(obj_id, attr_id);
|