Re: Odd error message

From: Richard Huxton <dev(at)archonet(dot)com>
To: nolan(at)celery(dot)tssi(dot)com, pgsql-general(at)postgresql(dot)org (pgsql general list)
Subject: Re: Odd error message
Date: 2003-06-16 09:45:41
Message-ID: 200306161045.41963.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sunday 15 Jun 2003 9:41 pm, nolan(at)celery(dot)tssi(dot)com wrote:
[snip]
> It didn't, so I dropped
> that index and created a different one, adding a third column to the index.
>
> I then got the following error message:
>
> WARNING: Error occurred while executing PL/pgSQL function uscf_status_on
> WARNING: line 8 at select into variables
> ERROR: Relation 3912941 does not exist
>
> Recreating the function got rid of the error message, though I didn't
> get the performance improvement I was looking for.

PL/pgsql functions are "compiled" on their first call and plans are fixed at
this time. So - if a plan relies on something you delete there are problems.
I tend to keep my functions in one or more text-files ready to be
dropped/recreated when I make schema changes during development.

I believe that the TCL/Perl procedural languages are interpreted each time
they are run so should not suffer this difficulty.

--
Richard Huxton

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nigel J. Andrews 2003-06-16 10:54:14 Re: full featured alter table?
Previous Message Joel Rees 2003-06-16 08:07:32 Re: SOLUTION: Insert a Euro symbol as UTF-8 from a latin1 charset.