| От | Tom Lane |
|---|---|
| Тема | Re: system table scan |
| Дата | |
| Msg-id | 2957.1164604913@sss.pgh.pa.us обсуждение |
| Ответ на | system table scan ("Ehab Galal" <ehabgalal123@hotmail.com>) |
| Список | pgsql-hackers |
"Ehab Galal" <ehabgalal123@hotmail.com> writes:
> If i understand correctly, i may use systable_beginscan() and
> systable_getnext() to scan a system table while specifying a key (e.g.,
> username='user1'). But i know nothing about specifying the order of the
> scan.
The systable_xxx functions allow implementation by either indexscan or
seqscan, therefore they guarantee *nothing* about retrieval order.
If your code does not need to be executed during bootstrap or crash
recovery, you could depend on an indexscan instead. See
toast_fetch_datum() for an example.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера