| From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
|---|---|
| To: | Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> |
| Cc: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: performance issue in remove_from_unowned_list() |
| Date: | 2019-03-13 13:48:26 |
| Message-ID: | CA+TgmobELht8YLsh3FOYaOAsM6DrSu5_vOoJru7ni4OmGCU6ng@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Mar 13, 2019 at 9:47 AM Tomas Vondra
<tomas(dot)vondra(at)2ndquadrant(dot)com> wrote:
> AFAICS we already maintain a hash table of the smgr relations, and we
> look them up in this table. We don't need to look them up in the list of
> unowned relations - the whole problem is that with the current
> single-linked list, we need to iterate the list anyway to update pointer
> in the preceding entry.
OK, I'm dumb. Sorry for the noise.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Corey Huinker | 2019-03-13 14:06:04 | GIN indexes on an = ANY(array) clause |
| Previous Message | Tomas Vondra | 2019-03-13 13:47:26 | Re: performance issue in remove_from_unowned_list() |