<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-761</id>
	<title>Nabble - PostgreSQL - admin</title>
	<updated>2009-12-23T09:31:56Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PostgreSQL---admin-f761.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PostgreSQL---admin-f761.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26905048</id>
	<title>Re: Database performance problems</title>
	<published>2009-12-23T09:31:56Z</published>
	<updated>2009-12-23T09:31:56Z</updated>
	<author>
		<name>Joshua D. Drake</name>
	</author>
	<content type="html">On Wed, 2009-12-23 at 14:45 +0000, Renato Oliveira wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have been using Postgres but I am not an expert on the subject.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would be very grateful if someone could point to the right direction
&lt;br&gt;&amp;gt; with regards this problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We have a web application written in JAVA, using jaboss as a servlet.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There are 100 connections open to the database server at any given
&lt;br&gt;&amp;gt; time, apparently using hibernate.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We are using Postgres 8.2.4 compiled
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The database size is 155GB
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We have 8GB of RAM
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 300GB Hard disk Raid1 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Everything is within a single Volume
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Today the load average was as high as 15
&lt;/div&gt;&lt;br&gt;Linux?
&lt;br&gt;Are you using elevator=deadline?
&lt;br&gt;How many spindles, what type of raid?
&lt;br&gt;Are you doing proper maintenance?
&lt;br&gt;&lt;br&gt;Joshua D. Drake
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PostgreSQL.org Major Contributor
&lt;br&gt;Command Prompt, Inc: &lt;a href=&quot;http://www.commandprompt.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.commandprompt.com/&lt;/a&gt;&amp;nbsp;- 503.667.4564
&lt;br&gt;Consulting, Training, Support, Custom Development, Engineering
&lt;br&gt;Respect is earned, not gained through arbitrary and repetitive use or Mr. or Sir.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26905048&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Database-performance-problems-tp26903260p26905048.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26903260</id>
	<title>Database performance problems</title>
	<published>2009-12-23T06:45:58Z</published>
	<updated>2009-12-23T06:45:58Z</updated>
	<author>
		<name>Renato Oliveira-2</name>
	</author>
	<content type="html">&lt;HTML xmlns=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot;&gt;&lt;head&gt;&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=&quot;Content-Type&quot;&gt;

&lt;meta content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;meta content=&quot;Microsoft Word 12 (filtered medium)&quot; name=Generator&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;&lt;BODY&gt;
&lt;DIV STYLE=&quot;FONT-SIZE: 9pt; FONT-FAMILY: Courier New&quot;&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Dear all,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I have been using Postgres but I am not an expert on the
subject.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I would be very grateful if someone could point to the right
direction with regards this problem.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;We have a web application written in JAVA, using jaboss as a
servlet.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;There are 100 connections open to the database server at any
given time, apparently using hibernate.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;We are using Postgres 8.2.4 compiled&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;The database size is 155GB&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;We have 8GB of RAM&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;300GB Hard disk Raid1 &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Everything is within a single Volume&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Today the load average was as high as 15&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Top result:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Tasks: 169 total,&amp;nbsp; 30 running, 139
sleeping,&amp;nbsp;&amp;nbsp; 0 stopped,&amp;nbsp;&amp;nbsp; 0 zombie&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Cpu(s): 69.6% us,&amp;nbsp; 5.9% sy,&amp;nbsp; 0.0% ni,&amp;nbsp; 0.0%
id, 24.3% wa,&amp;nbsp; 0.2% hi,&amp;nbsp; 0.0% si&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Mem:&amp;nbsp;&amp;nbsp; 8251404k total,&amp;nbsp; 8228428k used,&amp;nbsp;&amp;nbsp;&amp;nbsp;
22976k free,&amp;nbsp;&amp;nbsp;&amp;nbsp; 16296k buffers&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Swap:&amp;nbsp; 1052248k total,&amp;nbsp;&amp;nbsp;&amp;nbsp; 47176k
used,&amp;nbsp; 1005072k free,&amp;nbsp; 6664308k cached&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I am quite sure:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;1 &amp;#8211; we do not have enough memory&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;2 &amp;#8211; our disk and RAID array setup is not good enough&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;3 &amp;#8211; Postgres is not setup correctly and uses an older
version&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;4 &amp;#8211; It is using Slony and replication which does not
work.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I would like if anyone could help with the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;1 &amp;#8211; Ways of proving my thoughts&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;2 &amp;#8211; Gather data evidence to prove&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I don&amp;#8217;t have slow query check enabled, will do after
Christmas, but how can I use it to show things are not good?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;If anyone could help me it would be very much appreciated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;If you need more info or details, I am very happy to give
more.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Thank you very much&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Best regards&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Renato Oliveira&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;Renato Oliveira&lt;BR&gt;&lt;BR&gt;e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26903260&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;renato.oliveira@...&lt;/a&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;Tel: +44 (0)1763 260811&lt;BR&gt;Fax: +44 (0)1763 262410&lt;BR&gt;&lt;A HREF=&quot;http://www.grant.co.uk/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.grant.co.uk&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;Grant Instruments (Cambridge) Ltd &lt;BR&gt;&amp;nbsp;&lt;BR&gt;Company registered in England, registration number 658133&lt;BR&gt;&amp;nbsp;&lt;BR&gt;Registered office address:&lt;BR&gt;29 Station Road, &lt;BR&gt;Shepreth, &lt;BR&gt;CAMBS SG8 6GB &lt;BR&gt;UK&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;/DIV&gt;
&lt;DIV&gt;
&lt;P CLASS=&quot;MsoNormal&quot;&gt;&lt;EM&gt;&lt;B&gt;&lt;SPAN LANG=&quot;EN-US&quot; STYLE=&quot;FONT-SIZE: 18pt; COLOR: green; FONT-FAMILY: Webdings&quot;&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P CLASS=&quot;MsoNormal&quot;&gt;&lt;EM&gt;&lt;B&gt;&lt;SPAN LANG=&quot;EN-US&quot; STYLE=&quot;FONT-SIZE: 18pt; COLOR: green; FONT-FAMILY: Webdings&quot;&gt;P&lt;/SPAN&gt;&lt;/B&gt;&lt;/EM&gt;&lt;EM&gt;&lt;B&gt;&lt;SPAN LANG=&quot;EN-US&quot; STYLE=&quot;FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'&quot;&gt; &lt;/SPAN&gt;&lt;/B&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;I&gt;&lt;SPAN STYLE=&quot;FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: 'Arial','sans-serif'&quot;&gt;Please consider the environment before printing this email&lt;/SPAN&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;STRONG&gt;CONFIDENTIALITY&lt;/STRONG&gt;: The information in this e-mail and any attachments is confidential. It is intended only for the named recipients(s). If you are not the named recipient please notify the sender immediately and do not disclose the contents to another person or take copies. &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;STRONG&gt;VIRUSES:&lt;/STRONG&gt; The contents of this e-mail or attachment(s) may contain viruses which could damage your own computer system. Whilst Grant Instruments (Cambridge) Ltd has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should therefore carry out your own virus checks before opening the attachment(s).&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;&lt;STRONG&gt;OpenXML&lt;/STRONG&gt;: For information about the OpenXML file format in use within Grant Instruments please visit our &lt;A HREF=&quot;http://www.grant.co.uk/Support/openxml.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;website&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Database-performance-problems-tp26903260p26903260.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26884684</id>
	<title>Re: starting postgres with several Data directories</title>
	<published>2009-12-21T23:03:58Z</published>
	<updated>2009-12-21T23:03:58Z</updated>
	<author>
		<name>Julius Tuskenis</name>
	</author>
	<content type="html">Thank you, Scott &amp; Scott :)
&lt;br&gt;&lt;br&gt;I appreciate your help.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Julius Tuskenis
&lt;br&gt;Programavimo skyriaus vadovas
&lt;br&gt;UAB nSoft
&lt;br&gt;mob. +37068233050
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26884684&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/starting-postgres-with-several-Data-directories-tp26880176p26884684.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26880578</id>
	<title>Re: starting postgres with several Data directories</title>
	<published>2009-12-21T13:46:38Z</published>
	<updated>2009-12-21T13:46:38Z</updated>
	<author>
		<name>Scott Mead-3</name>
	</author>
	<content type="html">On Mon, Dec 21, 2009 at 4:35 PM, Scott Marlowe &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880578&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.marlowe@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;On Mon, Dec 21, 2009 at 2:26 PM, Scott Mead&lt;br&gt;
&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880578&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lists@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Mon, Dec 21, 2009 at 4:17 PM, Scott Marlowe &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880578&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.marlowe@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;Yeah, I create a different &amp;quot;admin&amp;quot; account for each one, that has the&lt;br&gt;
PGPORT and stuff already set, and setup pg_hba.conf to reject the&lt;br&gt;
admin accounts from other instances so I don&amp;#39;t do anything too stupid.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The other useful trick is to change set your psql prompt (via .psqlrc) so that it shows which port the db you&amp;#39;re logged into is listening on:&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;\set PROMPT1 &amp;#39;%/:%&amp;gt;=%# &amp;#39;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This will give you a prompt of:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;postgres:5432=#&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Take a look at &lt;a href=&quot;http://www.postgresql.org/docs/8.3/static/app-psql.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/8.3/static/app-psql.html&lt;/a&gt; for more prompt options.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;--Scott&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/starting-postgres-with-several-Data-directories-tp26880176p26880578.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26880486</id>
	<title>Re: starting postgres with several Data directories</title>
	<published>2009-12-21T13:35:15Z</published>
	<updated>2009-12-21T13:35:15Z</updated>
	<author>
		<name>Scott Marlowe-2</name>
	</author>
	<content type="html">On Mon, Dec 21, 2009 at 2:26 PM, Scott Mead
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880486&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lists@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Dec 21, 2009 at 4:17 PM, Scott Marlowe &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880486&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.marlowe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yes, it's fine.  Make a different data dir, point the postgresql.conf
&lt;br&gt;&amp;gt;&amp;gt; gile to a different tcp port and off ya go.  I do it all the time to
&lt;br&gt;&amp;gt;&amp;gt; test slony setup at work.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Agreed, I've actually used it for a couple of different reasons, including
&lt;br&gt;&amp;gt; production in a couple of different architectures, no worries about it,
&lt;br&gt;&amp;gt; other than making sure you have enough memory on the box to support them
&lt;br&gt;&amp;gt; all, along with the remembering which instance you're logged into at a given
&lt;br&gt;&amp;gt; time :)
&lt;/div&gt;&lt;br&gt;Yeah, I create a different &amp;quot;admin&amp;quot; account for each one, that has the
&lt;br&gt;PGPORT and stuff already set, and setup pg_hba.conf to reject the
&lt;br&gt;admin accounts from other instances so I don't do anything too stupid.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880486&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/starting-postgres-with-several-Data-directories-tp26880176p26880486.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26880459</id>
	<title>Re: starting postgres with several Data directories</title>
	<published>2009-12-21T13:26:31Z</published>
	<updated>2009-12-21T13:26:31Z</updated>
	<author>
		<name>Scott Mead-3</name>
	</author>
	<content type="html">&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Dec 21, 2009 at 4:17 PM, Scott Marlowe &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880459&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.marlowe@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Yes, it&amp;#39;s fine.  Make a different data dir, point the postgresql.conf&lt;br&gt;
