Re: shouldn't postgres know the numer of rows in a (sorted)
В списке pgsql-general по дате отправления:
| От | Richard Huxton |
|---|---|
| Тема | Re: shouldn't postgres know the numer of rows in a (sorted) |
| Дата | |
| Msg-id | 437B2F2B.90402@archonet.com обсуждение исходный текст |
| Ответ на | shouldn't postgres know the numer of rows in a (sorted) result-set before returning the first row? (Thies C Arntzen <thies@thieso.net>) |
| Ответы |
Re: shouldn't postgres know the numer of rows in a (sorted) result-set before returning the first row?
|
| Список | pgsql-general |
Thies C Arntzen wrote: > i would be interested in getting this uncorrected count "after sort" > but "before first row" in query (a). so in a fresh DB with no > updates/deletes this would be the correct count, and i could avoid the > very expensive (b). You don't say what applicaton language you are using, but most offer a pg_num_rows() interface which tells you how many results are in the recordset you have fetched. Your best bet to learn more is to read whatever documentation comes with your client library. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера