dbTalk Databases Forums  

[BUGS] BUG #2248: Fix for terminal server

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2248: Fix for terminal server in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fix for terminal server
 
Posts: n/a

Default [BUGS] BUG #2248: Fix for terminal server - 02-09-2006 , 08:48 AM







The following bug has been logged online:

Bug reference: 2248
Logged by: Fix for terminal server
Email address: anthony.communier (AT) laposte (DOT) net
PostgreSQL version: 8.1.2
Operating system: Win 32
Description: Fix for terminal server
Details:

I am sorry, these is not a bug report but i don't know where to post the
following message :

In order to fix problem with shared memory on the Win32 Terminal Server all
kernel object must be prefixed with Global\

Kernel Object are used by the following functions :

CreateEvent
CreateSemaphore
OpenSemaphore
CreateFileMapping
OpenFileMapping

I am not sure for Named Pipe

Those functions are used in the source directory src\backend\port\win32

I can't test these fix because I have no terminal server at home, but it
works fine with win32 services i have developped at work. So the following
lines can help you to solve the problem quickly :

Fix for version 8.1.2 :


sema.c:l 142
sprintf(semname, "Global\\PG_SEMSET.%d.", semKey);

shmem.c:l 92
sprintf(szShareMem, "Global\\PostgreSQL.%d", memKey);

I think that's all.

These problem should be encountered with fast user switch on Win XP but i am
not sure. Fast user switch is implemented like Terminal Server as far as i
know.

Docs can be found there :

http://msdn.microsoft.com/library/de...us/termserv/te
rmserv/kernel_object_namespaces.asp


I hope it helps you.

Regards,

Anthony COMMUNIER

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote
  #2  
Old   
Magnus Hagander
 
Posts: n/a

Default Re: [BUGS] BUG #2248: Fix for terminal server - 02-09-2006 , 09:50 AM






Quote:
The following bug has been logged online:
=20
Bug reference: 2248
Logged by: Fix for terminal server
Email address: anthony.communier (AT) laposte (DOT) net
PostgreSQL version: 8.1.2
Operating system: Win 32
Description: Fix for terminal server
Details:=20
=20
I am sorry, these is not a bug report but i don't know where=20
to post the following message :
=20
In order to fix problem with shared memory on the Win32=20
Terminal Server all kernel object must be prefixed with Global\
=20
Kernel Object are used by the following functions :
=20
CreateEvent
CreateSemaphore
OpenSemaphore
CreateFileMapping
OpenFileMapping
=20
I am not sure for Named Pipe
=20
Those functions are used in the source directory=20
src\backend\port\win32
=20
I can't test these fix because I have no terminal server at=20
home, but it works fine with win32 services i have developped=20
at work. So the following lines can help you to solve the=20
problem quickly :=20
=20
Fix for version 8.1.2 :
=20
=20
sema.c:l 142
sprintf(semname, "Global\\PG_SEMSET.%d.", semKey);
=20
shmem.c:l 92
sprintf(szShareMem, "Global\\PostgreSQL.%d", memKey);
=20
I think that's all.
=20
These problem should be encountered with fast user switch on=20
Win XP but i am not sure. Fast user switch is implemented=20
like Terminal Server as far as i know.
=20
Docs can be found there :=20
=20
http://msdn.microsoft.com/library/de...3D/library/en-
us/termserv/te
rmserv/kernel_object_namespaces.asp
Have you actually tried this, or are you just guessing?

Because during the dev of 8.0, we definitly tried that. And it didn't
help then. But perhaps something else has changed..

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.