Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 22nd, 2005, 08:49 AM
Együd Csaba
Guest
 
Posts: n/a
Default How to kick out automatically stuck in queries

Hi All,
I'm wonder if there is any possibility to kick out automatically stuck in
queries after say 10 minutes or so?
I mean some kind of queries which calls eg. buggy functions with dead loops
or something similar.
Time to time I face such kind of problems which are solved automatically
after some hours/days.

Is there any options in config files or other settings to shorten this time?

I'm interested in limiting "dead" connections too. I mean frozen client
programs which leave the connection open.

(Server. RH 7.1, PG7.3.2 ; Client: Win98/ME/XP/2k)

Thank you,
-- Csaba Együd


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




  #2  
Old November 22nd, 2005, 08:49 AM
Kris Jurka
Guest
 
Posts: n/a
Default Re: How to kick out automatically stuck in queries



On Mon, 2 Feb 2004, [iso-8859-2] Együd Csaba wrote:
[color=blue]
> Hi All,
> I'm wonder if there is any possibility to kick out automatically stuck in
> queries after say 10 minutes or so?
> I mean some kind of queries which calls eg. buggy functions with dead loops
> or something similar.
> Time to time I face such kind of problems which are solved automatically
> after some hours/days.
>
> Is there any options in config files or other settings to shorten this time?[/color]

See the statement_timeout config parameter.

http://www.postgresql.org/docs/7.3/s...me-config.html

Kris Jurka


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

  #3  
Old November 22nd, 2005, 08:49 AM
Együd Csaba
Guest
 
Posts: n/a
Default Re: How to kick out automatically stuck in queries

Ahh! Thanks Kris! That works!
-- Csaba
[color=blue]
> -----Original Message-----
> From: Kris Jurka [mailto:books@ejurka.com]
> Sent: 2004. február 2. 10:14
> To: Együd Csaba
> Cc: Pgsql-General@Postgresql.Org (E-mail)
> Subject: Re: [GENERAL] How to kick out automatically stuck in queries
>
>
>
>
> On Mon, 2 Feb 2004, [iso-8859-2] Együd Csaba wrote:
>[color=green]
> > Hi All,
> > I'm wonder if there is any possibility to kick out[/color]
> automatically stuck in[color=green]
> > queries after say 10 minutes or so?
> > I mean some kind of queries which calls eg. buggy functions[/color]
> with dead loops[color=green]
> > or something similar.
> > Time to time I face such kind of problems which are solved[/color]
> automatically[color=green]
> > after some hours/days.
> >
> > Is there any options in config files or other settings to[/color]
> shorten this time?
>
> See the statement_timeout config parameter.
>
> http://www.postgresql.org/docs/7.3/s...me-config.html
>
> Kris Jurka
>
> -- Incoming mail is certified Virus Free.
> Checked by AVG Anti-Virus (http://www.grisoft.com).
> Version: 7.0.211 / Virus Database: 261 - Release Date: 2004. 01. 30.
>[/color]


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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.