Re: Attention PL authors: want to be listed in template table?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Attention PL authors: want to be listed in template table?
Дата
Msg-id 18862.1126025932@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Attention PL authors: want to be listed in template table?  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Attention PL authors: want to be listed in template  (Andrew Dunstan <andrew@dunslane.net>)
Re: Attention PL authors: want to be listed in template table?  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: 4D Geometry
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: uuid type for postgres