Re: Attention PL authors: want to be listed in template table? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Attention PL authors: want to be listed in template table?
Date
Msg-id 18862.1126025932@sss.pgh.pa.us
Whole thread Raw
In response to Re: Attention PL authors: want to be listed in template table?  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Attention PL authors: want to be listed in template
Re: Attention PL authors: want to be listed in template table?
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Is there any way to create the language and not use the template (an 
> override option of some kind)?

There is deliberately not a way to override (other than using a
different name for the PL).  One of the points of this facility is to
fix up broken PL definitions being imported from old dump files, so 
believing what the CREATE LANGUAGE command says is exactly what we
don't want.

This will definitely be more palatable with a system catalog that you
could alter, of course.  Still, I don't see that there's any big
problem.  For instance, if you think you might want a validator later,
you can set up a no-op validator procedure today, and then the template
doesn't need to change when you make the validator do something.
Similarly, you could future-proof yourself against adding a trusted (or
untrusted) variant by putting in some stubs now.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: 4D Geometry
Next
From: Josh Berkus
Date:
Subject: Re: uuid type for postgres