| От | Tom Lane |
|---|---|
| Тема | Re: Reg:lo_open error..pls help me |
| Дата | |
| Msg-id | 11079.1141228992@sss.pgh.pa.us обсуждение |
| Ответ на | Reg:lo_open error..pls help me ("sandhya" <sandhyar@amiindia.co.in>) |
| Ответы |
Re: Reg:lo_open error..pls help me
|
| Список | pgsql-admin |
"sandhya" <sandhyar@amiindia.co.in> writes:
> But lo_open is returning -1(-ve value).
Are you sure that's where it's failing? The fragment you showed looks
fine as far as it goes. The most likely bet is you forgot to wrap it in
a transaction (BEGIN/COMMIT commands), but that would result in a
failure at the seek/write commands because the object wouldn't be open
anymore.
You might want to look at src/test/examples/testlo.c in the PG distribution.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера