pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Lukas Eder <lukas.eder@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15356: Inconsistent documentation about CREATE TYPE
Date: Tue, 20 Nov 2018 09:53:16 +0100
Message-ID: <6e72744a-459d-c9c5-1ffc-3a805349b67d@2ndquadrant.com> (raw)
In-Reply-To: <CAB4ELO4U9j==U+knbtagTUO5O2w=NaE_cOmmk63DeOgL3R+HEQ@mail.gmail.com>
References: <153546101062.1489.8367867109281960574@wrigleys.postgresql.org>
	<3d48cb5f-1317-bec2-13ab-e8b83518b5b3@2ndquadrant.com>
	<CAB4ELO4U9j==U+knbtagTUO5O2w=NaE_cOmmk63DeOgL3R+HEQ@mail.gmail.com>

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




view thread (4+ messages)

Message-ID: <6e72744a-459d-c9c5-1ffc-3a805349b67d@2ndquadrant.com>
Permalink:  ../6e72744a-459d-c9c5-1ffc-3a805349b67d@2ndquadrant.com/
Also on:    postgresql.org/message-id/6e72744a-459d-c9c5-1ffc-3a805349b67d@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, lukas.eder@gmail.com
  Subject: Re: BUG #15356: Inconsistent documentation about CREATE TYPE
  In-Reply-To: <6e72744a-459d-c9c5-1ffc-3a805349b67d@2ndquadrant.com>
  References: <153546101062.1489.8367867109281960574@wrigleys.postgresql.org> <3d48cb5f-1317-bec2-13ab-e8b83518b5b3@2ndquadrant.com> <CAB4ELO4U9j==U+knbtagTUO5O2w=NaE_cOmmk63DeOgL3R+HEQ@mail.gmail.com> <6e72744a-459d-c9c5-1ffc-3a805349b67d@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox