pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: axykon@gmail.com
Subject: Possible typos in the #12.1.1 examples
Date: Mon, 02 Mar 2020 15:38:01 +0000
Message-ID: <158316348159.30450.16075357948244298217@wrigleys.postgresql.org> (raw)

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!


view thread (3+ messages)  latest in thread

Message-ID: <158316348159.30450.16075357948244298217@wrigleys.postgresql.org>
Permalink:  ../158316348159.30450.16075357948244298217@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/158316348159.30450.16075357948244298217@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, axykon@gmail.com
  Subject: Re: Possible typos in the #12.1.1 examples
  In-Reply-To: <158316348159.30450.16075357948244298217@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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