Re: Proposed new libpq API

Поиск
Список
Период
Сортировка
От Chris Bitmead
Тема Re: Proposed new libpq API
Дата
Msg-id 3962E446.2792DF31@nimrod.itg.telecom.com.au
обсуждение исходный текст
Ответ на Proposed new libpq API  (Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>)
Список pgsql-hackers
Follow up: Where it says...

PGresult *res = PQexec("select * from foo");
for (int i = 0; i < PQntuples(res); i++) { printf("%s\n", PQgetValue(res, i, 0);  PQflush(res) // NEW NEW
}

It should say...

PGresult *res = PQexec("select * from foo");
for (int i = 0; i < PQntuples(res); i++) { printf("%s\n", PQgetValue(res, i, 0);  PQflush(res, -1) // NEW NEW
}

The -1 argument signifying "flush everything". A specific number
signifying "flush everything below this threshold", where the threshold
is a tuple number.


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

Предыдущее
От: Chris Bitmead
Дата:
Сообщение: Proposed new libpq API
Следующее
От: Philip Warner
Дата:
Сообщение: Re: heap_create with OID?