Missing type in example

Lists: pgsql-docs
From: atiris(at)gmail(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: Missing type in example
Date: 2016-09-23 08:15:30
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.4/static/functions-geometry.html
Description:

Hi. You can not select '((1,-1),(-1,1))' # '((1,1),(-1,-1))' without any
type to see example for operator #. In both samples you need also types,
like:

box '((1,-1),(-1,1))' # box '((1,1),(-1,-1))'

# path '((1,0),(0,1),(-1,0))'


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: atiris(at)gmail(dot)com
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Missing type in example
Date: 2016-09-23 18:13:18
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-docs

atiris(at)gmail(dot)com writes:
> The following documentation comment has been logged on the website:
> Page: https://www.postgresql.org/docs/9.4/static/functions-geometry.html
> Description:

> Hi. You can not select '((1,-1),(-1,1))' # '((1,1),(-1,-1))' without any
> type to see example for operator #. In both samples you need also types,
> like:

> box '((1,-1),(-1,1))' # box '((1,1),(-1,-1))'

> # path '((1,0),(0,1),(-1,0))'

Hmm, you're right. It appears that these examples worked when written,
but that was a long time ago when we had fewer operators named "#".
Thanks for the report!

regards, tom lane