Re: BUG #15356: Inconsistent documentation about CREATE TYPE

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Lukas Eder <lukas(dot)eder(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15356: Inconsistent documentation about CREATE TYPE
Date: 2018-11-20 08:53:16
Message-ID: 6e72744a-459d-c9c5-1ffc-3a805349b67d@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 13/11/2018 11:01, Lukas Eder wrote:
> > The CREATE TYPE documentation [1] specifies that enum types
> without any enum
> > labels are possible:
> >
> >     CREATE TYPE name AS ENUM ( [ 'label' [, ... ] ] )
> >
> > I can confirm this. The following statement works well:
> >
> >     CREATE TYPE e AS ENUM ();
> >
> > However, further down in the same documentation page, we can see:
> >
> >     "Enum types take a list of one or more quoted labels"
> >
> > It should read "zero or more quoted labels". I suspect this should be
> > adapted on all documentation pages from PostgreSQL 9.0 onwards. In
> 8.4, the
> > documentation was consistent [2]
>
> Right.  How about the attached patch?
>
> Makes sense, thanks 

committed

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Walter Willmertinger 2018-11-20 13:29:59 Error using odbc 11.00.0000
Previous Message Peter Eisentraut 2018-11-20 08:33:21 Re: Tables created WITH OIDS cannot be dumped/restored properly