Re: Best way to test/develop lots of nested functions?
Вложения
В списке pgsql-novice по дате отправления:
| От | Joshua Tolley |
|---|---|
| Тема | Re: Best way to test/develop lots of nested functions? |
| Дата | |
| Msg-id | 4c5c14cc.0de68e0a.0bb3.3782@mx.google.com обсуждение исходный текст |
| Ответ на | Best way to test/develop lots of nested functions? (Leon Starr <leon_starr@modelint.com>) |
| Ответы |
Re: Best way to test/develop lots of nested functions?
|
| Список | pgsql-novice |
On Thu, Aug 05, 2010 at 09:21:00PM -0700, Leon Starr wrote: > So I've got numerous plpgsql functions I have developed and have been > testing using psql. I was doing fine when I was testing the one by one, but > now I need to load multiple functions at a time. Doing \i > longFunctionName.sql for several functions is a bit tedious. > > Any advice about how best to proceed? Is there an easy way to quickly load > a batch of functions into psql? Is there a better way than using psql? All > ideas welcome. Thanks! If you've got a bunch of functions in files you can create another file to load them. For instance, given files function1.sql, function2.sql, etc., you can create another file (which I'll call load_stuff.sql) that looks like this: \i function1.sql \i function2.sql (and so on) ...and in psql, "\i load_stuff.sql". -- Joshua Tolley / eggyknap End Point Corporation http://www.endpoint.com
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера