pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14232: Possible mistake in the documentation
5+ messages / 3 participants
[nested] [flat]
* BUG #14232: Possible mistake in the documentation
@ 2016-07-06 23:46 aouda.h@me.com
2016-07-07 00:58 ` Re: BUG #14232: Possible mistake in the documentation David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: aouda.h@me.com @ 2016-07-06 23:46 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14232
Logged by: Hicham Aouda
Email address: aouda.h@me.com
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 );
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #14232: Possible mistake in the documentation
2016-07-06 23:46 BUG #14232: Possible mistake in the documentation aouda.h@me.com
@ 2016-07-07 00:58 ` David G. Johnston <david.g.johnston@gmail.com>
2016-07-07 01:00 ` Re: BUG #14232: Possible mistake in the documentation Hicham AOUDA <aouda.h@me.com>
0 siblings, 1 reply; 5+ messages in thread
From: David G. Johnston @ 2016-07-07 00:58 UTC (permalink / raw)
To: aouda.h@me.com <aouda.h@me.com>; +Cc: pgsql-bugs
On Wednesday, July 6, 2016, <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.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #14232: Possible mistake in the documentation
2016-07-06 23:46 BUG #14232: Possible mistake in the documentation aouda.h@me.com
2016-07-07 00:58 ` Re: BUG #14232: Possible mistake in the documentation David G. Johnston <david.g.johnston@gmail.com>
@ 2016-07-07 01:00 ` Hicham AOUDA <aouda.h@me.com>
2016-07-07 01:15 ` Re: BUG #14232: Possible mistake in the documentation David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Hicham AOUDA @ 2016-07-07 01:00 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-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.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #14232: Possible mistake in the documentation
2016-07-06 23:46 BUG #14232: Possible mistake in the documentation aouda.h@me.com
2016-07-07 00:58 ` Re: BUG #14232: Possible mistake in the documentation David G. Johnston <david.g.johnston@gmail.com>
2016-07-07 01:00 ` Re: BUG #14232: Possible mistake in the documentation Hicham AOUDA <aouda.h@me.com>
@ 2016-07-07 01:15 ` David G. Johnston <david.g.johnston@gmail.com>
2016-07-07 01:15 ` Re: BUG #14232: Possible mistake in the documentation Hicham AOUDA <aouda.h@me.com>
0 siblings, 1 reply; 5+ messages in thread
From: David G. Johnston @ 2016-07-07 01:15 UTC (permalink / raw)
To: Hicham AOUDA <aouda.h@me.com>; +Cc: pgsql-bugs
On Wednesday, July 6, 2016, Hicham AOUDA <aouda.h@me.com> wrote:
> thanks David for the explanation
> how would you use the function then in a select statement, i couldn’t get
> it to work?
>
>
select *, overpaid(employee)
from employee;
Ther are other options but this is the traditional form.
David J.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #14232: Possible mistake in the documentation
2016-07-06 23:46 BUG #14232: Possible mistake in the documentation aouda.h@me.com
2016-07-07 00:58 ` Re: BUG #14232: Possible mistake in the documentation David G. Johnston <david.g.johnston@gmail.com>
2016-07-07 01:00 ` Re: BUG #14232: Possible mistake in the documentation Hicham AOUDA <aouda.h@me.com>
2016-07-07 01:15 ` Re: BUG #14232: Possible mistake in the documentation David G. Johnston <david.g.johnston@gmail.com>
@ 2016-07-07 01:15 ` Hicham AOUDA <aouda.h@me.com>
0 siblings, 0 replies; 5+ messages in thread
From: Hicham AOUDA @ 2016-07-07 01:15 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-bugs
many thanks
best regards
On Jul 7, 2016, at 04:15, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Wednesday, July 6, 2016, Hicham AOUDA <aouda.h@me.com <mailto:aouda.h@me.com>> wrote:
thanks David for the explanation
how would you use the function then in a select statement, i couldn’t get it to work?
select *, overpaid(employee)
from employee;
Ther are other options but this is the traditional form.
David J.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2016-07-07 01:15 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-07-06 23:46 BUG #14232: Possible mistake in the documentation aouda.h@me.com
2016-07-07 00:58 ` David G. Johnston <david.g.johnston@gmail.com>
2016-07-07 01:00 ` Hicham AOUDA <aouda.h@me.com>
2016-07-07 01:15 ` David G. Johnston <david.g.johnston@gmail.com>
2016-07-07 01:15 ` Hicham AOUDA <aouda.h@me.com>
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