Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C77B11337B61 for ; Tue, 23 Nov 2010 14:30:08 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 82623-05 for ; Tue, 23 Nov 2010 18:30:01 +0000 (UTC) X-Greylist: delayed 00:21:51.059278 by SQLgrey-1.7.6 Received: from mail.utilika.org (utilika.org [75.101.48.112]) by mail.postgresql.org (Postfix) with ESMTP id 3CBC61337B4E for ; Tue, 23 Nov 2010 14:30:00 -0400 (AST) Received: from ego.utilika.org (ego.utilika.org [192.168.1.5]) by mail.utilika.org (8.13.8/8.13.8) with ESMTP id oANI87e3012445; Tue, 23 Nov 2010 10:08:07 -0800 From: Jonathan Pool Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Documentation bug: Chapter 35.4, paragraph 4 Date: Tue, 23 Nov 2010 10:08:07 -0800 Message-Id: <014DFDA2-CF76-4DB1-B3C2-0550BAE1A705@utilika.org> Cc: Susan Colowick To: pgsql-bugs@postgresql.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/148 X-Sequence-Number: 28728 Chapter 35.4, paragraph 4, of the PostgreSQL 9.0.1 Documentation says: Any collection of commands in the SQL language can be packaged together = and defined as a function. Besides SELECT queries, the commands can = include data modification queries (INSERT, UPDATE, and DELETE), as well = as other SQL commands. (The only exception is that you cannot put BEGIN, = COMMIT, ROLLBACK, or SAVEPOINT commands into a SQL function.) This appears to be incorrect, in that attempting to include a VACUUM = command in a query-language function elicits the following error = message: ERROR: VACUUM cannot be executed from a function or multi-command = string Thus, presumably "VACUUM" should be added to the list of exceptions. =CB=89