Juan Jose Natera Abreu <jnatera(at)net-uno(dot)net> writes:
> FOREIGN KEY Distribucion REFERENCES Distribucion(Id)
> I always get parsing errors like:
> parser: parse error at or near "distribucion"
There are supposed to be parentheses around the column list:
FOREIGN KEY (Distribucion) REFERENCES Distribucion(Id)
regards, tom lane