jxie@leeonsoft.com (12) [Avatar] Offline
#1
On page 58, the following sql produces a syntax error at or near "gid":

CREATE TABLE roads_ma_me_nh(CONSTRAINT roads_ma_me_pk PRIMARY KEY gid) INHERITS (roads) WITH (OIDS=FALSE);


Jim
regina.leo (265) [Avatar] Offline
#2
Re: syntax error at or near "gid"
Jim,

Thanks for the catch should be in our next batch of updates.

The below should have read

CREATE TABLE roads_ma_me_nh(
CONSTRAINT roads_ma_me_pk PRIMARY KEY (gid)
)
INHERITS (roads);

We also too ut the OIDS=FALSE since that's the default in versions of PostgreSQL after around 7.4.