I use a set of DDL scripts to automatically create the database for an app.
I need to create certain functions (from contrib), if they're not there already. If they are there, I don't want to DROP or REPLACE them, since they may be used in certain indexes and triggers.
Is there a way to only CREATE a function if it is not defined already? Is there a simple way to see if the function is defined?
(I don't want to just try creating it and letting it fail, since the DDL runs in a transaction).
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера