One should be able to define the type of an object based on another kind of field.
For example:
- The first two characters of a string primary key might identify the type of the object;
- An additional field (say
tableoid in the case of PostgreSQL inheritance) could identify the type of the object.