Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > how to kill pos...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 15794 of 17437
Post > Topic >>

how to kill postgreSQL session

by cafeelvis@[EMAIL PROTECTED] (sang hyun Lee) Jun 12, 2008 at 04:53 PM

--_80659564-74d3-4fdf-b2db-f446f8773b68_
Content-Type: text/plain; charset="ks_c_5601-1987"
Content-Transfer-Encoding: 8bit


Hi there,
 
I'm a developer who is working on PostgreSQL API and i got stuck in
Terminating session.
I'm working on PostgreSQL 8.3. 
 
Please, help if anyone has ideas on how to kill PostgreSQL session.
 
i found this code in misc.c
 
#ifdef NOT_USED
 
/* Disabled in 8.0 due to reliability concerns; FIXME someday */
Datum
pg_terminate_backend(PG_FUNCTION_ARGS)
{
           PG_RETURN_INT32(pg_signal_backend(PG_GETARG_INT32(0),
SIGTERM));
}

#endif
 
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
--_80659564-74d3-4fdf-b2db-f446f8773b68_
Content-Type: text/html; charset="ks_c_5601-1987"
Content-Transfer-Encoding: 8bit

<html>
<head>
<style>
..hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi there,<BR>
&nbsp;<BR>
I'm a developer who is working on PostgreSQL API and&nbsp;i got stuck in
Terminating session.<BR>
I'm working on PostgreSQL 8.3. <BR>
&nbsp;<BR>
Please, help if anyone has ideas on how to kill PostgreSQL session.<BR>
&nbsp;<BR>
i found this code in misc.c<BR>
&nbsp;<BR>
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY: Tahoma">#ifdef NOT_USED<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></FONT></B></P>
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY:
Tahoma"><o:p>&nbsp;</o:p></SPAN></FONT></B></P>
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY: Tahoma">/* Disabled in 8.0 due to
reliability concerns; FIXME someday */<o:p></o:p></SPAN></FONT></B></P>
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY:
Tahoma">Datum<o:p></o:p></SPAN></FONT></B></P>
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY:
Tahoma">pg_terminate_backend(PG_FUNCTION_ARGS)<o:p></o:p></SPAN></FONT></B></P>
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY: Tahoma">{<o:p></o:p></SPAN></FONT></B></P>
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY:
Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PG_RETURN_INT32(pg_signal_backend(PG_GETARG_INT32(0),
SIGTERM));<o:p></o:p></SPAN></FONT></B></P>
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY: Tahoma">}<o:p></o:p></SPAN></FONT></B></P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP:
medium none; PADDING-LEFT: 0cm; PADDING-BOTTOM: 2pt; BORDER-LEFT: medium
none; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid">
<P class=MsoNormal style="LAYOUT-GRID-MODE: char"><B><FONT face=Tahoma
color=navy size=1><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE:
9pt; COLOR: navy; FONT-FAMILY:
Tahoma">#endif<o:p></o:p></SPAN></FONT></B></P></DIV>
&nbsp;<BR><br /><hr />Discover the new Windows Vista <a
href='http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE'
target='_new'>Learn more!</a></body>
</html>
--_80659564-74d3-4fdf-b2db-f446f8773b68_--
 




 2 Posts in Topic:
how to kill postgreSQL session
cafeelvis@[EMAIL PROTECTE  2008-06-12 16:53:22 
Re: how to kill postgreSQL session
bruce@[EMAIL PROTECTED]   2008-06-12 14:30:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:44:39 CST 2008.