Hi All,
I've a problem with unclosed connections. Once a client aborts a connection
accidentelly (client crash or power failure eg.), it stucks in and postgres
won't restart or stop. Is there any way to close unused (dead) connections.
I'd guess that some kind of connection timeout option should do this. Aren't
I right?
Tank you in advance.
Best Regards,
-- Együd Csaba
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 2003. 09. 29.
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster 4 5949
On Wed, Oct 08, 2003 at 11:22:12AM +0200, Egy?d Csaba wrote: I've a problem with unclosed connections. Once a client aborts a connection accidentelly (client crash or power failure eg.), it stucks in and postgres won't restart or stop. Is there any way to
Oh? pg_ctl -m f stop or pg_ctl -m i stop doesn't work?
close unused (dead) connections. I'd guess that some kind of
Find the pid and kill -2 will work.
connection timeout option should do this. Aren't I right?
It will, once the TCP/IP timeout happens. That's about 2 hours on
many systems.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Afilias Canada Toronto, Ontario Canada
<an****@liberty rms.info> M2P 2A8
+1 416 646 3304 x110
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Hi Andrew, Oh? pg_ctl -m f stop or pg_ctl -m i stop doesn't work?
Aha, I'll try it.
Find the pid and kill -2 will work.
To tell the truth I do not like to kill a database backend. It can lead many
problems. I prefer indulgent methods instead, you know.
It'll be the ultimate solution.
It will, once the TCP/IP timeout happens. That's about 2 hours on many
systems.
I see, it sholud be waited for...
Thank you very much Anderw!
Best Regrds,
-- Együd Csaba
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 2003. 09. 29.
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
On Thu, 9 Oct 2003, [Windows-1252] Együd Csaba wrote: Hi Andrew, Oh? pg_ctl -m f stop or pg_ctl -m i stop doesn't work? Aha, I'll try it.
Find the pid and kill -2 will work. To tell the truth I do not like to kill a database backend. It can lead many problems. I prefer indulgent methods instead, you know. It'll be the ultimate solution.
Only for your applications. Postgresql survives this kind of thing quite
well, with no data corruption, trust me, I've tested that part thourougly
lately.
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org
Hi Scott, Only for your applications. Postgresql survives this kind of thing quite well, with no data corruption, trust me, I've tested that part thourougly lately.
OK, I trust you. To tell the truth I've never faced serious problems in
connection with killing postgres. But as far as I'm concerned I could never
exclude this possibility. If I can solve my problem in a regular way I
choose that way, but I won't hesitate killing postgres when the time
comes...
On the other hand my applications are strong enough to avoid serious
problems. The most important thing is the health of the backend. But as you
mentioned it is not a question anymore.
Thank you.
-- Csaba --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.522 / Virus Database: 320 - Release Date: 2003. 09. 29.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 2003. 09. 29.
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hitesh Bhatiya |
last post by:
Hi all,
I have written a small program to accept some socket connections, which are
then added to a vector (using push_back). But after a few calls to the
push_back function, it deleted the object that was added last.
Could someone please tell me why this happens ? Am I doing something wrong
here ?
|
by: compu_global_hyper_mega_net_2 |
last post by:
I'd like to do something like:
delete from a where id in (select * from b where pattern like
'%something%')
I may or may not have the syntax right. I know that this sort of
subquery isn't available until mysql 4.1. 4.1 beta is taking too long
to release and I need something now, so here's what I'm doing now:
replace a (id) select -refId id from b where pattern like
|
by: Marc van Boven |
last post by:
I'm stuck with the following problem:
My nusoap-client calls a server-function giveCombination(). The
function giveCombination should return something like
array(
=> array(
'a_id' => 6,
'b_id' => 9,
'c_id' => 3,
|
by: UJ |
last post by:
I have a program that will upgrade a service automatically. If the service
already exists, it will delete the service and then reinstall it through
code. To delete the service I'm using the DeleteService command which marks
the service as disabled but the service doesn't disappear until the program
shuts down. I've read on the web that it won't disappear until all
connections to the service manager have been closed. I close all my...
|
by: Iham Sheen |
last post by:
Hi,
When I click at the Update button to commit changes in a MxDataGrid, I get
the error message "Unclosed quotation mark ...." if there is a single quote
in any of the columns.
How can I work around this problem?
Thanks.
Iham
| |
by: Stan Brown |
last post by:
URL: http://oakroadsystems.com/about/donate.htm
does not validate. On every INPUT line I get 'Line 17 column 47:
document type does not allow element "INPUT" here; missing one of
"P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS"
start-tag.' or similar.
I'm sure that must mean I have some unclosed element or missing quote
mark, but I just can't find it. Can someone look at the page and tell
me the obvious mistake I'm...
|
by: Osamede Zhang |
last post by:
I just find i can't understand the code like this
int main()
{
int *p=new int;
//do something
delete p;
return 1;
}
I use new operator allocate some memory in the heap,now i don't need
it,but our process also need to be killed.The heap is in our process'
|
by: gert |
last post by:
Hi, can anybody tell me what i did wrong please ?
I get unclosed token in line 1 running ./make.sh
http://dfo.svn.sourceforge.net/viewvc/dfo/trunk/cgi/make.sh?revision=165&view=markup
http://dfo.svn.sourceforge.net/viewvc/dfo/trunk/cgi/xml.c?revision=165&view=markup
http://dfo.svn.sourceforge.net/viewvc/dfo/trunk/cgi/cgi.c?revision=164&view=markup
|
by: MLH |
last post by:
Am using A97. Have defined Machine Data Source type DSNs
in Access' File, Get External Data, Link Tables, Files of Type ODBC,
Machine Data Source tab. Have many definitions. Would like to
delete some. Would like to edit some.
How to delete? I don't think editing is possible.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |