using references:
CREATE TABLE Users (
id int primary key,
name text
);
CREATE TABLE Moderators (
role int,
userid int references Users(id)
);
using INHERITS:
CREATE TABLE Users (
id int primary key,
name text
);
CREATE TABLE Moderators (
role int
) INHERITS (Users);
Besides the differences in query syntax, is there any difference in performance, scalability of those two?