| От | Shujun Huang |
|---|---|
| Тема | Variable record fetching |
| Дата | |
| Msg-id | 412C969A.F3FAB02A@noaa.gov обсуждение исходный текст |
| Список | pgsql-general |
Hi, I am working on converting Informix database to Postgre. I have one question for fetching records using PostgreSQL. The record I am fetching is a variable size text string. Before fetching the record, a preallocated static buffer size will have to be declared beforehand in the declaration section. Since the record sizes vary a lot, instead of using the static buffer, is there a dynamic way to fetch these records? Informix (Oracle has the similar feature) has the locator variable and the server will allocate the buffer if you initiate the locator to accommodate the record. The application then checks the locator size (record.loc_bufsize) to dynamically allocate a buffer to fetch it out and free the locator buffer. Does Postgre have any way to pre-tell the size of returning record? Thanks. Shujun Huang
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера