Unix Technical Forum

sql-statement blocks maschine

This is a discussion on sql-statement blocks maschine within the pgsql Admins forums, part of the PostgreSQL category; --> Hello, we are using PostgreSQL 8.0.3 under SuSE Linux 9.2 and SCO OpenServer 6.0 and have some perfomance problems. ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:12 AM
MG
 
Posts: n/a
Default sql-statement blocks maschine

Hello,

we are using PostgreSQL 8.0.3 under SuSE Linux 9.2 and SCO OpenServer 6.0 and have some perfomance problems. We are working with telnet-clients, which controlls our application on the server. The application does the sql-statements

If we have sql-statements e.g. SELECT or UPDATE which takes some minutes to be executed, then this statement blocks the whole maschine. This has the affect, that the telnet-clients work very very slowly, e.g. it takes several seconds from one keystroke to the next one. So you can`t work with the application in a reasonable way.

These sql-statments are so variable, that we can`t create a index for each combination.

How can we solve that problem?

Greeting
Michaela
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 06:12 AM
Adam Radlowski
 
Posts: n/a
Default Re: sql-statement blocks maschine

Run the "top" program. You'll see, that Your server CPU time is strongly
take by postmaster. The best way is to have two machines - servers: for
database server and for terminals. Maybe good will be to have more than
one CPU in the one server and run database server on CPU not used by
others apps.
Greetins
Adam

MG wrote:

> Hello,
>
> we are using PostgreSQL 8.0.3 under SuSE Linux 9.2 and SCO OpenServer
> 6.0 and have some perfomance problems. We are working with
> telnet-clients, which controlls our application on the server. The
> application does the sql-statements
>
> If we have sql-statements e.g. SELECT or UPDATE which takes some
> minutes to be executed, then this statement blocks the whole maschine.
> This has the affect, that the telnet-clients work very very slowly,
> e.g. it takes several seconds from one keystroke to the next one. So
> you can`t work with the application in a reasonable way.
>
> These sql-statments are so variable, that we can`t create a index for
> each combination.
>
> How can we solve that problem?
>
> Greeting
> Michaela




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

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

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 12:54 AM.


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