Possible typos in the #12.1.1 examples

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: axykon(at)gmail(dot)com
Subject: Possible typos in the #12.1.1 examples
Date: 2020-03-02 15:38:01
Message-ID: 158316348159.30450.16075357948244298217@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/textsearch-intro.html
Description:

SELECT title || ' ' || author || ' ' || abstract || ' ' || body AS
document
FROM messages
WHERE mid = 12;

Seems like here the example missed 'm' as an alias and a dot in the `where`
clause:
... messages m
... m.id = 12;

SELECT m.title || ' ' || m.author || ' ' || m.abstract || ' ' || d.body AS
document
FROM messages m, docs d
WHERE mid = did AND mid = 12;

Possibly, the example missed dots:
... m.id = d.id AND m.id = 12;

Thanks!

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message stan 2020-03-02 18:59:04 Detecting which columns a query will modify in a function called by a trigger
Previous Message PG Doc comments form 2020-02-28 16:26:57 ALTER TABLE syntax incomplete