pg_exec not returning after 16 calls/ libpgtcl

Поиск
Список
Период
Сортировка
От g.hintermayer@inode.at (Gerhard Hintermayer)
Тема pg_exec not returning after 16 calls/ libpgtcl
Дата
Msg-id bd4db85f.0209190227.386c458d@posting.google.com
обсуждение исходный текст
Ответы Re: pg_exec not returning after 16 calls/ libpgtcl
Список pgsql-interfaces
Sorry if posted twice, got not confirmation about posting from google.

Obviously noone has ever tested the doubling of availiable result ids
up to
reaching the hard limit. After opening 16(=current REST_START value)
results via pg_exec, the next pg_exec tries to find an empty slot
forever :-( . In PgSetResultId file pgtclId.c in the for loop there
has to be done a break, if res_max ist reached. The piece of code
should look like       if (resid == connid->res_max)       {           resid = 0;           break;   /* the break as to
beadded */       }
 

now everything works (double available results after reaching
RES_START up to reaching RES_HARD_MAX)

PS: sorry, posting via Google, so no attached diff available

regards

Gerhard Hintermayer
http://www.inode.at/g.hintermayer


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] 7.3 gotchas for applications and client libraries
Следующее
От: Joerg Sommer
Дата:
Сообщение: PG classes for C++