Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U2QUf-0002WR-5g for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Feb 2013 18:10:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U2QUe-0004V1-Jr for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Feb 2013 18:10:12 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1f16-00061t-CU for pgsql-bugs@postgresql.org; Sat, 02 Feb 2013 15:28:32 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1f15-0000AW-5y for pgsql-bugs@postgresql.org; Sat, 02 Feb 2013 15:28:31 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1f14-0001P4-3k for pgsql-bugs@postgresql.org; Sat, 02 Feb 2013 15:28:31 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1U1f13-00077V-Mr for pgsql-bugs@postgresql.org; Sat, 02 Feb 2013 15:28:29 +0000 Date: Sat, 02 Feb 2013 15:28:29 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7846: Documentation: Should FOUND be documented as an output of UPDATE statement? To: pgsql-bugs@postgresql.org From: mike@fontling.com X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7846 Logged by: Mike Sherrill Email address: mike@fontling.com PostgreSQL version: 9.1.6 Operating system: Ubuntu Linux 12.04 Description:=20=20=20=20=20=20=20=20 Documentation for the SQL UPDATE statement doesn't mention that it sets the FOUND variable. (Refer to sql-update.html, "Outputs".) That behavior *is* documented, but only in plpgsql-statements.html (Basic Statements, section 39.5.5). I understand the difference between a SQL statement and a PL/PGSQL statement. But if I were looking for the effects and side-effects of an UPDATE statement, I'd go to the docs for UPDATE, not for PL/PGSQL basic statements. I think that's what most people would do, especially if they didn't have prior knowledge of the FOUND variable. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs