Re: 8.1 and syntax checking at create time

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 8.1 and syntax checking at create time
Date: 2005-08-31 20:41:03
Message-ID: 431615DF.3050105@amsoftwaredesign.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom,
I successfully updated my database to use the validator function without
dropping it using:

CREATE FUNCTION "plpgsql_validator" (oid) RETURNS void AS
'$libdir/plpgsql' LANGUAGE C;
UPDATE pg_language SET lanvalidator = 'plpgsql_validator'::regproc
WHERE lanname = 'plpgsql';

The create checking is *much* better now :-)

Thanks to everyone for helping me track this down, turned out it had
nothing to do with 8.1 but I didn't know that.
Sorry about that.

Tony

>That would not create a dependency from the language to the validator,
>but in practice you probably don't care about that. The bigger problem
>for Tony is likely to be that plpgsql_validator() doesn't exist as a
>function in his database; he'll have to create it (see createlang -e
>for a reference) first.
>
> regards, tom lane
>
>
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-08-31 20:43:29 Re: On hardcoded type aliases and typmod for user types
Previous Message Michael Fuhr 2005-08-31 20:39:47 Re: 8.1 and syntax checking at create time