Re: [Patch] RBTree iteration interface improvement
| От | Amit Kapila |
|---|---|
| Тема | Re: [Patch] RBTree iteration interface improvement |
| Дата | |
| Msg-id | CAA4eK1LmFW=S+WErZ+yKFHDDzjTrSYmmGi-qaxExsbW5v0R0cw@mail.gmail.com обсуждение исходный текст |
| Ответ на | [Patch] RBTree iteration interface improvement (Aleksander Alekseev <a.alekseev@postgrespro.ru>) |
| Ответы |
Re: [Patch] RBTree iteration interface improvement
|
| Список | pgsql-hackers |
On Wed, Jul 27, 2016 at 7:56 PM, Aleksander Alekseev <a.alekseev@postgrespro.ru> wrote: > Hello > > While working on some new feature for PostgreSQL (which is still in > development and is irrelevant in this context) I noticed that current > RBTree implementation interface is following: > > ``` > extern void rb_begin_iterate(RBTree *rb, RBOrderControl ctrl); > extern RBNode *rb_iterate(RBTree *rb); > ``` > > As you see it doesn't allow to do multiple iterations over a single > tree. I believe it's a major flaw for a general-purpose container. > Can you explain use case where you need it? -- With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: