Re: User function canceling VACUUMDB utility

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carlos Henrique Reimer <carlos(dot)reimer(at)opendb(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: User function canceling VACUUMDB utility
Date: 2010-09-10 14:38:53
Message-ID: 23925.1284129533@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carlos Henrique Reimer <carlos(dot)reimer(at)opendb(dot)com(dot)br> writes:
> Yes, you're right! I found out a functional index using this function and
> ANALYZE also cancels.

> Is there a way to code this function in a way VACUUM/ANALYZE does not
> cancel?

I think your problem is probably a search_path issue, ie vacuumdb is not
running with the "BRASIL" schema in its path so the column reference
fails to resolve. You should be able to add the schema name to the
%TYPE reference. Or, if you can't make that work, just don't use
%TYPE...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Carlos Mennens 2010-09-10 15:12:32 Post Install / Secure PostgreSQL
Previous Message Ketema 2010-09-10 13:40:06 Re: Good candidate query for window syntax?