gile to a different tcp port and off ya go.  I do it all the time to&lt;br&gt;
test slony setup at work.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Agreed, I&amp;#39;ve actually used it for a couple of different reasons, including production in a couple of different architectures, no worries about it, other than making sure you have enough memory on the box to support them all, along with the remembering which instance you&amp;#39;re logged into at a given time :)&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;--Scott&lt;/div&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/starting-postgres-with-several-Data-directories-tp26880176p26880459.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26880248</id>
	<title>Re: starting postgres with several Data directories</title>
	<published>2009-12-21T13:17:43Z</published>
	<updated>2009-12-21T13:17:43Z</updated>
	<author>
		<name>Scott Marlowe-2</name>
	</author>
	<content type="html">On Mon, Dec 21, 2009 at 1:46 PM, Julius T &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880248&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;julius@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello, pgsql guru
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have windows version of postgres 8.4 for experiments.
&lt;br&gt;&amp;gt; At first - what I have done so far:
&lt;br&gt;&amp;gt; 1. Copied content of Data directory to Data2
&lt;br&gt;&amp;gt; 2. Changed the port to 5433 in Data2\postgresql.conf
&lt;br&gt;&amp;gt; 3. Started postgres from commant prompt like (F:/Program
&lt;br&gt;&amp;gt; Files/PostgreSQL/8.4/bin/pg_ctl.exe start -N &amp;quot;postgresql-8.42&amp;quot; -D
&lt;br&gt;&amp;gt; &amp;quot;F:/Program Files/PostgreSQL/8.4/data2&amp;quot; -w)
&lt;br&gt;&amp;gt; 4. Started service of postgres (witch uses Data directory).
&lt;br&gt;&amp;gt; 5. Test the connection with PgAdmin. Connection OK. Inserting into table of
&lt;br&gt;&amp;gt; one server instance doesn't effect second one. Everything seems to work OK.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I wanted to ask if it is OK to start several instances of postgres pointing
&lt;br&gt;&amp;gt; to different data directories? I guess thats what the data directories are
&lt;br&gt;&amp;gt; after all, but because I failed to find some assurance while google'ing I'm
&lt;br&gt;&amp;gt; asking the question. It would be a crying shame to ruin production DB
&lt;br&gt;&amp;gt; because of experimental stuff. :)
&lt;/div&gt;&lt;br&gt;Yes, it's fine. &amp;nbsp;Make a different data dir, point the postgresql.conf
&lt;br&gt;gile to a different tcp port and off ya go. &amp;nbsp;I do it all the time to
&lt;br&gt;test slony setup at work.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880248&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/starting-postgres-with-several-Data-directories-tp26880176p26880248.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26880176</id>
	<title>starting postgres with several Data directories</title>
	<published>2009-12-21T12:46:19Z</published>
	<updated>2009-12-21T12:46:19Z</updated>
	<author>
		<name>Julius Tuskenis</name>
	</author>
	<content type="html">Hello, pgsql guru 
&lt;br&gt;&lt;br&gt;I have windows version of postgres 8.4 for experiments.
&lt;br&gt;At first - what I have done so far:
&lt;br&gt;1. Copied content of Data directory to Data2
&lt;br&gt;2. Changed the port to 5433 in Data2\postgresql.conf
&lt;br&gt;3. Started postgres from commant prompt like (F:/Program
&lt;br&gt;Files/PostgreSQL/8.4/bin/pg_ctl.exe start -N &amp;quot;postgresql-8.42&amp;quot; -D
&lt;br&gt;&amp;quot;F:/Program Files/PostgreSQL/8.4/data2&amp;quot; -w)
&lt;br&gt;4. Started service of postgres (witch uses Data directory).
&lt;br&gt;5. Test the connection with PgAdmin. Connection OK. Inserting into table of
&lt;br&gt;one server instance doesn't effect second one. Everything seems to work OK.
&lt;br&gt;&lt;br&gt;I wanted to ask if it is OK to start several instances of postgres pointing
&lt;br&gt;to different data directories? I guess thats what the data directories are
&lt;br&gt;after all, but because I failed to find some assurance while google'ing I'm
&lt;br&gt;asking the question. It would be a crying shame to ruin production DB
&lt;br&gt;because of experimental stuff. :)
&lt;br&gt;&lt;br&gt;Thank you in advance.
&lt;br&gt;&lt;br&gt;Julius Tuskenis
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26880176&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/starting-postgres-with-several-Data-directories-tp26880176p26880176.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26877724</id>
	<title>Re: VACUUM FULL memory requirements</title>
	<published>2009-12-21T09:21:13Z</published>
	<updated>2009-12-21T09:21:13Z</updated>
	<author>
		<name>David Schnur</name>
	</author>
	<content type="html">I&amp;#39;ve been doing more testing on several different machines, but still haven&amp;#39;t found a solution to my problem where VACUUM FULL is running out of memory.  Besides the original case on RHEL4, I&amp;#39;ve been able to reproduce it on both Windows and OSX, with 3GB and 5GB RAM, respectively.  Interestingly, it always fails on a request size of 330, even across differently-sized databases running on machines with different amounts of memory.&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;As far as that new tool you&amp;#39;re describing, for my purposes it doesn&amp;#39;t make much difference whether it&amp;#39;s a stand-alone application or a command, though a command is a little more convenient.  The ability to free space concurrent with other database operations would be nice, but I feel like the introduction of serialization failures would negate that advantage, since I at least would end up running it non-concurrently to avoid dealing with them.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I actually find the current design of VACUUM FULL reasonable enough, if I could figure out what&amp;#39;s causing this memory issue and prevent it from happening.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;David&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VACUUM-FULL-memory-requirements-tp26779057p26877724.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26850031</id>
	<title>Re: Backslashes in bytea values</title>
	<published>2009-12-18T13:35:15Z</published>
	<updated>2009-12-18T13:35:15Z</updated>
	<author>
		<name>Lewis Kapell</name>
	</author>
	<content type="html">Now that I think of it, pg_escape_bytea operates on a handle to the 
&lt;br&gt;current database connection, and I believe it queries the value of 
&lt;br&gt;standard_conforming_strings so that it can determine how the data should 
&lt;br&gt;be escaped. &amp;nbsp;I think I verified this by testing some time ago, although 
&lt;br&gt;I hadn't thought of it until just now, and I would need to test again to 
&lt;br&gt;make sure.
&lt;br&gt;&lt;br&gt;Sorry I didn't think this through more carefully before I wrote.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Lewis
&lt;br&gt;&lt;br&gt;&lt;br&gt;Kevin Grittner wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Lewis Kapell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26850031&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lkapell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I forgot to mention that all of these insertions are being done
&lt;br&gt;&amp;gt;&amp;gt; via PHP scripts, and we are using the pg_escape_bytea function
&lt;br&gt;&amp;gt;&amp;gt; (part of the PHP Postgres extension) to escape the data being
&lt;br&gt;&amp;gt;&amp;gt; inserted into bytea columns. &amp;nbsp;Rather important item, that.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Does this address all the concerns which you raised?
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I'm not familiar with that extension or its functions, but it sounds
&lt;br&gt;&amp;gt; like you're probably in better shape than I thought when I read your
&lt;br&gt;&amp;gt; first email. &amp;nbsp; :-)
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Perhaps someone who knows that extension can comment on the issues
&lt;br&gt;&amp;gt; around E'' literals, the escape_string_warning setting and the
&lt;br&gt;&amp;gt; standard_conforming_strings setting.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; -Kevin
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26850031&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Backslashes-in-bytea-values-tp26848640p26850031.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26849482</id>
	<title>Re: Backslashes in bytea values</title>
	<published>2009-12-18T12:43:44Z</published>
	<updated>2009-12-18T12:43:44Z</updated>
	<author>
		<name>Kevin Grittner</name>
	</author>
	<content type="html">Lewis Kapell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849482&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lkapell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; I forgot to mention that all of these insertions are being done
&lt;br&gt;&amp;gt; via PHP scripts, and we are using the pg_escape_bytea function
&lt;br&gt;&amp;gt; (part of the PHP Postgres extension) to escape the data being
&lt;br&gt;&amp;gt; inserted into bytea columns. &amp;nbsp;Rather important item, that.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does this address all the concerns which you raised?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I'm not familiar with that extension or its functions, but it sounds
&lt;br&gt;like you're probably in better shape than I thought when I read your
&lt;br&gt;first email. &amp;nbsp; :-)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Perhaps someone who knows that extension can comment on the issues
&lt;br&gt;around E'' literals, the escape_string_warning setting and the
&lt;br&gt;standard_conforming_strings setting.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849482&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Backslashes-in-bytea-values-tp26848640p26849482.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26849354</id>
	<title>Re: Backslashes in bytea values</title>
	<published>2009-12-18T12:33:45Z</published>
	<updated>2009-12-18T12:33:45Z</updated>
	<author>
		<name>Lewis Kapell</name>
	</author>
	<content type="html">Kevin,
&lt;br&gt;&lt;br&gt;Thanks for your reply.
&lt;br&gt;&lt;br&gt;I forgot to mention that all of these insertions are being done via PHP 
&lt;br&gt;scripts, and we are using the pg_escape_bytea function (part of the PHP 
&lt;br&gt;Postgres extension) to escape the data being inserted into bytea 
&lt;br&gt;columns. &amp;nbsp;Rather important item, that.
&lt;br&gt;&lt;br&gt;Does this address all the concerns which you raised?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Lewis
&lt;br&gt;&lt;br&gt;&lt;br&gt;Kevin Grittner wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Lewis Kapell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849354&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lkapell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I have updated much of our code to use the E'' syntax in order to
&lt;br&gt;&amp;gt;&amp;gt; suppress these messages.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; If you do that, you'd better be doing something to make sure you
&lt;br&gt;&amp;gt; have cured the problem the messages warned of; otherwise you're
&lt;br&gt;&amp;gt; going to have corrupted documents. &amp;nbsp;Are you using prepared
&lt;br&gt;&amp;gt; statements and setting the values through those (recommended) or
&lt;br&gt;&amp;gt; escaping the backslashes, etc. yourself?
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I am trying to figure out what the repercussions would be if I
&lt;br&gt;&amp;gt;&amp;gt; were to turn on the standard_conforming_strings parameter.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; With that on, absolutely all characters are taken as part of the
&lt;br&gt;&amp;gt; literal except for apostrophes. &amp;nbsp;That makes it a bit easier to do
&lt;br&gt;&amp;gt; the escaping, and could result in a slight reduction in statement
&lt;br&gt;&amp;gt; size.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; None of our code actually uses a backslash to escape a double-
&lt;br&gt;&amp;gt;&amp;gt; quote, but I don't know how this would affect the bytea values
&lt;br&gt;&amp;gt;&amp;gt; which I discussed above. &amp;nbsp;How are backslashes affected if they are
&lt;br&gt;&amp;gt;&amp;gt; actually part of the raw data?
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; If you're just throwing them inside a E'xxx' literal that you build
&lt;br&gt;&amp;gt; yourself, it sounds like you've currently got a problem. &amp;nbsp;If you are
&lt;br&gt;&amp;gt; using parameters on prepared statements, it shouldn't matter much.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; -Kevin
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849354&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Backslashes-in-bytea-values-tp26848640p26849354.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26849199</id>
	<title>Re: Backslashes in bytea values</title>
	<published>2009-12-18T12:23:45Z</published>
	<updated>2009-12-18T12:23:45Z</updated>
	<author>
		<name>Kevin Grittner</name>
	</author>
	<content type="html">Lewis Kapell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849199&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lkapell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; My company is using Postgres 8.3.8. &amp;nbsp;We have some tables with
&lt;br&gt;&amp;gt; bytea columns that store file data such as the contents of PDF or
&lt;br&gt;&amp;gt; RTF files.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Yeah, we do a lot of that, too.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; The escape_string_warning parameter is on, and inserting this kind
&lt;br&gt;&amp;gt; of data causes the backslash warning to be generated, since the
&lt;br&gt;&amp;gt; backslash character appears in the raw data of these types of
&lt;br&gt;&amp;gt; files.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;We turn that off.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; I have updated much of our code to use the E'' syntax in order to
&lt;br&gt;&amp;gt; suppress these messages.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;If you do that, you'd better be doing something to make sure you
&lt;br&gt;have cured the problem the messages warned of; otherwise you're
&lt;br&gt;going to have corrupted documents. &amp;nbsp;Are you using prepared
&lt;br&gt;statements and setting the values through those (recommended) or
&lt;br&gt;escaping the backslashes, etc. yourself?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; I am trying to figure out what the repercussions would be if I
&lt;br&gt;&amp;gt; were to turn on the standard_conforming_strings parameter.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;With that on, absolutely all characters are taken as part of the
&lt;br&gt;literal except for apostrophes. &amp;nbsp;That makes it a bit easier to do
&lt;br&gt;the escaping, and could result in a slight reduction in statement
&lt;br&gt;size.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; None of our code actually uses a backslash to escape a double-
&lt;br&gt;&amp;gt; quote, but I don't know how this would affect the bytea values
&lt;br&gt;&amp;gt; which I discussed above. &amp;nbsp;How are backslashes affected if they are
&lt;br&gt;&amp;gt; actually part of the raw data?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;If you're just throwing them inside a E'xxx' literal that you build
&lt;br&gt;yourself, it sounds like you've currently got a problem. &amp;nbsp;If you are
&lt;br&gt;using parameters on prepared statements, it shouldn't matter much.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849199&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Backslashes-in-bytea-values-tp26848640p26849199.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26848730</id>
	<title>Re: Foreign keys with values of zero rather than null</title>
	<published>2009-12-18T11:46:01Z</published>
	<updated>2009-12-18T11:46:01Z</updated>
	<author>
		<name>Kevin Grittner</name>
	</author>
	<content type="html">&amp;quot;Campbell, Lance&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26848730&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lance@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I map data from rows in tables to objects in Java. When I map
&lt;br&gt;&amp;gt; integers in the database I map them to integer primitives in Java.
&lt;br&gt;&amp;gt; The challenge I am running into is what do I do when a table has a
&lt;br&gt;&amp;gt; integer foreign key that is null. &amp;nbsp;Ideally when a table in
&lt;br&gt;&amp;gt; PostgreSql has a foreign key that does not exist I would like the
&lt;br&gt;&amp;gt; value to be zero rather than null. This works really well for me
&lt;br&gt;&amp;gt; because I NEVER use a key with the value of 0.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I would definitely use NULL in the database to indicate that a value
&lt;br&gt;is unknown or not applicable. &amp;nbsp;Really. &amp;nbsp;Always.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;How you map that to your Java objects is another issue -- if you
&lt;br&gt;used an Integer object, you would have a natural mapping of NULL in
&lt;br&gt;the database to a Java null and back again. &amp;nbsp;That's what I normally
&lt;br&gt;do. &amp;nbsp;In my view, you need a really good reason to map to the
&lt;br&gt;primitive, especially since Java has added the automatic boxing and
&lt;br&gt;unboxing features.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;If you feel compelled to micro-optimize to primitives, you need to
&lt;br&gt;have some way to map the NULLs to your magic number and back again. 
&lt;br&gt;The former is pretty easy if you use zero as your magic number,
&lt;br&gt;since getInt returns zero for a NULL, leaving it to you to check
&lt;br&gt;wasNull to determine whether it's really a NULL or a zero, that
&lt;br&gt;direction is easy.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;a href=&quot;http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html#getInt(int&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html#getInt(int&lt;/a&gt;)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;a href=&quot;http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html#wasNull(&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html#wasNull(&lt;/a&gt;)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Going the other direction, you need some way to convert a zero in
&lt;br&gt;that column to a NULL in the database. &amp;nbsp;Exactly how you do that
&lt;br&gt;depends on how you are doing your mapping -- unless you want to try
&lt;br&gt;to use PostgreSQL rules to rewrite your statements or some such. 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26848730&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Foreign-keys-with-values-of-zero-rather-than-null-tp26848175p26848730.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26848640</id>
	<title>Backslashes in bytea values</title>
	<published>2009-12-18T11:33:03Z</published>
	<updated>2009-12-18T11:33:03Z</updated>
	<author>
		<name>Lewis Kapell</name>
	</author>
	<content type="html">My company is using Postgres 8.3.8. &amp;nbsp;We have some tables with bytea 
&lt;br&gt;columns that store file data such as the contents of PDF or RTF files. 
&lt;br&gt;The escape_string_warning parameter is on, and inserting this kind of 
&lt;br&gt;data causes the backslash warning to be generated, since the backslash 
&lt;br&gt;character appears in the raw data of these types of files. &amp;nbsp;I have 
&lt;br&gt;updated much of our code to use the E'' syntax in order to suppress 
&lt;br&gt;these messages.
&lt;br&gt;&lt;br&gt;I am trying to figure out what the repercussions would be if I were to 
&lt;br&gt;turn on the standard_conforming_strings parameter. &amp;nbsp;None of our code 
&lt;br&gt;actually uses a backslash to escape a double-quote, but I don't know how 
&lt;br&gt;this would affect the bytea values which I discussed above. &amp;nbsp;How are 
&lt;br&gt;backslashes affected if they are actually part of the raw data?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;&lt;br&gt;Lewis Kapell
&lt;br&gt;Computer Operations
&lt;br&gt;Seton Home Study School
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26848640&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Backslashes-in-bytea-values-tp26848640p26848640.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26848175</id>
	<title>Foreign keys with values of zero rather than null</title>
	<published>2009-12-18T11:07:55Z</published>
	<updated>2009-12-18T11:07:55Z</updated>
	<author>
		<name>Campbell, Lance-2</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:p=&quot;urn:schemas-microsoft-com:office:powerpoint&quot; xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:Z=&quot;urn:schemas-microsoft-com:&quot; xmlns:b=&quot;urn:schemas-microsoft-com:office:publisher&quot; xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot; xmlns:c=&quot;urn:schemas-microsoft-com:office:component:spreadsheet&quot; xmlns:odc=&quot;urn:schemas-microsoft-com:office:odc&quot; xmlns:oa=&quot;urn:schemas-microsoft-com:office:activation&quot; xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:q=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:rtc=&quot;http://microsoft.com/officenet/conferencing&quot; xmlns:D=&quot;DAV:&quot; xmlns:Repl=&quot;http://schemas.microsoft.com/repl/&quot; xmlns:mt=&quot;http://schemas.microsoft.com/sharepoint/soap/meetings/&quot; xmlns:x2=&quot;http://schemas.microsoft.com/office/excel/2003/xml&quot; xmlns:ppda=&quot;http://www.passport.com/NameSpace.xsd&quot; xmlns:ois=&quot;http://schemas.microsoft.com/sharepoint/soap/ois/&quot; xmlns:dir=&quot;http://schemas.microsoft.com/sharepoint/soap/directory/&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:dsp=&quot;http://schemas.microsoft.com/sharepoint/dsp&quot; xmlns:udc=&quot;http://schemas.microsoft.com/data/udc&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:sub=&quot;http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/&quot; xmlns:ec=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:sp=&quot;http://schemas.microsoft.com/sharepoint/&quot; xmlns:sps=&quot;http://schemas.microsoft.com/sharepoint/soap/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:udcs=&quot;http://schemas.microsoft.com/data/udc/soap&quot; xmlns:udcxf=&quot;http://schemas.microsoft.com/data/udc/xmlfile&quot; xmlns:udcp2p=&quot;http://schemas.microsoft.com/data/udc/parttopart&quot; xmlns:wf=&quot;http://schemas.microsoft.com/sharepoint/soap/workflow/&quot; xmlns:dsss=&quot;http://schemas.microsoft.com/office/2006/digsig-setup&quot; xmlns:dssi=&quot;http://schemas.microsoft.com/office/2006/digsig&quot; xmlns:mdssi=&quot;http://schemas.openxmlformats.org/package/2006/digital-signature&quot; xmlns:mver=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns:mrels=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot; xmlns:spwp=&quot;http://microsoft.com/sharepoint/webpartpages&quot; xmlns:ex12t=&quot;http://schemas.microsoft.com/exchange/services/2006/types&quot; xmlns:ex12m=&quot;http://schemas.microsoft.com/exchange/services/2006/messages&quot; xmlns:pptsl=&quot;http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/&quot; xmlns:spsl=&quot;http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService&quot; xmlns:st=&quot;&amp;#1;&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;I map data from rows in tables to objects in Java. When I
map integers in the database I map them to integer primitives in Java.&amp;nbsp;
The challenge I am running into is what do I do when a table has a integer
foreign key that is null.&amp;nbsp; Ideally when a table in PostgreSql has a
foreign key that does not exist I would like the value to be zero rather than
null.&amp;nbsp; This works really well for me because I NEVER use a key with the
value of 0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Is there some way for me to tell PostgreSql that a zero is
the same as null when using foreign keys that map to integers?&amp;nbsp; That way I
can still use cascade delete.&amp;nbsp; The only way for me to get around this
issue is to remove the foreign key constraint for cascade delete.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Any help would be appreciated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Lance Campbell&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Software Architect/DBA/Project Manager&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Web Services at Public Affairs&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;217-333-0382&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Foreign-keys-with-values-of-zero-rather-than-null-tp26848175p26848175.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26843532</id>
	<title>Fwd: Problems to connect to a postgreSQL 8.4 database on  windows 2003 server</title>
	<published>2009-12-18T05:37:29Z</published>
	<updated>2009-12-18T05:37:29Z</updated>
	<author>
		<name>Francesc B. Ricart</name>
	</author>
	<content type="html">&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Hi &lt;/span&gt;&lt;font style=&quot;color: rgb(0, 0, 0);&quot; color=&quot;#888888&quot;&gt;Shakeel,&lt;/font&gt;&lt;br&gt;&lt;br&gt;At last I got that. It was a silly mistake when setting up the ip addresses. I forgot to put the Subnet Mask. Now it&amp;#39;s working fine.&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Francesc&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; 	&lt;br&gt;Per a qui navega sense rumb cap vent és favorable.&lt;br&gt;&lt;br&gt;                                                             Sèneca&lt;br&gt;                                                                                                                                   &lt;br&gt;
                                                                                                                   &lt;br&gt;---Procureu enviar els correus massius amb les direccions en còpia carbó oculta (cco) per no col·laborar amb qui les col·lecciona per enviar SPAM---&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-to-connect-to-a-postgreSQL-8.4-database-on-windows-2003--server-tp26841884p26843532.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26842727</id>
	<title>Re: Problems to connect to a postgreSQL 8.4 database on  windows 2003 server</title>
	<published>2009-12-18T04:32:33Z</published>
	<updated>2009-12-18T04:32:33Z</updated>
	<author>
		<name>ABBAS SHAKEEL</name>
	</author>
	<content type="html"> please share your hba.conf file&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 18, 2009 at 3:51 PM, Francesc &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26842727&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;francesc.b.ricart@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Hi,&lt;br&gt;&lt;br&gt;I&amp;#39;ve a postgreSQL database in a windows 2003 server. My problem is I can&amp;#39;t connect from other computers of the net. I&amp;#39;ve tried to configure hba.conf and postgresql.conf but I wasn&amp;#39;t successful. Is there anything else I should do? Could anyone help me telling me how to do that?&lt;br&gt;

&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;Many thanks in advance.&lt;br&gt;&lt;br&gt;Francesc&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; 	&lt;br&gt;Per a qui navega sense rumb cap vent és favorable.&lt;br&gt;&lt;br&gt;                                                             Sèneca&lt;br&gt;                                                                                                                                   &lt;br&gt;

                                                                                                                   &lt;br&gt;---Procureu enviar els correus massius amb les direccions en còpia carbó oculta (cco) per no col·laborar amb qui les col·lecciona per enviar SPAM---&lt;br&gt;


&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Best Regards&lt;br&gt;Shakeel Abbas&lt;br&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-to-connect-to-a-postgreSQL-8.4-database-on-windows-2003--server-tp26841884p26842727.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26841884</id>
	<title>Problems to connect to a postgreSQL 8.4 database on windows 2003  server</title>
	<published>2009-12-18T02:51:58Z</published>
	<updated>2009-12-18T02:51:58Z</updated>
	<author>
		<name>Francesc B. Ricart</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I&amp;#39;ve a postgreSQL database in a windows 2003 server. My problem is I can&amp;#39;t connect from other computers of the net. I&amp;#39;ve tried to configure hba.conf and postgresql.conf but I wasn&amp;#39;t successful. Is there anything else I should do? Could anyone help me telling me how to do that?&lt;br&gt;
&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;Many thanks in advance.&lt;br&gt;&lt;br&gt;Francesc&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; 	&lt;br&gt;Per a qui navega sense rumb cap vent és favorable.&lt;br&gt;&lt;br&gt;                                                             Sèneca&lt;br&gt;                                                                                                                                   &lt;br&gt;
                                                                                                                   &lt;br&gt;---Procureu enviar els correus massius amb les direccions en còpia carbó oculta (cco) per no col·laborar amb qui les col·lecciona per enviar SPAM---&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-to-connect-to-a-postgreSQL-8.4-database-on-windows-2003--server-tp26841884p26841884.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26823005</id>
	<title>Re: Inheritance in Postgresql ?</title>
	<published>2009-12-16T20:31:33Z</published>
	<updated>2009-12-16T20:31:33Z</updated>
	<author>
		<name>ABBAS SHAKEEL</name>
	</author>
	<content type="html">Thanks &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(2, 19, 36); white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;Richard Broersma  for the presentation. Its really nice and explains advantages and disadvantages in a nice way.&lt;/span&gt;&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 16, 2009 at 8:13 PM, Richard Broersma &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26823005&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;richard.broersma@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
On Tue, Dec 15, 2009 at 11:33 PM, ABBAS SHAKEEL&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26823005&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shakeel.abbas.qau@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&amp;gt; I feel relatively clear with this concept and i stopped my mind as well from&lt;br&gt;
&amp;gt; comparing inheritance concept with JAVA  by saying that  inheritance concept&lt;br&gt;
&amp;gt; in humans, in JAVA and in Postgres is different in many aspects.&lt;br&gt;
&amp;gt; I would like to share an example as well which describe the advantage of&lt;br&gt;
&amp;gt; inheritance in Postgres in detail . Example can be found here.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;I developed a presentation the discusses hierarchical data modeling.&lt;br&gt;
One section discusses PostgreSQL&amp;#39;s inheritance.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://wiki.postgresql.org/images/9/91/Pguswest2008hnd.pdf&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://wiki.postgresql.org/images/9/91/Pguswest2008hnd.pdf&lt;/a&gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
Regards,&lt;br&gt;
Richard Broersma Jr.&lt;br&gt;
&lt;br&gt;
Visit the Los Angeles PostgreSQL Users Group (LAPUG)&lt;br&gt;
&lt;a href=&quot;http://pugs.postgresql.org/lapug&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://pugs.postgresql.org/lapug&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Best Regards&lt;br&gt;Shakeel Abbas&lt;br&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inheritance-in-Postgresql---tp26806851p26823005.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26816313</id>
	<title>Re: identify referential integrity triggers unassociated with foreign key constraints</title>
	<published>2009-12-16T10:45:42Z</published>
	<updated>2009-12-16T10:45:42Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Bill MacArthur &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816313&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webmaster@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; We started using Postgres back around 7.1. We've done dump and reloads to get us up to where we are now at 8.1.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Over time it would seem that the guts of foreign key constraints have
&lt;br&gt;&amp;gt; changed, for the better. Soon we want to move to the latest version,
&lt;br&gt;&amp;gt; but in the process, I would like to update all the old style &amp;quot;foreign
&lt;br&gt;&amp;gt; keys&amp;quot; to the newest. By old style, I mean we have RI triggers on
&lt;br&gt;&amp;gt; various tables like &amp;quot;RI_ConstraintTrigger_3495148&amp;quot;. In pgadmin, these
&lt;br&gt;&amp;gt; do not show up as triggers, neither do they show up as foreign keys as
&lt;br&gt;&amp;gt; some of the system table relationships that exist now for identifying
&lt;br&gt;&amp;gt; these sort of things did not exist when these &amp;quot;foreign keys&amp;quot; were
&lt;br&gt;&amp;gt; first setup. (These constraints still work, you just can't tell they
&lt;br&gt;&amp;gt; are they using pgadmin) Using \d tablename shows them in a list of
&lt;br&gt;&amp;gt; triggers but not as Foreign-key constraints.
&lt;/div&gt;&lt;br&gt;These should get updated to a &amp;quot;real&amp;quot; FK constraint automatically when
&lt;br&gt;you load into 8.3 or 8.4. &amp;nbsp;See commits here:
&lt;br&gt;&lt;a href=&quot;http://archives.postgresql.org/pgsql-committers/2007-11/msg00036.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org/pgsql-committers/2007-11/msg00036.php&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://archives.postgresql.org/pgsql-committers/2007-11/msg00042.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org/pgsql-committers/2007-11/msg00042.php&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://archives.postgresql.org/pgsql-committers/2007-11/msg00069.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org/pgsql-committers/2007-11/msg00069.php&lt;/a&gt;&lt;br&gt;and concurrent discussions (probably on -hackers)
&lt;br&gt;&lt;br&gt;&amp;gt; Occasionally I have taken to dropping some of these triggers and
&lt;br&gt;&amp;gt; mucking with the system tables like pg_trigger and so forth, but those
&lt;br&gt;&amp;gt; experiences are horrid. Things have never been hosed, but I know there
&lt;br&gt;&amp;gt; has to be a better way.
&lt;br&gt;&lt;br&gt;... or at least, I expect that that upgrade logic will work with
&lt;br&gt;unmodified old-style FK trigger definitions. &amp;nbsp;If you did something other
&lt;br&gt;than drop all the old triggers and create a regular FK constraint,
&lt;br&gt;I can't promise much.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regards, tom lane
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816313&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/identify-referential-integrity-triggers-unassociated-with-foreign-key-constraints-tp26815522p26816313.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26815522</id>
	<title>identify referential integrity triggers unassociated with foreign key constraints</title>
	<published>2009-12-16T09:45:39Z</published>
	<updated>2009-12-16T09:45:39Z</updated>
	<author>
		<name>Bill MacArthur</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;We started using Postgres back around 7.1. We've done dump and reloads to get us up to where we are now at 8.1.
