Re: Inheritance docs error. - Mailing list pgsql-docs

From Peter Eisentraut
Subject Re: Inheritance docs error.
Date
Msg-id Pine.LNX.4.30.0012301543410.776-100000@peter.localdomain
Whole thread Raw
In response to Inheritance docs error.  (Paul Govereau <pgoverea@akamai.com>)
Responses Re: Inheritance docs error.
List pgsql-docs
Paul Govereau writes:

> I have noticed some errors in the 7.1 Documentation.
> Specifically, in the sections involving inheritance.
>
> In Chapter 8. it shows syntax of:
>  create table <name> UNDER <name> ( ... )
>
> In Reference Manual CREATE TABLE shows syntax of:
>  create table <name> ( ... ) under <name>
>
> In psql, \h create table shows syntax of:
>  create table <name> ( ... ) inherits (<name>)
>
> It seems that the last one is correct -- or at least works for me.

They are all correct:  UNDER is the new SQL99 syntax, INHERITS is the
traditional Postgres syntax.  The reason that psql \h shows the old syntax
is that the current snapshots are distributed with the old (7.0)
documentation, whereas you probably got the first two things off the web.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Rather incorrect text in admin guide
Next
From: Tom Lane
Date:
Subject: Re: Inheritance docs error.