From: Jonathan Pool <pool@utilika.org>
To: pgsql-bugs@postgresql.org
Cc: Susan Colowick <smc@utilika.org>
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> (raw)
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.
ˉ
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: pool@utilika.org, smc@utilika.org
Subject: Re: Documentation bug: Chapter 35.4, paragraph 4
In-Reply-To: <014DFDA2-CF76-4DB1-B3C2-0550BAE1A705@utilika.org>
References: <014DFDA2-CF76-4DB1-B3C2-0550BAE1A705@utilika.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