From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Greg Smith <greg(at)2ndQuadrant(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Timing events WIP v1 |
Date: | 2012-11-15 20:15:24 |
Message-ID: | 20121115201524.GA14789@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Greg Smith wrote:
> -The event queue into a simple array accessed in circular fashion.
> After realizing that output needed to navigate in the opposite order
> of element addition, I ended up just putting all the queue
> navigation code directly into the add/output routines. I'd be happy
> to use a more formal Postgres type here instead--I looked at
> SHM_QUEUE for example--but I haven't found something yet that makes
> this any simpler.
SHM_QUEUE is on the death row. Try a dlist from src/backend/lib/ilist.c
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Janes | 2012-11-15 20:41:24 | Re: pg_ctl reload -o "...." |
Previous Message | Kohei KaiGai | 2012-11-15 20:10:58 | [v9.3] OAT_POST_ALTER object access hooks |