pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hicham AOUDA <aouda.h@me.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14232: Possible mistake in the documentation
Date: Thu, 07 Jul 2016 04:00:00 +0300
Message-ID: <E96AE51F-5776-42ED-9102-4D73EBD3F983@me.com> (raw)
In-Reply-To: <CAKFQuwZC5SkCobik2f9ANoRx5bM-3qdkn2fpVXVoyq2MUfGpvA@mail.gmail.com>
References: <20160706234654.1426.20399@wrigleys.postgresql.org>
	<CAKFQuwZC5SkCobik2f9ANoRx5bM-3qdkn2fpVXVoyq2MUfGpvA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

thanks David for the explanation
how would you use the function then in a select statement, i couldn’t get it to work?

On Jul 7, 2016, at 03:58, David G. Johnston <david.g.johnston@gmail.com> wrote:

On Wednesday, July 6, 2016, <aouda.h@me.com <mailto:aouda.h@me.com>> wrote:
The following bug has been logged on the website:

Bug reference:      14232
Logged by:          Hicham Aouda
Email address:      aouda.h@me.com <javascript:;>
PostgreSQL version: 9.5.3
Operating system:   All
Description:

On page 1151  43.3.4. Composite Types
of  the pdf documentation for 9.5.3
I suspect a mistake:

it should be :

CREATE TYPE  employee AS (
name text,
salary integer,
age integer );

and not

CREATE TABLE  employee (
name text,
salary integer,
age integer );



It's functionally correct.  Every table you create automatically has a type of the same name and structure.

David J. 

view thread (5+ messages)  latest in thread

Message-ID: <E96AE51F-5776-42ED-9102-4D73EBD3F983@me.com>
Permalink:  ../E96AE51F-5776-42ED-9102-4D73EBD3F983@me.com/
Also on:    postgresql.org/message-id/E96AE51F-5776-42ED-9102-4D73EBD3F983@me.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: aouda.h@me.com, david.g.johnston@gmail.com
  Subject: Re: BUG #14232: Possible mistake in the documentation
  In-Reply-To: <E96AE51F-5776-42ED-9102-4D73EBD3F983@me.com>
  References: <20160706234654.1426.20399@wrigleys.postgresql.org> <CAKFQuwZC5SkCobik2f9ANoRx5bM-3qdkn2fpVXVoyq2MUfGpvA@mail.gmail.com> <E96AE51F-5776-42ED-9102-4D73EBD3F983@me.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