Re: [ANNOUNCE] IMCS: In Memory Columnar Store for PostgreSQL

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: James Mansion <james(at)mansionfamily(dot)plus(dot)com>
Cc: Константин Книжник <knizhnik(at)garret(dot)ru>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, David Fetter <david(at)fetter(dot)org>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [ANNOUNCE] IMCS: In Memory Columnar Store for PostgreSQL
Date: 2014-01-06 03:14:49
Message-ID: CA+TgmobgBhuMQ6CP8mkWfe+ktSAtfLxPwzbCo6OW0DM=JB4QJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce pgsql-hackers

On Sun, Jan 5, 2014 at 1:44 PM, james <james(at)mansionfamily(dot)plus(dot)com> wrote:
> I'm intrigued - how are the handles shared between children that are peers
> in the current scheme? Some handle transfer must already be in place.

That's up to the application. After calling dsm_create(), you call
dsm_segment_handle() to get the 32-bit integer handle for that
segment. Then you have to get that to the other process(es) somehow.
If you're trying to share a handle with a background worker, you can
stuff it in bgw_main_arg. Otherwise, you'll probably need to store it
in the main shared memory segment, or a file, or whatever.

> Could you share the handles to an immortal worker if you want to reduce any
> potential impact on the postmaster?

You could, but this seems like this justification for spawning another
process, and how immortal is that worker really?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-announce by date

  From Date Subject
Next Message Amit Kapila 2014-01-06 04:20:39 Re: [ANNOUNCE] IMCS: In Memory Columnar Store for PostgreSQL
Previous Message Robert Haas 2014-01-06 03:11:33 Re: [ANNOUNCE] IMCS: In Memory Columnar Store for PostgreSQL

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabrízio de Royes Mello 2014-01-06 03:26:39 Re: [PATCH] Store Extension Options
Previous Message Robert Haas 2014-01-06 03:11:33 Re: [ANNOUNCE] IMCS: In Memory Columnar Store for PostgreSQL