Re: pgsql: Fix a couple of bugs in win32 shmem name generation: * Don't cut

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Fix a couple of bugs in win32 shmem name generation: * Don't cut
Date: 2008-07-04 19:12:01
Message-ID: 20080704191201.GG3893@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Magnus Hagander wrote:
> Tom Lane wrote:

> > According to what you just told me, the original coding is storing the
> > name in a "local namespace", which presumably means it won't conflict
> > anyway. Ergo, the existing coding is simply broken and there's nothing
> > we can do about it.
>
> Local namespace = Session local, not process local. So it would properly
> protect against two processes started in the same session. One session
> is, for example, an interactive login. But not if they were started by
> different users, since they'd be in different sessions.

But those different users would not have access to the same set of
files, so it wouldn't work anyway, right?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message User Bloodnok 2008-07-05 00:32:26 veil - veil: Initial release of changes for serialisation.
Previous Message Magnus Hagander 2008-07-04 18:56:01 Re: pgsql: Fix a couple of bugs in win32 shmem name generation: * Don't cut

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-07-04 19:20:08 Re: gsoc, text search selectivity and dllist enhancments
Previous Message Magnus Hagander 2008-07-04 18:56:01 Re: pgsql: Fix a couple of bugs in win32 shmem name generation: * Don't cut