BUG #15849: (Document) Generated Columns sample code has a strange expression - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #15849: (Document) Generated Columns sample code has a strange expression
Date
Msg-id 15849-37ad0c561a836107@postgresql.org
Whole thread Raw
Responses Re: BUG #15849: (Document) Generated Columns sample code has a strange expression
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15849
Logged by:          TAKATSUKA Haruka
Email address:      harukat@sraoss.co.jp
PostgreSQL version: 12beta1
Operating system:   (document)
Description:

The text in Generated Columns  subsection at 12beta1 and HEAD includes *1
"height_in numeric GENERATED ALWAYS AS (height_cm * 2.54) STORED".

It should be
"height_in numeric GENERATED ALWAYS AS (height_cm / 2.54) STORED".

*1 https://www.postgresql.org/docs/devel/ddl-generated-columns.html


pgsql-bugs by date:

Previous
From: Nagaraj Raj
Date:
Subject: Re: BUG #15848: cluster initialization failed
Next
From: Tom Lane
Date:
Subject: Re: BUG #15836: Casting 'of' to boolean type should throw an invalid input syntax