pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: lukas.eder@gmail.com
Subject: BUG #15356: Inconsistent documentation about CREATE TYPE
Date: Tue, 28 Aug 2018 12:56:50 +0000
Message-ID: <153546101062.1489.8367867109281960574@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15356
Logged by:          Lukas Eder
Email address:      lukas.eder@gmail.com
PostgreSQL version: 10.5
Operating system:   Windows
Description:        

Hello,

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]

[1]: https://www.postgresql.org/docs/current/static/sql-createtype.html
[2]: https://www.postgresql.org/docs/8.4/static/sql-createtype.html



view thread (4+ messages)  latest in thread

Message-ID: <153546101062.1489.8367867109281960574@wrigleys.postgresql.org>
Permalink:  ../153546101062.1489.8367867109281960574@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/153546101062.1489.8367867109281960574@wrigleys.postgresql.org

 · 

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: noreply@postgresql.org, lukas.eder@gmail.com
  Subject: Re: BUG #15356: Inconsistent documentation about CREATE TYPE
  In-Reply-To: <153546101062.1489.8367867109281960574@wrigleys.postgresql.org>
  References: <153546101062.1489.8367867109281960574@wrigleys.postgresql.org>

* 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