Re: Multithread Query Planner - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Multithread Query Planner
Date
Msg-id 6870.1327422359@sss.pgh.pa.us
Whole thread Raw
In response to Re: Multithread Query Planner  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Multithread Query Planner  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I doubt it.  Almost nothing in the backend is thread-safe.  You can't
> acquire a heavyweight lock, a lightweight lock, or a spinlock. You
> can't do anything that might elog() or ereport().  None of those
> things are reentrant.

Not to mention palloc, another extremely fundamental and non-reentrant
subsystem.

Possibly we could work on making all that stuff re-entrant, but it would
be a huge amount of work for a distant and uncertain payoff.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: Measuring relation free space
Next
From: Robert Haas
Date:
Subject: Re: Multithread Query Planner