| От | Richard Huxton |
|---|---|
| Тема | Re: loading a funtion script from a file |
| Дата | |
| Msg-id | 47446195.20704@archonet.com обсуждение исходный текст |
| Ответ на | Re: loading a funtion script from a file ("Gauthier, Dave" <dave.gauthier@intel.com>) |
| Ответы |
Re: loading a funtion script from a file
|
| Список | pgsql-general |
Gauthier, Dave wrote:
> APparently, from "man psql", -c can do only one thing at a time. But you could do this with 2-3 commands (or 1 if
youwant to wrap the 2 up in a shell script or something). Here's an example...
[snip]
> psql --dbname mydb -c "\i create_try.sql;"
> psql --dbname mydb -c "select trythis('foo');"
> psql --dbname mydb -c "drop function trythis(varchar);"
Or just put everything in one file and use -f <filename>
--
Richard Huxton
Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера