Re: Postgres Process in Kernel Mode? - Mailing list pgsql-hackers

From Chris Browne
Subject Re: Postgres Process in Kernel Mode?
Date
Msg-id 60slkhjwrr.fsf@dba2.int.libertyrms.com
Whole thread Raw
In response to Postgres Process in Kernel Mode?  ("moises" <moises@cedaivc.co.cu>)
List pgsql-hackers
moises@cedaivc.co.cu ("moises") writes:

> <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
>
> <head>
> <meta http-equiv=Content-Type content="text/html; charset=us-ascii">
> <meta name=Generator content="Microsoft Word 11 (filtered medium)">
> <style>
> <!--
>  /* Style Definitions */
>  p.MsoNormal, li.MsoNormal, div.MsoNormal
>     {margin:0cm;
>     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.EstiloCorreo17
>     {mso-style-type:personal-compose;
>     font-family:Arial;
>     color:windowtext;}
> @page Section1
>     {size:595.3pt 841.9pt;
>     margin:70.85pt 3.0cm 70.85pt 3.0cm;}
> div.Section1
>     {page:Section1;}
> -->
> </style>
>
> </head>
>
> <body lang=ES link=blue vlink=purple>
>
> <div class=Section1>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>Hello,<o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>I’m new in postgres SQL and I have some
> questions about the space where postgres process run.<o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>1-Can any body say me what libs use postgres for make
> system calls, for example LIBC? <o:p></o:p></span></font></p>

You can easily determine this yourself using ldd.  The answer will
vary depending on what options you use when compiling it.

> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>2-Can any body talk me if some postgres process can
> run in Linux kernel space? <o:p></o:p></span></font></p>

Yes, it doesn't.

> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>3- Some body knows if exist some projects that ports postgres
> process on Linux kernel space.<o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>I was read some source code of postgres, like, <o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>Postgres.C and others…<o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'> <o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>I was found C instructions like Printf, that’s prohibitive
> for Linux kernel applications, for example in kernel mode we use printk.<o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>I suppose that postgres are ported in a user space
> only. I’m Ok?<o:p></o:p></span></font></p>

That's correct.

> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>Thanks <o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>Moises<o:p></o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
>
> <p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
> 10.0pt;font-family:Arial'>- <o:p></o:p></span></font></p>
>
> </div>
>
> </body>
>
> </html>

You might want to consider using an email client that doesn't slobber: <p class=MsoNormal><font size=2 face=Arial><span
lang=EN-GBstyle='font-size: 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
 
around everywhere.

It's really irritating to have to read around that "deteriorata."
-- 
(format nil "~S@~S" "cbbrowne" "ntlug.org")
http://www3.sympatico.ca/cbbrowne/advocacy.html
A cool feature of OOP is that the simplest examples are 500 lines.  
-- Peter Sestoft


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Postgres Process in Kernel Mode?
Next
From: Robert Lor
Date:
Subject: Re: DTrace enabled build fails