Unix Technical Forum

BUG #2442: Problemas accessing DB in a multithread pross

This is a discussion on BUG #2442: Problemas accessing DB in a multithread pross within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2442 Logged by: Carmen Email address: carmenlucia@globo.com PostgreSQL version: 8.0 ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:00 AM
Carmen
 
Posts: n/a
Default BUG #2442: Problemas accessing DB in a multithread pross


The following bug has been logged online:

Bug reference: 2442
Logged by: Carmen
Email address: carmenlucia@globo.com
PostgreSQL version: 8.0
Operating system: FreeBSD
Description: Problemas accessing DB in a multithread pross
Details:

I have a Windows system accesing a FreeBSD PostGres 8.0.
I have a multihread process in Windows using a PostGres 8.0 FreeBSD. Each
thread of this process has a TCP communicaction with a remote client and it
updates a common BD of the global process.
TEach time two threads access a SQL API at the axact sametiem, the
process(not just the thread) is aborted. I resolved this problem defining a
critical section for each API SQL acess, but it has been causing a great
delay in my realtime program.
This problema happens, even if my BD is a local Windows PostGres.
This Windows program was migrated from Linux. Linux uses fork for each
remote client, and I don“t have this kind of problem with fork.
So, why have I this problem with threads. Is this a limitation?
I must solve this problem to put it in production. The critical_section has
not been a godd soluction. Can you help me?

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:00 AM
Qingqing Zhou
 
Posts: n/a
Default Re: BUG #2442: Problemas accessing DB in a multithread pross


""Carmen"" <carmenlucia@globo.com> wrote
>
> I have a Windows system accesing a FreeBSD PostGres 8.0.
> I have a multihread process in Windows using a PostGres 8.0 FreeBSD. Each
> thread of this process has a TCP communicaction with a remote client and

it
> updates a common BD of the global process.
> TEach time two threads access a SQL API at the axact sametiem, the
> process(not just the thread) is aborted. I resolved this problem defining

a
> critical section for each API SQL acess, but it has been causing a great
> delay in my realtime program.
>


What SQL API exactly? I once rewrite Pgbench (the TPCB benchmark) as a
multi-threaded version in Windows, there is no obvious problem (the patch
can be found in pg-patches). Just to make sure that each thread use a
different connection.

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 09:42 PM.


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