Unix Technical Forum

Re: Can we simplify win32 threading code

This is a discussion on Re: Can we simplify win32 threading code within the pgsql Hackers forums, part of the PostgreSQL category; --> > > > I assume that this will not break the use of pg_ctl to deliver > > > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 05:05 AM
Magnus Hagander
 
Posts: n/a
Default Re: Can we simplify win32 threading code

> > > I assume that this will not break the use of pg_ctl to deliver
> > > pseudo-signals. That would be a show-stopper.

> >
> > It shouldn't, but there is one concern: it has to be created in the
> > global namespace. On older windows there is no different, but on
> > modern windows with terminal services in it it does. It

> might require
> > some permissions hackings - I don't know what the default

> permissinos
> > are on these things. But I *think* it should work fine.
> >

>
> Yes, the mutex/event stuff should be in the global namespace.
> What do you mean the permission hacks?


It may not be necessary at all. But what I meant is I don't know what
the default permissinos ar eon a shared mem/event object in the global
namespace. On the naemd pipe it's "creator/owner full" (so the postgres
account itself can issue kills), "administrators full" (so anybody who
is admin on the box can) and "system full" (so the local system can
issue them). If this is not the default on the other class of objects,
we'll need to set specific permissions.

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 05:05 AM
Qingqing Zhou
 
Posts: n/a
Default Re: Can we simplify win32 threading code


""Magnus Hagander"" <mha@sollentuna.net> writes
>
> It may not be necessary at all. But what I meant is I don't know what
> the default permissinos ar eon a shared mem/event object in the global
> namespace. On the naemd pipe it's "creator/owner full" (so the postgres
> account itself can issue kills), "administrators full" (so anybody who
> is admin on the box can) and "system full" (so the local system can
> issue them). If this is not the default on the other class of objects,
> we'll need to set specific permissions.
>


Ok, I will come up with a patch per discussion. One more thing, any tips to
test the PG win32 signal part?

Regards,
Qingqing


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com