Re: BUG #15356: Inconsistent documentation about CREATE TYPE

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: lukas(dot)eder(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15356: Inconsistent documentation about CREATE TYPE
Date: 2018-11-13 09:45:36
Message-ID: 3d48cb5f-1317-bec2-13ab-e8b83518b5b3@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 28/08/2018 14:56, PG Bug reporting form 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?

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

Attachment Content-Type Size
0001-doc-Clarify-CREATE-TYPE-ENUM-documentation.patch text/plain 1.4 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Munro 2018-11-13 09:49:26 Re: BUG #15460: Error while creating index or constraint
Previous Message Pavel 2018-11-13 09:21:55 Re: Fail to create PK or index for large table in Windows