BUG #15849: (Document) Generated Columns sample code has a strange expression

Started by PG Bug reporting formalmost 7 years ago2 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: BUG #15849: (Document) Generated Columns sample code has a strange expression

PG Bug reporting form <noreply@postgresql.org> writes:

The text in Generated Columns subsection at 12beta1 and HEAD includes
"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".

Yeah, I think you're right. Pushed, thanks!

regards, tom lane