pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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.
ˉ




view thread (5+ messages)  latest in thread

Message-ID: <014DFDA2-CF76-4DB1-B3C2-0550BAE1A705@utilika.org>
Permalink:  ../014DFDA2-CF76-4DB1-B3C2-0550BAE1A705@utilika.org/
Also on:    postgresql.org/message-id/014DFDA2-CF76-4DB1-B3C2-0550BAE1A705@utilika.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: pool@utilika.org, pgsql-bugs@postgresql.org, smc@utilika.org
  Subject: Re: Documentation bug: Chapter 35.4, paragraph 4
  In-Reply-To: <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