Thread: how to disable autovaccum

how to disable autovaccum

From
ahmed soua
Date:
Hi everybody,

When I was working with Postgis , I had the following error:
failed: ERREUR:  VACUUM ne peut pas être exécuté à partir d'une fonction ou d'une chaîne
contenant plusieurs commandes
(   VACUUM cannot be executed from a function or from a chain containing several commands)
Error occurred, cleaning up.
I had disabled the parameter autocavcum in the file postgresql.conf but i still have the same error.
Can you help me please .

Thank you in advance
Soua Ahmed


--
Le bonheur est comme l'écho : il vous répond : mais il ne vient pas.

Re: how to disable autovaccum

From
"A. Kretschmer"
Date:
In response to ahmed soua :
> Hi everybody,
>
> When I was working with Postgis , I had the following error:
> failed: ERREUR:  VACUUM ne peut pas être exécuté à partir d'une fonction ou
> d'une chaîne
> contenant plusieurs commandes (   VACUUM cannot be executed from a function or
> from a chain containing several commands)
> Error occurred, cleaning up.
> I had disabled the parameter autocavcum in the file postgresql.conf but i still
> have the same error.
> Can you help me please .

You have to change your application, you can't run VACUUM inside a
transaction, a function or a multicommand string. That is not adjustable
in the config.


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

Re: how to disable autovaccum

From
Alvaro Herrera
Date:
ahmed soua escribió:
> Hi everybody,
>
> When I was working with Postgis , I had the following error:
> *failed: ERREUR:  VACUUM ne peut pas être exécuté à partir d'une fonction ou
> d'une chaîne
> contenant plusieurs commandes* (   VACUUM cannot be executed from a function
> or from a chain containing several commands)
> *Error occurred, cleaning up.
> *I had disabled the parameter autocavcum in the file* postgresql.conf* but i
> still have the same error.

The error did not come from autovacuum, so by disabling it you have not
fixed anything.  I suggest you turn it back on (unless you have a good
plan for vacuuming), and fix your application code instead.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support