how to disable autovaccum

Started by ahmed souaabout 17 years ago3 messagesgeneral
Jump to latest
#1ahmed soua
ahmed.soua@gmail.com

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.

#2A. Kretschmer
andreas.kretschmer@schollglas.com
In reply to: ahmed soua (#1)
Re: how to disable autovaccum

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

#3Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: ahmed soua (#1)
Re: how to disable autovaccum

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