oracle v$session equivalent in postgresql

This is a multi-part message in MIME format.

------=_NextPart_000_0011_01C4C311.5DA87D00
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit

I'm looking for the equivalent in postgresql to the v$session variables in
Oracle. In particular, I need to convert the following statement:



select s.program, s.machine into :New.app_name,:New.comp_name from v$session
s where s.audsid=userenv('SESSIONID');



Any help appreciated


------=_NextPart_000_0011_01C4C311.5DA87D00
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I’m looking for the equivalent in postgresql to =
the
v$session variables in Oracle. In particular, I need to convert the =
following
statement:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>select s.program, s.machine into
:New.app_name,:New.comp_name from v$session s where =
s.audsid=3Duserenv('SESSIONID');<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Any help =
appreciated<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0011_01C4C311.5DA87D00--
stuff [ Fr, 05 November 2004 16:27 ] [ ID #467683 ]
Datenbanken » comp.databases.postgresql.sql » oracle v$session equivalent in postgresql

Vorheriges Thema: Delayed result from another connection
Nächstes Thema: Help in stored procedure