Reln openRelation(DB db, char *rname) {
Reln r = new(RelDescriptor);
r->relname = strdup(rname);
r->start = ...;
r->npages = ...;
return r;
}
void closeRelation(Reln r) {
free(r);
}
#define nPages(r) (r->npages)
#define makePageId(r,i) (r->first + i)
|