Perform doesn't work that way from my experience
Use the following
EXECUTE ''UPDATE ''||obj.relname||'' SET lastaccess = NULL'';
The % you are using is generally used in the RAISE NOTICE OR EXCEPTION
pieces
HTH
Darren Ferguson
On Wed, 19 Jun 2002, Richard Huxton wrote:
> On Wednesday 19 Jun 2002 2:25 pm, Tom Jenkins wrote:
> > hello all,
> > i hope somebody can shed some light on a problem i'm having with
> > pl/pgsql.
>
> > PERFORM ''update % set lastaccess = NULL;'', obj.relname ;
>
> Are you sure this shouldn't be EXECUTE (build the sql-string normally first)
>
> - Richard Huxton
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Darren Ferguson