Re: problem on truncate for v.7.3.2

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "jack" <datactrl(at)tpg(dot)com(dot)au>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: problem on truncate for v.7.3.2
Date: 2003-02-20 06:14:24
Message-ID: 200302192214.24999.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Jack,

> On version 7.3.2, 'truncate' can not be executed from pl/pgsql. But it
> isn't stated on change notes. Is it a bug?

No, it's a fix.

TRUNCATE, VACUUM, ANALYZE, and REINDEX all perform COMMIT statements as part
of their operation. If called within a function, this could cause part of
the function to be committed while the rest failed, or even cause a fatal
error.

As such, these statements have been deliberately disabled within PL/pgSQL and
SQL functions.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2003-02-20 06:45:15 Re: EXCEPT Queries
Previous Message jack 2003-02-20 05:45:50 problem on truncate for v.7.3.2