&lt;br&gt;&lt;br&gt;Over time it would seem that the guts of foreign key constraints have changed, for the better. Soon we want to move to the latest version, but in the process, I would like to update all the old style &amp;quot;foreign keys&amp;quot; to the newest. By old style, I mean we have RI triggers on various tables like &amp;quot;RI_ConstraintTrigger_3495148&amp;quot;. In pgadmin, these do not show up as triggers, neither do they show up as foreign keys as some of the system table relationships that exist now for identifying these sort of things did not exist when these &amp;quot;foreign keys&amp;quot; were first setup. (These constraints still work, you just can't tell they are they using pgadmin) Using \d tablename shows them in a list of triggers but not as Foreign-key constraints.
&lt;br&gt;&lt;br&gt;Occasionally I have taken to dropping some of these triggers and mucking with the system tables like pg_trigger and so forth, but those experiences are horrid. Things have never been hosed, but I know there has to be a better way.
&lt;br&gt;&lt;br&gt;What I would like to do is to identify these almost invisible &amp;quot;foreign key&amp;quot; triggers so that they can be dropped sanely and then create new, named constraints can be identified using ordinary tools. Is this possible?
&lt;br&gt;&lt;br&gt;Many thanks,
&lt;br&gt;Bill MacArthur
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26815522&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/identify-referential-integrity-triggers-unassociated-with-foreign-key-constraints-tp26815522p26815522.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26812659</id>
	<title>Re: Inheritance in Postgresql ?</title>
	<published>2009-12-16T07:13:49Z</published>
	<updated>2009-12-16T07:13:49Z</updated>
	<author>
		<name>Richard Broersma</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 11:33 PM, ABBAS SHAKEEL
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26812659&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shakeel.abbas.qau@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I feel relatively clear with this concept and i stopped my mind as well from
&lt;br&gt;&amp;gt; comparing inheritance concept with JAVA  by saying that  inheritance concept
&lt;br&gt;&amp;gt; in humans, in JAVA and in Postgres is different in many aspects.
&lt;br&gt;&amp;gt; I would like to share an example as well which describe the advantage of
&lt;br&gt;&amp;gt; inheritance in Postgres in detail . Example can be found here.
&lt;br&gt;&lt;br&gt;I developed a presentation the discusses hierarchical data modeling.
&lt;br&gt;One section discusses PostgreSQL's inheritance.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.postgresql.org/images/9/91/Pguswest2008hnd.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.postgresql.org/images/9/91/Pguswest2008hnd.pdf&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards,
&lt;br&gt;Richard Broersma Jr.
&lt;br&gt;&lt;br&gt;Visit the Los Angeles PostgreSQL Users Group (LAPUG)
&lt;br&gt;&lt;a href=&quot;http://pugs.postgresql.org/lapug&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pugs.postgresql.org/lapug&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26812659&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inheritance-in-Postgresql---tp26806851p26812659.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26811642</id>
	<title>Re: Looking for Good and Easy-to-use Reporting Tool</title>
	<published>2009-12-16T06:10:40Z</published>
	<updated>2009-12-16T06:10:40Z</updated>
	<author>
		<name>Brian Modra</name>
	</author>
	<content type="html">2009/12/16 Su, Alan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Su@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; GUI front end is nice to have but not required. We. have a system that collects network speed information in mill seconds from different hubs and this infor is stored on various Postgre tables. Throughout the day or at end of the day, I need to run a process/job that will summarize these speed data from the tables, and when the number exceeds certain threshold, say 50 ms, I want to generate an alert email to support staff for investigation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I may expand the requirements further down the road, but main processing logic should stay similar to what I described above. So what's the good tool to use for this background job?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Alan, as Kevin Grittner suggested, maybe you could just write a script
&lt;br&gt;using bash. Otherwise, if you need more than that, and don't want to
&lt;br&gt;do the coding yourself, do you have a budget?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Alan.  (sent from my BlackBerry Wireless Handheld)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message -----
&lt;br&gt;&amp;gt; From: Brian Modra &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;epailty@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: Su, Alan
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Wed Dec 16 02:43:46 2009
&lt;br&gt;&amp;gt; Subject: Re: [ADMIN] Looking for Good and Easy-to-use Reporting Tool
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/12/15 Su, Alan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Su@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; Brian,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What you mentioned below is more sophisticated than what I am capable of doing now. Could you or anyone on this email recommend other tool that meets the following requirements:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1. Require less programming effort. I am trying to stay away from having to
&lt;br&gt;&amp;gt;&amp;gt; write sophisticate programming language, such as Java or .Net
&lt;br&gt;&amp;gt;&amp;gt; 2. Allow to bundle SQL commands in store procedure like style.
&lt;br&gt;&amp;gt;&amp;gt; 3. Allow to evaluate conditions of SQL result set and trigger alert email based
&lt;br&gt;&amp;gt;&amp;gt; on a preset threshold.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please describe the application in more detail. Do you need any sort
&lt;br&gt;&amp;gt; of GUI front end to the application?
&lt;br&gt;&amp;gt; Or is it just reporting via email?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: Brian Modra [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;epailty@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Sent: Friday, December 11, 2009 3:09 PM
&lt;br&gt;&amp;gt;&amp;gt; To: Su, Alan
&lt;br&gt;&amp;gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [ADMIN] Looking for Good and Easy-to-use Reporting Tool
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/12/11 Su, Alan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Su@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can anyone recommend a good, easy to ease and inexpensive reporting tool for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; accessing and manipulating Postgre database/table? The key features I am
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; looking for with this tool are as follows:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Require less programming effort. I am trying to stay away from having to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; write sophisticate programming language, such as Java or .Net
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Allow to bundle SQL commands in store procedure like style.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Allow to evaluate conditions of SQL result set and trigger alert email based
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on preset threshold.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Have you seen this:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.zwartberg.com/surf.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/surf.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You can write SQLs or calls to PLPGSQL (stored procedure) directly
&lt;br&gt;&amp;gt;&amp;gt; into the XML configuration file, then generate a web front end. No
&lt;br&gt;&amp;gt;&amp;gt; Java or C++ required, though you can make complex features in C++. But
&lt;br&gt;&amp;gt;&amp;gt; for more complex GUI logic, you'll need Javascript. There is no
&lt;br&gt;&amp;gt;&amp;gt; escaping writing programs to describe logic, but the straight-forward
&lt;br&gt;&amp;gt;&amp;gt; front-end is all auto-generated from your XML configuration and HTML.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; To do email from triggers will require extra coding, but talk to me about it...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The Karoo Project is new, and the documentation is a bit lacking, but
&lt;br&gt;&amp;gt;&amp;gt; you can email me your questions &amp;quot;Brian Modra&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;brian@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Alan
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This email and all files and information transmitted with it are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; confidential and intended solely for the use of the individual or entity to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; whom the email is addressed. If you are not the intended recipient or the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; person responsible for delivering the email to the intended recipient(s),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; you have received this email in error, and use of it is strictly prohibited.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Opinions expressed herein are those of the individual sender and not of the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; company unless specifically so indicated. If you have received this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; communication in error, please immediately notify the sender, delete this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; message, and do not print, copy, or disclose the content of this message.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Inadvertent disclosure of this message does not waive any privilege or claim
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; of confidentiality.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For important conflict disclosures, please visit
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.daiwausa.com/report_disclosure.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.daiwausa.com/report_disclosure.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; If your settings do not permit you to access this link directly, please use
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; your internet browser to visit this website address.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Brian Modra   Land line: +27 23 5411 462
&lt;br&gt;&amp;gt;&amp;gt; Mobile: +27 79 69 77 082
&lt;br&gt;&amp;gt;&amp;gt; 5 Jan Louw Str, Prince Albert, 6930
&lt;br&gt;&amp;gt;&amp;gt; Postal: P.O. Box 2, Prince Albert 6930
&lt;br&gt;&amp;gt;&amp;gt; South Africa
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.zwartberg.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This email and all files and information transmitted with it are confidential and intended solely for the use of the individual or entity to whom the email is addressed.  If you are not the intended recipient or the person responsible for delivering the email to the intended recipient(s), you have received this email in error, and use of it is strictly prohibited.  Opinions expressed herein are those of the individual sender and not of the company unless specifically so indicated.  If you have received this communication in error, please immediately notify the sender, delete this message, and do not print, copy, or disclose the content of this message.  Inadvertent disclosure of this message does not waive any privilege or claim of confidentiality.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For important conflict disclosures, please visit &lt;a href=&quot;http://www.daiwausa.com/report_disclosure.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.daiwausa.com/report_disclosure.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If your settings do not permit you to access this link directly, please use your internet browser to visit this website address.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Brian Modra   Land line: +27 23 5411 462
&lt;br&gt;&amp;gt; Mobile: +27 79 69 77 082
&lt;br&gt;&amp;gt; 5 Jan Louw Str, Prince Albert, 6930
&lt;br&gt;&amp;gt; Postal: P.O. Box 2, Prince Albert 6930
&lt;br&gt;&amp;gt; South Africa
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.zwartberg.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This email and all files and information transmitted with it are confidential and intended solely for the use of the individual or entity to whom the email is addressed.  If you are not the intended recipient or the person responsible for delivering the email to the intended recipient(s), you have received this email in error, and use of it is strictly prohibited.  Opinions expressed herein are those of the individual sender and not of the company unless specifically so indicated.  If you have received this communication in error, please immediately notify the sender, delete this message, and do not print, copy, or disclose the content of this message.  Inadvertent disclosure of this message does not waive any privilege or claim of confidentiality.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For important conflict disclosures, please visit &lt;a href=&quot;http://www.daiwausa.com/report_disclosure.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.daiwausa.com/report_disclosure.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If your settings do not permit you to access this link directly, please use your internet browser to visit this website address.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Brian Modra &amp;nbsp; Land line: +27 23 5411 462
&lt;br&gt;Mobile: +27 79 69 77 082
&lt;br&gt;5 Jan Louw Str, Prince Albert, 6930
&lt;br&gt;Postal: P.O. Box 2, Prince Albert 6930
&lt;br&gt;South Africa
&lt;br&gt;&lt;a href=&quot;http://www.zwartberg.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811642&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-view-the-code-of-a-function-tp26741717p26811642.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26810930</id>
	<title>password authentication failed</title>
	<published>2009-12-16T05:19:56Z</published>
	<updated>2009-12-16T05:19:56Z</updated>
	<author>
		<name>Sam Jas</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;I am newbee for Bucardo. &lt;br&gt;&lt;br&gt;Whenever i am trying to add database or try to look into show all command. It shows me following error. &lt;br&gt;&lt;br&gt;Connecting to database 'bucardo' as user 'bucardo'&lt;br&gt;DBI
connect('dbname=bucardo;port=5433','bucardo',...) failed: FATAL:&amp;nbsp;
password authentication failed for user &quot;bucardo&quot;&amp;nbsp; at ./bucardo_ctl
line 191&lt;br&gt;&lt;br&gt;/bucardo_ctl show all&lt;br&gt;&lt;br&gt;./bucardo_ctl add db test&lt;br&gt;&lt;br&gt;I have created bucardo user with password goat &amp;amp; it is a superuser. &lt;br&gt;&lt;br&gt;Kindly suggest me to
 resolve this issue. &lt;br&gt;&lt;br&gt;&lt;br&gt;I am following below link. &lt;br&gt;http://bucardo.org/wiki/Bucardo/Installation &lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks &lt;br&gt;Sam Jas&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;



      &lt;!--1--&gt;&lt;hr size=1&gt;&lt;/hr&gt; 
The INTERNET now has a personality. YOURS! &lt;a href=&quot;http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;See your Yahoo! Homepage&lt;/a&gt;.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/password-authentication-failed-tp26810930p26810930.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26810920</id>
	<title>Re: Looking for Good and Easy-to-use Reporting Tool</title>
	<published>2009-12-16T05:19:38Z</published>
	<updated>2009-12-16T05:19:38Z</updated>
	<author>
		<name>Su, Alan</name>
	</author>
	<content type="html">GUI front end is nice to have but not required. We. have a system that collects network speed information in mill seconds from different hubs and this infor is stored on various Postgre tables. Throughout the day or at end of the day, I need to run a process/job that will summarize these speed data from the tables, and when the number exceeds certain threshold, say 50 ms, I want to generate an alert email to support staff for investigation.
&lt;br&gt;&lt;br&gt;I may expand the requirements further down the road, but main processing logic should stay similar to what I described above. So what's the good tool to use for this background job?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Alan. &amp;nbsp;(sent from my BlackBerry Wireless Handheld)
&lt;br&gt;&lt;br&gt;----- Original Message -----
&lt;br&gt;From: Brian Modra &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;epailty@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: Su, Alan
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Wed Dec 16 02:43:46 2009
&lt;br&gt;Subject: Re: [ADMIN] Looking for Good and Easy-to-use Reporting Tool
&lt;br&gt;&lt;br&gt;2009/12/15 Su, Alan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Su@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Brian,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What you mentioned below is more sophisticated than what I am capable of doing now. Could you or anyone on this email recommend other tool that meets the following requirements:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. Require less programming effort. I am trying to stay away from having to
&lt;br&gt;&amp;gt; write sophisticate programming language, such as Java or .Net
&lt;br&gt;&amp;gt; 2. Allow to bundle SQL commands in store procedure like style.
&lt;br&gt;&amp;gt; 3. Allow to evaluate conditions of SQL result set and trigger alert email based
&lt;br&gt;&amp;gt; on a preset threshold.
&lt;br&gt;&lt;br&gt;Please describe the application in more detail. Do you need any sort
&lt;br&gt;of GUI front end to the application?
&lt;br&gt;Or is it just reporting via email?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Brian Modra [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;epailty@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, December 11, 2009 3:09 PM
&lt;br&gt;&amp;gt; To: Su, Alan
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [ADMIN] Looking for Good and Easy-to-use Reporting Tool
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/12/11 Su, Alan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Su@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; Can anyone recommend a good, easy to ease and inexpensive reporting tool for
&lt;br&gt;&amp;gt;&amp;gt; accessing and manipulating Postgre database/table? The key features I am
&lt;br&gt;&amp;gt;&amp;gt; looking for with this tool are as follows:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Require less programming effort. I am trying to stay away from having to
&lt;br&gt;&amp;gt;&amp;gt; write sophisticate programming language, such as Java or .Net
&lt;br&gt;&amp;gt;&amp;gt; Allow to bundle SQL commands in store procedure like style.
&lt;br&gt;&amp;gt;&amp;gt; Allow to evaluate conditions of SQL result set and trigger alert email based
&lt;br&gt;&amp;gt;&amp;gt; on preset threshold.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Have you seen this:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.zwartberg.com/surf.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/surf.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can write SQLs or calls to PLPGSQL (stored procedure) directly
&lt;br&gt;&amp;gt; into the XML configuration file, then generate a web front end. No
&lt;br&gt;&amp;gt; Java or C++ required, though you can make complex features in C++. But
&lt;br&gt;&amp;gt; for more complex GUI logic, you'll need Javascript. There is no
&lt;br&gt;&amp;gt; escaping writing programs to describe logic, but the straight-forward
&lt;br&gt;&amp;gt; front-end is all auto-generated from your XML configuration and HTML.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To do email from triggers will require extra coding, but talk to me about it...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The Karoo Project is new, and the documentation is a bit lacking, but
&lt;br&gt;&amp;gt; you can email me your questions &amp;quot;Brian Modra&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;brian@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Alan
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This email and all files and information transmitted with it are
&lt;br&gt;&amp;gt;&amp;gt; confidential and intended solely for the use of the individual or entity to
&lt;br&gt;&amp;gt;&amp;gt; whom the email is addressed. If you are not the intended recipient or the
&lt;br&gt;&amp;gt;&amp;gt; person responsible for delivering the email to the intended recipient(s),
&lt;br&gt;&amp;gt;&amp;gt; you have received this email in error, and use of it is strictly prohibited.
&lt;br&gt;&amp;gt;&amp;gt; Opinions expressed herein are those of the individual sender and not of the
&lt;br&gt;&amp;gt;&amp;gt; company unless specifically so indicated. If you have received this
&lt;br&gt;&amp;gt;&amp;gt; communication in error, please immediately notify the sender, delete this
&lt;br&gt;&amp;gt;&amp;gt; message, and do not print, copy, or disclose the content of this message.
&lt;br&gt;&amp;gt;&amp;gt; Inadvertent disclosure of this message does not waive any privilege or claim
&lt;br&gt;&amp;gt;&amp;gt; of confidentiality.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For important conflict disclosures, please visit
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.daiwausa.com/report_disclosure.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.daiwausa.com/report_disclosure.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If your settings do not permit you to access this link directly, please use
&lt;br&gt;&amp;gt;&amp;gt; your internet browser to visit this website address.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Brian Modra   Land line: +27 23 5411 462
&lt;br&gt;&amp;gt; Mobile: +27 79 69 77 082
&lt;br&gt;&amp;gt; 5 Jan Louw Str, Prince Albert, 6930
&lt;br&gt;&amp;gt; Postal: P.O. Box 2, Prince Albert 6930
&lt;br&gt;&amp;gt; South Africa
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.zwartberg.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This email and all files and information transmitted with it are confidential and intended solely for the use of the individual or entity to whom the email is addressed.  If you are not the intended recipient or the person responsible for delivering the email to the intended recipient(s), you have received this email in error, and use of it is strictly prohibited.  Opinions expressed herein are those of the individual sender and not of the company unless specifically so indicated.  If you have received this communication in error, please immediately notify the sender, delete this message, and do not print, copy, or disclose the content of this message.  Inadvertent disclosure of this message does not waive any privilege or claim of confidentiality.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For important conflict disclosures, please visit &lt;a href=&quot;http://www.daiwausa.com/report_disclosure.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.daiwausa.com/report_disclosure.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If your settings do not permit you to access this link directly, please use your internet browser to visit this website address.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Brian Modra &amp;nbsp; Land line: +27 23 5411 462
&lt;br&gt;Mobile: +27 79 69 77 082
&lt;br&gt;5 Jan Louw Str, Prince Albert, 6930
&lt;br&gt;Postal: P.O. Box 2, Prince Albert 6930
&lt;br&gt;South Africa
&lt;br&gt;&lt;a href=&quot;http://www.zwartberg.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;This email and all files and information transmitted with it are confidential and intended solely for the use of the individual or entity to whom the email is addressed. &amp;nbsp;If you are not the intended recipient or the person responsible for delivering the email to the intended recipient(s), you have received this email in error, and use of it is strictly prohibited. &amp;nbsp;Opinions expressed herein are those of the individual sender and not of the company unless specifically so indicated. &amp;nbsp;If you have received this communication in error, please immediately notify the sender, delete this message, and do not print, copy, or disclose the content of this message. &amp;nbsp;Inadvertent disclosure of this message does not waive any privilege or claim of confidentiality.
&lt;br&gt;&lt;br&gt;For important conflict disclosures, please visit &lt;a href=&quot;http://www.daiwausa.com/report_disclosure.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.daiwausa.com/report_disclosure.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;If your settings do not permit you to access this link directly, please use your internet browser to visit this website address.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810920&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-view-the-code-of-a-function-tp26741717p26810920.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807460</id>
	<title>Re: Internal fragmentations statistics Was: VACUUM FULL memory requirements</title>
	<published>2009-12-15T23:51:44Z</published>
	<updated>2009-12-15T23:51:44Z</updated>
	<author>
		<name>Guillaume Lelarge-3</name>
	</author>
	<content type="html">Le mercredi 16 décembre 2009 à 06:18:45, Gurjeet Singh a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2009/12/15 Guillaume Lelarge &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807460&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;guillaume@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Le mardi 15 décembre 2009 à 00:04:47, Evan Rempel a écrit :
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Is there a command/tool that will report on how FULL a table is
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; getting? If there is, how intrusive is it? How computationally heavy is
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; it?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; We have a database that is approx 100 million rows with
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; approx 2 million insert/updates per day. Each day old data
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; is purged from the database. The end result is a mostly static
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; footprint with regards to disk space used, but I would like to
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; know how much room is usable inside the tables as well as the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; OS file system (that part is easy).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; pgstattuple contrib module give such an information. But it requires an
&lt;br&gt;&amp;gt; &amp;gt; exclusive lock on the table it's looking at, so it's quite intrusive. For
&lt;br&gt;&amp;gt; &amp;gt; more
&lt;br&gt;&amp;gt; &amp;gt; details, the 8.4 documentation is interesting:
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.postgresql.org/docs/8.4/interactive/pgstattuple.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/8.4/interactive/pgstattuple.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That doc specifically says that it takes only a read lock.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Ouch, I always thought it took an exclusive lock. Sorry.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Guillaume.
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.postgresqlfr.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresqlfr.org&lt;/a&gt;&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://dalibo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dalibo.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807460&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VACUUM-FULL-memory-requirements-tp26779057p26807460.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807378</id>
	<title>Re: Looking for Good and Easy-to-use Reporting Tool</title>
	<published>2009-12-15T23:43:46Z</published>
	<updated>2009-12-15T23:43:46Z</updated>
	<author>
		<name>Brian Modra</name>
	</author>
	<content type="html">2009/12/15 Su, Alan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807378&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Su@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Brian,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What you mentioned below is more sophisticated than what I am capable of doing now. Could you or anyone on this email recommend other tool that meets the following requirements:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. Require less programming effort. I am trying to stay away from having to
&lt;br&gt;&amp;gt; write sophisticate programming language, such as Java or .Net
&lt;br&gt;&amp;gt; 2. Allow to bundle SQL commands in store procedure like style.
&lt;br&gt;&amp;gt; 3. Allow to evaluate conditions of SQL result set and trigger alert email based
&lt;br&gt;&amp;gt; on a preset threshold.
&lt;br&gt;&lt;br&gt;Please describe the application in more detail. Do you need any sort
&lt;br&gt;of GUI front end to the application?
&lt;br&gt;Or is it just reporting via email?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Brian Modra [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807378&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;epailty@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, December 11, 2009 3:09 PM
&lt;br&gt;&amp;gt; To: Su, Alan
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807378&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [ADMIN] Looking for Good and Easy-to-use Reporting Tool
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/12/11 Su, Alan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807378&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Su@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; Can anyone recommend a good, easy to ease and inexpensive reporting tool for
&lt;br&gt;&amp;gt;&amp;gt; accessing and manipulating Postgre database/table? The key features I am
&lt;br&gt;&amp;gt;&amp;gt; looking for with this tool are as follows:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Require less programming effort. I am trying to stay away from having to
&lt;br&gt;&amp;gt;&amp;gt; write sophisticate programming language, such as Java or .Net
&lt;br&gt;&amp;gt;&amp;gt; Allow to bundle SQL commands in store procedure like style.
&lt;br&gt;&amp;gt;&amp;gt; Allow to evaluate conditions of SQL result set and trigger alert email based
&lt;br&gt;&amp;gt;&amp;gt; on preset threshold.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Have you seen this:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.zwartberg.com/surf.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/surf.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can write SQLs or calls to PLPGSQL (stored procedure) directly
&lt;br&gt;&amp;gt; into the XML configuration file, then generate a web front end. No
&lt;br&gt;&amp;gt; Java or C++ required, though you can make complex features in C++. But
&lt;br&gt;&amp;gt; for more complex GUI logic, you'll need Javascript. There is no
&lt;br&gt;&amp;gt; escaping writing programs to describe logic, but the straight-forward
&lt;br&gt;&amp;gt; front-end is all auto-generated from your XML configuration and HTML.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To do email from triggers will require extra coding, but talk to me about it...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The Karoo Project is new, and the documentation is a bit lacking, but
&lt;br&gt;&amp;gt; you can email me your questions &amp;quot;Brian Modra&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807378&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;brian@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Alan
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This email and all files and information transmitted with it are
&lt;br&gt;&amp;gt;&amp;gt; confidential and intended solely for the use of the individual or entity to
&lt;br&gt;&amp;gt;&amp;gt; whom the email is addressed. If you are not the intended recipient or the
&lt;br&gt;&amp;gt;&amp;gt; person responsible for delivering the email to the intended recipient(s),
&lt;br&gt;&amp;gt;&amp;gt; you have received this email in error, and use of it is strictly prohibited.
&lt;br&gt;&amp;gt;&amp;gt; Opinions expressed herein are those of the individual sender and not of the
&lt;br&gt;&amp;gt;&amp;gt; company unless specifically so indicated. If you have received this
&lt;br&gt;&amp;gt;&amp;gt; communication in error, please immediately notify the sender, delete this
&lt;br&gt;&amp;gt;&amp;gt; message, and do not print, copy, or disclose the content of this message.
&lt;br&gt;&amp;gt;&amp;gt; Inadvertent disclosure of this message does not waive any privilege or claim
&lt;br&gt;&amp;gt;&amp;gt; of confidentiality.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For important conflict disclosures, please visit
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.daiwausa.com/report_disclosure.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.daiwausa.com/report_disclosure.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If your settings do not permit you to access this link directly, please use
&lt;br&gt;&amp;gt;&amp;gt; your internet browser to visit this website address.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Brian Modra   Land line: +27 23 5411 462
&lt;br&gt;&amp;gt; Mobile: +27 79 69 77 082
&lt;br&gt;&amp;gt; 5 Jan Louw Str, Prince Albert, 6930
&lt;br&gt;&amp;gt; Postal: P.O. Box 2, Prince Albert 6930
&lt;br&gt;&amp;gt; South Africa
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.zwartberg.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This email and all files and information transmitted with it are confidential and intended solely for the use of the individual or entity to whom the email is addressed.  If you are not the intended recipient or the person responsible for delivering the email to the intended recipient(s), you have received this email in error, and use of it is strictly prohibited.  Opinions expressed herein are those of the individual sender and not of the company unless specifically so indicated.  If you have received this communication in error, please immediately notify the sender, delete this message, and do not print, copy, or disclose the content of this message.  Inadvertent disclosure of this message does not waive any privilege or claim of confidentiality.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For important conflict disclosures, please visit &lt;a href=&quot;http://www.daiwausa.com/report_disclosure.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.daiwausa.com/report_disclosure.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If your settings do not permit you to access this link directly, please use your internet browser to visit this website address.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Brian Modra &amp;nbsp; Land line: +27 23 5411 462
&lt;br&gt;Mobile: +27 79 69 77 082
&lt;br&gt;5 Jan Louw Str, Prince Albert, 6930
&lt;br&gt;Postal: P.O. Box 2, Prince Albert 6930
&lt;br&gt;South Africa
&lt;br&gt;&lt;a href=&quot;http://www.zwartberg.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zwartberg.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807378&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-view-the-code-of-a-function-tp26741717p26807378.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807287</id>
	<title>Re: Inheritance in Postgresql ?</title>
	<published>2009-12-15T23:33:56Z</published>
	<updated>2009-12-15T23:33:56Z</updated>
	<author>
		<name>ABBAS SHAKEEL</name>
	</author>
	<content type="html">&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;Thanks Scott,&lt;/span&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; &quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; &quot;&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; &quot;&gt;Your comments are of worth. &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; &quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; &quot;&gt;I feel relatively clear with this concept and i stopped my mind as well from comparing inheritance concept with JAVA  by saying that  inheritance concept in humans, in JAVA and in Postgres is different in many aspects.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; &quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; &quot;&gt;I would like to share an example as well which describe the advantage of inheritance in Postgres in detail . Example can be found &lt;a href=&quot;http://knol.google.com/k/postgresql-inheritance#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 16, 2009 at 12:15 PM, Scott Marlowe &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807287&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.marlowe@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;On Wed, Dec 16, 2009 at 12:01 AM, ABBAS SHAKEEL&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807287&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shakeel.abbas.qau@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&amp;gt; Thanks Scott&lt;br&gt;
&amp;gt; you are right . It inherits structure only and i don&amp;#39;t know whether to call&lt;br&gt;
&amp;gt; to it an advantage or disadvantage that it query the children table as well&lt;br&gt;
&amp;gt; while select. But in case of insert and update this concepts takes a new&lt;br&gt;
&amp;gt; turn.&lt;br&gt;
&amp;gt; How inheritance effect data?&lt;br&gt;
&amp;gt;  Can you please briefly compare concept of inheritance in Postgres and JAVA,&lt;br&gt;
&amp;gt; as my mind is trying to compare this with already  stored concept in mind&lt;br&gt;
&amp;gt; about inheritance ;)&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;I&amp;#39;m no Java specialist, so can&amp;#39;t directly compare there.  In the case&lt;br&gt;
of inserts those go to the parent or, if you insert directly to them&lt;br&gt;
the child tables. Updates operate on the appropriate child tables.&lt;br&gt;
&lt;br&gt;
By defining triggers or rules, you can make inserts to the parent&lt;br&gt;
table go to appropriate child tables, which is often done for&lt;br&gt;
partitioning data, which is in turn the most common use for table&lt;br&gt;
inheritance.&lt;br&gt;
&lt;br&gt;
You can also select data from JUST the parent with the only keyword,&lt;br&gt;
as in &amp;quot;select * from only parent_table&amp;quot;.&lt;br&gt;
&lt;br&gt;
Note that pgsql supports multiple inheritance, so that you can have a&lt;br&gt;
table inherit structure from two or more parent tables as well.&lt;br&gt;
&lt;br&gt;
Note that as of 8.4, according to the docs:&lt;br&gt;
&amp;quot;All check constraints and not-null constraints on a parent table are&lt;br&gt;
automatically inherited by its children. Other types of constraints&lt;br&gt;
(unique, primary key, and foreign key constraints) are not inherited.&amp;quot;&lt;br&gt;
&lt;br&gt;
So for foreign keys and such, inheritance is much less useful than&lt;br&gt;
regular tables.&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Best Regards&lt;br&gt;Shakeel Abbas&lt;br&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inheritance-in-Postgresql---tp26806851p26807287.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807156</id>
	<title>Re: Inheritance in Postgresql ?</title>
	<published>2009-12-15T23:15:38Z</published>
	<updated>2009-12-15T23:15:38Z</updated>
	<author>
		<name>Scott Marlowe-2</name>
	</author>
	<content type="html">On Wed, Dec 16, 2009 at 12:01 AM, ABBAS SHAKEEL
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807156&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shakeel.abbas.qau@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Thanks Scott
&lt;br&gt;&amp;gt; you are right . It inherits structure only and i don't know whether to call
&lt;br&gt;&amp;gt; to it an advantage or disadvantage that it query the children table as well
&lt;br&gt;&amp;gt; while select. But in case of insert and update this concepts takes a new
&lt;br&gt;&amp;gt; turn.
&lt;br&gt;&amp;gt; How inheritance effect data?
&lt;br&gt;&amp;gt;  Can you please briefly compare concept of inheritance in Postgres and JAVA,
&lt;br&gt;&amp;gt; as my mind is trying to compare this with already  stored concept in mind
&lt;br&gt;&amp;gt; about inheritance ;)
&lt;br&gt;&lt;br&gt;I'm no Java specialist, so can't directly compare there. &amp;nbsp;In the case
&lt;br&gt;of inserts those go to the parent or, if you insert directly to them
&lt;br&gt;the child tables. Updates operate on the appropriate child tables.
&lt;br&gt;&lt;br&gt;By defining triggers or rules, you can make inserts to the parent
&lt;br&gt;table go to appropriate child tables, which is often done for
&lt;br&gt;partitioning data, which is in turn the most common use for table
&lt;br&gt;inheritance.
&lt;br&gt;&lt;br&gt;You can also select data from JUST the parent with the only keyword,
&lt;br&gt;as in &amp;quot;select * from only parent_table&amp;quot;.
&lt;br&gt;&lt;br&gt;Note that pgsql supports multiple inheritance, so that you can have a
&lt;br&gt;table inherit structure from two or more parent tables as well.
&lt;br&gt;&lt;br&gt;Note that as of 8.4, according to the docs:
&lt;br&gt;&amp;quot;All check constraints and not-null constraints on a parent table are
&lt;br&gt;automatically inherited by its children. Other types of constraints
&lt;br&gt;(unique, primary key, and foreign key constraints) are not inherited.&amp;quot;
&lt;br&gt;&lt;br&gt;So for foreign keys and such, inheritance is much less useful than
&lt;br&gt;regular tables.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807156&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inheritance-in-Postgresql---tp26806851p26807156.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807022</id>
	<title>Re: Inheritance in Postgresql ?</title>
	<published>2009-12-15T23:01:05Z</published>
	<updated>2009-12-15T23:01:05Z</updated>
	<author>
		<name>ABBAS SHAKEEL</name>
	</author>
	<content type="html">Thanks Scott&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;you are right . It inherits structure only and i don&amp;#39;t know whether to call to it an advantage or disadvantage that it query the children table as well while select. But in case of insert and update this concepts takes a new turn. &lt;/div&gt;
&lt;div&gt;How inheritance effect data?&lt;/div&gt;&lt;div&gt; Can you please briefly compare concept of inheritance in Postgres and JAVA, as my mind is trying to compare this with already  stored concept in mind about inheritance ;)&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 16, 2009 at 11:51 AM, Scott Marlowe &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807022&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.marlowe@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;On Tue, Dec 15, 2009 at 11:36 PM, ABBAS SHAKEEL&lt;br&gt;
&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807022&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shakeel.abbas.qau@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hello&lt;br&gt;
&amp;gt; I am not an expert for database but rarely design database for Web and IVR&lt;br&gt;
&amp;gt; applications.&lt;br&gt;
&amp;gt; Today I wonder if there is any practical advantage of inheritance of Tables.&lt;br&gt;
&amp;gt; Lets take the same example that is commonly referred.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; CREATE TABLE cities (&lt;br&gt;
&amp;gt;     name            text,&lt;br&gt;
&amp;gt;     population      float,&lt;br&gt;
&amp;gt;     altitude        int     -- in feet&lt;br&gt;
&amp;gt; );&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; CREATE TABLE capitals (&lt;br&gt;
&amp;gt;     state           char(2)&lt;br&gt;
&amp;gt; ) INHERITS (cities);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Capital table inherit attributes from Cities but no data. I am confused with&lt;br&gt;
&amp;gt; concept of inheritance in postgres.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In These tables what i was supposing is inheritence as that in JAVA. but its&lt;br&gt;
&amp;gt; seems to be  a different scene.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;The child table inherits structure from the parent, the parent then&lt;br&gt;
allows you to retrieve data from it and the children together.&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Best Regards&lt;br&gt;Shakeel Abbas&lt;br&gt;&lt;br&gt;
&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inheritance-in-Postgresql---tp26806851p26807022.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806950</id>
	<title>Re: Inheritance in Postgresql ?</title>
	<published>2009-12-15T22:51:56Z</published>
	<updated>2009-12-15T22:51:56Z</updated>
	<author>
		<name>Scott Marlowe-2</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 11:36 PM, ABBAS SHAKEEL
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806950&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shakeel.abbas.qau@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello
&lt;br&gt;&amp;gt; I am not an expert for database but rarely design database for Web and IVR
&lt;br&gt;&amp;gt; applications.
&lt;br&gt;&amp;gt; Today I wonder if there is any practical advantage of inheritance of Tables.
&lt;br&gt;&amp;gt; Lets take the same example that is commonly referred.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; CREATE TABLE cities (
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;text,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; population &amp;nbsp; &amp;nbsp; &amp;nbsp;float,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; altitude &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int &amp;nbsp; &amp;nbsp; -- in feet
&lt;br&gt;&amp;gt; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; CREATE TABLE capitals (
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; state &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char(2)
&lt;br&gt;&amp;gt; ) INHERITS (cities);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Capital table inherit attributes from Cities but no data. I am confused with
&lt;br&gt;&amp;gt; concept of inheritance in postgres.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In These tables what i was supposing is inheritence as that in JAVA. but its
&lt;br&gt;&amp;gt; seems to be  a different scene.
&lt;/div&gt;&lt;br&gt;The child table inherits structure from the parent, the parent then
&lt;br&gt;allows you to retrieve data from it and the children together.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806950&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inheritance-in-Postgresql---tp26806851p26806950.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806851</id>
	<title>Inheritance in Postgresql ?</title>
	<published>2009-12-15T22:36:48Z</published>
	<updated>2009-12-15T22:36:48Z</updated>
	<author>
		<name>ABBAS SHAKEEL</name>
	</author>
	<content type="html">Hello &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I am not an expert for database but rarely design database for Web and IVR applications.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Today I wonder if there is any practical advantage of inheritance of Tables.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Lets take the same example that is commonly referred.&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif; font-size: medium; &quot;&gt;&lt;pre class=&quot;PROGRAMLISTING&quot; style=&quot;margin-left: 4ex; &quot;&gt;
CREATE TABLE cities (
    name            text,
    population      float,
    altitude        int     -- in feet
);

CREATE TABLE capitals (
    state           char(2)
) INHERITS (cities);&lt;/pre&gt;&lt;pre class=&quot;PROGRAMLISTING&quot; style=&quot;margin-left: 4ex; &quot;&gt;&lt;br&gt;&lt;/pre&gt;&lt;pre class=&quot;PROGRAMLISTING&quot; style=&quot;margin-left: 4ex; &quot;&gt;Capital table inherit attributes from Cities but no data. I am confused with concept of inheritance in postgres.&lt;/pre&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;In These tables what i was supposing is inheritence as that in JAVA. but its seems to be  a different scene.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Can some one Please compare inheritence in JAVA and Postgresql OR make me clear about for what inheritance is introduced in Postgres.&lt;br clear=&quot;all&quot;&gt;
&lt;br&gt;-- &lt;br&gt;Best Regards&lt;br&gt;Shakeel Abbas&lt;br&gt;&lt;br&gt;
&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inheritance-in-Postgresql---tp26806851p26806851.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806422</id>
	<title>Re: Internal fragmentations statistics Was: VACUUM FULL  memory requirements</title>
	<published>2009-12-15T21:18:45Z</published>
	<updated>2009-12-15T21:18:45Z</updated>
	<author>
		<name>singh.gurjeet</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/15 Guillaume Lelarge &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806422&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;guillaume@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Le mardi 15 décembre 2009 à 00:04:47, Evan Rempel a écrit :&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&amp;gt; Is there a command/tool that will report on how FULL a table is getting?&lt;br&gt;
&amp;gt; If there is, how intrusive is it? How computationally heavy is it?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; We have a database that is approx 100 million rows with&lt;br&gt;
&amp;gt; approx 2 million insert/updates per day. Each day old data&lt;br&gt;
&amp;gt; is purged from the database. The end result is a mostly static&lt;br&gt;
&amp;gt; footprint with regards to disk space used, but I would like to&lt;br&gt;
&amp;gt; know how much room is usable inside the tables as well as the&lt;br&gt;
&amp;gt; OS file system (that part is easy).&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;pgstattuple contrib module give such an information. But it requires an&lt;br&gt;
exclusive lock on the table it&amp;#39;s looking at, so it&amp;#39;s quite intrusive. For more&lt;br&gt;
details, the 8.4 documentation is interesting:&lt;br&gt;
&lt;a href=&quot;http://www.postgresql.org/docs/8.4/interactive/pgstattuple.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/8.4/interactive/pgstattuple.html&lt;/a&gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;/font&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br clear=&quot;all&quot;&gt;That doc specifically says that it takes only a read lock.&lt;br&gt;&lt;br&gt;Best regards,&lt;br&gt;-- &lt;br&gt;Lets call it Postgres&lt;br&gt;&lt;br&gt;EnterpriseDB      &lt;a href=&quot;http://www.enterprisedb.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.enterprisedb.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806422&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gurjeet.singh@...&lt;/a&gt;&lt;br&gt;&lt;br&gt;singh.gurjeet@{ gmail | hotmail | yahoo }.com&lt;br&gt;Twitter: singh_gurjeet&lt;br&gt;Skype: singh_gurjeet&lt;br&gt;&lt;br&gt;Mail sent from my BlackLaptop device&lt;br&gt;
&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VACUUM-FULL-memory-requirements-tp26779057p26806422.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26801399</id>
	<title>Re: Looking for Good and Easy-to-use Reporting Tool</title>
	<published>2009-12-15T12:38:53Z</published>
	<updated>2009-12-15T12:38:53Z</updated>
	<author>
		<name>Kevin Grittner</name>
	</author>
	<content type="html">&amp;quot;Su, Alan&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801399&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alan.Su@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; 1. Require less programming effort. I am trying to stay away from
&lt;br&gt;&amp;gt; having to write sophisticate programming language, such as Java or
&lt;br&gt;&amp;gt; .Net
&lt;br&gt;&amp;gt; 2. Allow to bundle SQL commands in store procedure like style.
&lt;br&gt;&amp;gt; 3. Allow to evaluate conditions of SQL result set and trigger
&lt;br&gt;&amp;gt; alert email based on a preset threshold.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Have you considered psql and grep, with maybe a little logic in bash?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-admin mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801399&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;)
&lt;br&gt;To make changes to your subscription:
&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-admin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-admin&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-view-the-code-of-a-function-tp26741717p26801399.html" />
</entry>

</feed>
