Skip site navigation (1) Skip section navigation (2)

Re: 8.1 and syntax checking at create time

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 8.1 and syntax checking at create time
Date: 2005-08-31 20:13:02
Message-ID: 43160F4E.2020209@amsoftwaredesign.com (view raw or flat)
Thread:
Lists: pgsql-hackers
When I run this I get this error in the database:
PostgreSQL Error Code: (1)
ERROR:  function "plpgsql_validator" does not exist

>In an already-loaded database, I think the following should work:
>
>UPDATE pg_language SET lanvalidator = 'plpgsql_validator'::regproc
>WHERE lanname = 'plpgsql';
>
>I'd recommend wrapping the update in a transaction and making sure
>only one record was updated before committing.
>
>Tom (or anybody else), are there any gotchas with updating pg_language
>like this?  It works for me in simple tests.
>
>  
>


In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2005-08-31 20:23:44
Subject: Re: 8.1 and syntax checking at create time
Previous:From: huaxin zhangDate: 2005-08-31 20:08:10
Subject: Re: 8.1 and syntax checking at create time

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group