<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-769</id>
	<title>Nabble - PostgreSQL - interfaces</title>
	<updated>2009-11-24T07:44:04Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PostgreSQL---interfaces-f769.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PostgreSQL---interfaces-f769.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26498237</id>
	<title>Re: ecpg &amp; 8.3 -&gt; 8.4 migration</title>
	<published>2009-11-24T07:44:04Z</published>
	<updated>2009-11-24T07:44:04Z</updated>
	<author>
		<name>Michael Meskes-3</name>
	</author>
	<content type="html">On Sat, Nov 21, 2009 at 12:49:33PM -0800, Mark Richardson wrote:
&lt;br&gt;&amp;gt; I'm pretty sure the problem I found is related to this, but I found that ecpg
&lt;br&gt;&amp;gt; doesn't process booleans correctly- this was in a old version of postgres (I
&lt;br&gt;&amp;gt; think it was 7.4.2).  I traced it down in the code, and there is a section
&lt;br&gt;&amp;gt; that defines the values to be &amp;quot;yes&amp;quot; or &amp;quot;no&amp;quot;, but then further processing
&lt;br&gt;&amp;gt; looks for &amp;quot;true&amp;quot; or &amp;quot;false&amp;quot;, so the end result is that a boolean is ALWAYS
&lt;br&gt;&amp;gt; false, because the 2 filters don't match. &amp;nbsp; 
&lt;br&gt;&lt;br&gt;Is this a bug that you saw back then in 7 something, or a bug you still see?
&lt;br&gt;&lt;br&gt;&amp;gt; If you're interested in more detail, I have code fixes (they are at work so I'll send on Monday).
&lt;br&gt;&lt;br&gt;Please send them. I'm interested.
&lt;br&gt;&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael Meskes
&lt;br&gt;Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
&lt;br&gt;Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
&lt;br&gt;ICQ: 179140304, AIM/Yahoo/Skype: michaelmeskes, Jabber: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498237&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;meskes@...&lt;/a&gt;
&lt;br&gt;VfL Borussia! Forca Barca! Go SF 49ers! Use: Debian GNU/Linux, PostgreSQL
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498237&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ecpg---8.3--%3E-8.4-migration-tp26449452p26498237.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26460169</id>
	<title>Re: ecpg &amp; 8.3 -&gt; 8.4 migration</title>
	<published>2009-11-21T12:49:33Z</published>
	<updated>2009-11-21T12:49:33Z</updated>
	<author>
		<name>Mark Richardson</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;&lt;DIV&gt;I'm pretty sure the problem I found is related to this, but I found that ecpg doesn't process booleans correctly- this was in a old version of postgres (I think it was 7.4.2).&amp;nbsp; I traced it down in the code, and there is a section that defines the values to be &quot;yes&quot; or &quot;no&quot;, but then further processing looks for &quot;true&quot; or &quot;false&quot;, so the end result is that a boolean is ALWAYS false, because the 2 filters don't match.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If you're interested in more detail, I have code fixes (they are at work so I'll send on Monday).&lt;/DIV&gt;
&lt;DIV&gt;Mark&lt;BR&gt;&lt;BR&gt;--- On &lt;B&gt;Fri, 11/20/09, Tom Lane &lt;I&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460169&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tgl@...&lt;/a&gt;&amp;gt;&lt;/I&gt;&lt;/B&gt; wrote:&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px&quot;&gt;&lt;BR&gt;From: Tom Lane &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460169&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tgl@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Subject: Re: [INTERFACES] ecpg &amp;amp; 8.3 -&amp;gt; 8.4 migration&lt;BR&gt;To: &quot;Bosco Rama&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460169&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgres@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460169&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&lt;/a&gt;, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460169&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers@...&lt;/a&gt;, &quot;Michael Meskes&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460169&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;meskes@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Date: Friday, November 20, 2009, 5:02 PM&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;Bosco Rama &amp;lt;&lt;A href=&quot;http://us.mc533.mail.yahoo.com/mc/compose?to=postgres@boscorama.com&quot; ymailto=&quot;mailto:postgres@boscorama.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgres@...&lt;/A&gt;&amp;gt; writes:&lt;BR&gt;&amp;gt; According to the PG docs 'server' is a *non-reserved*&lt;BR&gt;&amp;gt; keyword.&amp;nbsp; Does ecpg treat it as a reserved word?&lt;BR&gt;&lt;BR&gt;Upon poking around in the ecpg sources, I discover that it has its own&lt;BR&gt;list of &quot;unreserved&quot; keywords and pays no attention whatsoever to the&lt;BR&gt;core grammar's unreserved_keyword list.&amp;nbsp; I can hardly find words to&lt;BR&gt;express my dissatisfaction with that.&amp;nbsp; The unreserved_keyword list might&lt;BR&gt;not be the single most-likely-to-change production in the core grammar,&lt;BR&gt;but it's got to be right up there in the top two or three.&amp;nbsp; This little&lt;BR&gt;shortcut means that all the work done last year to generate the ecpg&lt;BR&gt;grammar from core was practically useless --- we still have to worry&lt;BR&gt;about manually maintaining the ecpg
 grammar any time we change core.&lt;BR&gt;&lt;BR&gt;This has *got* to be fixed.&amp;nbsp; The lack of obvious feedback about keywords&lt;BR&gt;not included in any keyword list means that manual maintenance is&lt;BR&gt;guaranteed to fail, as indeed it's already done, per this report.&lt;BR&gt;&lt;BR&gt;&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-interfaces mailing list (&lt;A href=&quot;http://us.mc533.mail.yahoo.com/mc/compose?to=pgsql-interfaces@postgresql.org&quot; ymailto=&quot;mailto:pgsql-interfaces@postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ecpg---8.3--%3E-8.4-migration-tp26449452p26460169.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459884</id>
	<title>Re: ecpg &amp; 8.3 -&gt; 8.4 migration</title>
	<published>2009-11-21T12:18:33Z</published>
	<updated>2009-11-21T12:18:33Z</updated>
	<author>
		<name>Michael Meskes-3</name>
	</author>
	<content type="html">On Fri, Nov 20, 2009 at 07:02:11PM -0500, Tom Lane wrote:
&lt;br&gt;&amp;gt; Upon poking around in the ecpg sources, I discover that it has its own
&lt;br&gt;&amp;gt; list of &amp;quot;unreserved&amp;quot; keywords and pays no attention whatsoever to the
&lt;br&gt;&amp;gt; core grammar's unreserved_keyword list. &amp;nbsp;I can hardly find words to
&lt;br&gt;&amp;gt; express my dissatisfaction with that. &amp;nbsp;The unreserved_keyword list might
&lt;br&gt;&lt;br&gt;I cannot agree more. Sorry about that, it seems this one got forgotten. I
&lt;br&gt;wasn't aware of this blunder.
&lt;br&gt;&lt;br&gt;Thanks for fixing it Tom.
&lt;br&gt;&lt;br&gt;Michael
&lt;br&gt;-- 
&lt;br&gt;Michael Meskes
&lt;br&gt;Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
&lt;br&gt;Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
&lt;br&gt;ICQ: 179140304, AIM/Yahoo/Skype: michaelmeskes, Jabber: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459884&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;meskes@...&lt;/a&gt;
&lt;br&gt;VfL Borussia! Forca Barca! Go SF 49ers! Use: Debian GNU/Linux, PostgreSQL
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459884&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ecpg---8.3--%3E-8.4-migration-tp26449452p26459884.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26452237</id>
	<title>Re: ecpg &amp; 8.3 -&gt; 8.4 migration</title>
	<published>2009-11-20T16:02:11Z</published>
	<updated>2009-11-20T16:02:11Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Bosco Rama &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26452237&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgres@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; According to the PG docs 'server' is a *non-reserved*
&lt;br&gt;&amp;gt; keyword. &amp;nbsp;Does ecpg treat it as a reserved word?
&lt;br&gt;&lt;br&gt;Upon poking around in the ecpg sources, I discover that it has its own
&lt;br&gt;list of &amp;quot;unreserved&amp;quot; keywords and pays no attention whatsoever to the
&lt;br&gt;core grammar's unreserved_keyword list. &amp;nbsp;I can hardly find words to
&lt;br&gt;express my dissatisfaction with that. &amp;nbsp;The unreserved_keyword list might
&lt;br&gt;not be the single most-likely-to-change production in the core grammar,
&lt;br&gt;but it's got to be right up there in the top two or three. &amp;nbsp;This little
&lt;br&gt;shortcut means that all the work done last year to generate the ecpg
&lt;br&gt;grammar from core was practically useless --- we still have to worry
&lt;br&gt;about manually maintaining the ecpg grammar any time we change core.
&lt;br&gt;&lt;br&gt;This has *got* to be fixed. &amp;nbsp;The lack of obvious feedback about keywords
&lt;br&gt;not included in any keyword list means that manual maintenance is
&lt;br&gt;guaranteed to fail, as indeed it's already done, per this report.
&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-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26452237&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ecpg---8.3--%3E-8.4-migration-tp26449452p26452237.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26449452</id>
	<title>ecpg &amp; 8.3 -&gt; 8.4 migration</title>
	<published>2009-11-20T12:02:32Z</published>
	<updated>2009-11-20T12:02:32Z</updated>
	<author>
		<name>Bosco Rama</name>
	</author>
	<content type="html">Howdy folks,
&lt;br&gt;&lt;br&gt;I have an application that works just fine in PG 8.3.
&lt;br&gt;We've installed 8.4 on another machine to perform pre-
&lt;br&gt;migration testing. &amp;nbsp;When we tried to compile our ecpg
&lt;br&gt;stuff under 8.4 the first thing that caught us was an
&lt;br&gt;error stating that the column name 'server' was causing
&lt;br&gt;an error.
&lt;br&gt;&lt;br&gt;According to the PG docs 'server' is a *non-reserved*
&lt;br&gt;keyword. &amp;nbsp;Does ecpg treat it as a reserved word?
&lt;br&gt;&lt;br&gt;TIA
&lt;br&gt;&lt;br&gt;Bosco.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449452&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ecpg---8.3--%3E-8.4-migration-tp26449452p26449452.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26354605</id>
	<title>Re: Upgrading databases</title>
	<published>2009-11-14T14:42:25Z</published>
	<updated>2009-11-14T14:42:25Z</updated>
	<author>
		<name>Greg Sabino Mullane</name>
	</author>
	<content type="html">&lt;br&gt;-----BEGIN PGP SIGNED MESSAGE----- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;Hash: RIPEMD160 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Greg quoting Greg asks:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; 3. Slony. Setup a slave database, get everything in sync, then 
&lt;br&gt;&amp;gt;&amp;gt; switch over to the new database. Very minimal downtime (seconds 
&lt;br&gt;&amp;gt;&amp;gt; to minutes). Requires all tables have primary keys. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; 4. Bucardo. Similar to the steps of Slony above. More forgiving of 
&lt;br&gt;&amp;gt;&amp;gt; interruptions in the original replication event. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;gt; I've never done this process myself. I'm wondering how flexible Slony
&lt;br&gt;&amp;gt; and Bucardo are with the versions of Postgres they support. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Does the Slony version run on the new version have to match the Slony
&lt;br&gt;&amp;gt; version on the old one? Do old versions of Slony work on new versions
&lt;br&gt;&amp;gt; of Postgres? Or do you have to update the version of Slony on the old
&lt;br&gt;&amp;gt; database before you can move to a new database version because the new
&lt;br&gt;&amp;gt; database version requires a newer version of Slony?
&lt;br&gt;&lt;br&gt;ObNote: Interfaces is not really the correct mailing list for this, so I'm
&lt;br&gt;cc'ing it over to pgsql-general.
&lt;br&gt;&lt;br&gt;Yes, Slony must be the same. Older versions of Slony will not work against
&lt;br&gt;new versions of Postgres (nor will newer versions of Slony work against
&lt;br&gt;older versions of Postgres).
&lt;br&gt;&lt;br&gt;&amp;gt; I'm even less familiar with Bucardo but have the same questions there too.
&lt;br&gt;&lt;br&gt;Bucardo can connect to any Postgres 8.1 or greater. It may even work against
&lt;br&gt;older versions, but nobody has tested with versions that old that I know of.
&lt;br&gt;The source and target can be different versions of Postgres, no problem.
&lt;br&gt;Unlike Slony, there is only a single master Bucardo daemon that can live
&lt;br&gt;anywhere, even a box that is not the master or slave, as long as it can
&lt;br&gt;talk to both.
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Greg Sabino Mullane &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26354605&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/a&gt;
&lt;br&gt;End Point Corporation
&lt;br&gt;PGP Key: 0x14964AC8 200911141738
&lt;br&gt;&lt;a href=&quot;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&lt;/a&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;iEYEAREDAAYFAkr/MiEACgkQvJuQZxSWSsgGcQCfVCr0jIciY5b9N4OljPn61cMo
&lt;br&gt;BoEAn03wsZ5EDrqZ2WRZIOPsAa/nXsk0
&lt;br&gt;=L94s
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26354605&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Upgrading-databases-tp26306364p26354605.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26353014</id>
	<title>Re: Upgrading databases</title>
	<published>2009-11-14T11:20:05Z</published>
	<updated>2009-11-14T11:20:05Z</updated>
	<author>
		<name>Mark Richardson</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;&lt;DIV&gt;I didn't actually run Sloany, so their may be some better people to ask.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;However, the versions of Sloany depend on different versions of postgres - so if you use the latest version of Postgres, then you'll need the latest version of Sloany.&amp;nbsp; From what I could tell, you run Sloany on your master (which ever database you want to propogate - probably an old database) and it updates/populates the slaves (the new database).&amp;nbsp; So you'll have to get an older version os Sloany to do this.&amp;nbsp; Again, I never ran it so take my advice for what it's worth.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;BR&gt;--- On &lt;B&gt;Sat, 11/14/09, Greg Stark &lt;I&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26353014&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gsstark@...&lt;/a&gt;&amp;gt;&lt;/I&gt;&lt;/B&gt; wrote:&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px&quot;&gt;&lt;BR&gt;From: Greg Stark &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26353014&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gsstark@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Subject: Re: Upgrading databases&lt;BR&gt;To: &quot;Greg Sabino Mullane&quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26353014&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26353014&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&lt;/a&gt;, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26353014&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markmapo@...&lt;/a&gt;&lt;BR&gt;Date: Saturday, November 14, 2009, 11:48 AM&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;On Sat, Nov 14, 2009 at 3:28 PM, Greg Sabino Mullane &amp;lt;&lt;A href=&quot;http://us.mc533.mail.yahoo.com/mc/compose?to=greg@turnstep.com&quot; ymailto=&quot;mailto:greg@turnstep.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/A&gt;&amp;gt; wrote:&lt;BR&gt;&amp;gt; 3. Slony. Setup a slave database, get everything in sync, then switch over to the&lt;BR&gt;&amp;gt; new database. Very minimal downtime (seconds to minutes). Requires all tables&lt;BR&gt;&amp;gt; have primary keys.&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt; 4. Bucardo. Similar to the steps of Slony above. More forgiving of interruptions&lt;BR&gt;&amp;gt; in the original replication event.&lt;BR&gt;&lt;BR&gt;I've never done this process myself. I'm wondering how flexible Slony&lt;BR&gt;and Bucardo are with the versions of Postgres they support.&lt;BR&gt;&lt;BR&gt;Does the Slony version run on the new version have to match the Slony&lt;BR&gt;version on the old one? Do old versions of Slony work on new versions&lt;BR&gt;of Postgres? Or do you have to update the version of Slony on the old&lt;BR&gt;database before you can move to a new
 database version because the new&lt;BR&gt;database version requires a newer version of Slony?&lt;BR&gt;&lt;BR&gt;I'm even less familiar with Bucardo but have the same questions there too.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;-- &lt;BR&gt;greg&lt;BR&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Upgrading-databases-tp26306364p26353014.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26352737</id>
	<title>Re: Upgrading databases</title>
	<published>2009-11-14T10:48:29Z</published>
	<updated>2009-11-14T10:48:29Z</updated>
	<author>
		<name>Greg Stark-5</name>
	</author>
	<content type="html">On Sat, Nov 14, 2009 at 3:28 PM, Greg Sabino Mullane &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26352737&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 3. Slony. Setup a slave database, get everything in sync, then switch over to the
&lt;br&gt;&amp;gt; new database. Very minimal downtime (seconds to minutes). Requires all tables
&lt;br&gt;&amp;gt; have primary keys.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4. Bucardo. Similar to the steps of Slony above. More forgiving of interruptions
&lt;br&gt;&amp;gt; in the original replication event.
&lt;br&gt;&lt;br&gt;I've never done this process myself. I'm wondering how flexible Slony
&lt;br&gt;and Bucardo are with the versions of Postgres they support.
&lt;br&gt;&lt;br&gt;Does the Slony version run on the new version have to match the Slony
&lt;br&gt;version on the old one? Do old versions of Slony work on new versions
&lt;br&gt;of Postgres? Or do you have to update the version of Slony on the old
&lt;br&gt;database before you can move to a new database version because the new
&lt;br&gt;database version requires a newer version of Slony?
&lt;br&gt;&lt;br&gt;I'm even less familiar with Bucardo but have the same questions there too.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;greg
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26352737&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Upgrading-databases-tp26306364p26352737.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26350944</id>
	<title>Re: Upgrading databases</title>
	<published>2009-11-14T07:28:55Z</published>
	<updated>2009-11-14T07:28:55Z</updated>
	<author>
		<name>Greg Sabino Mullane</name>
	</author>
	<content type="html">&lt;br&gt;-----BEGIN PGP SIGNED MESSAGE----- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;Hash: RIPEMD160 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I have a 8.2.4 database and I installed 8.3.7 and tried using the 
&lt;br&gt;&amp;gt; same /pgsql/data/base directory and got an error about incompatiblity.
&lt;br&gt;...
&lt;br&gt;&amp;gt; Is there a conversion routine to change the files themselves? I know I can dump
&lt;br&gt;&amp;gt; and reload - but that takes large disk space and time. Any other way around?
&lt;br&gt;&lt;br&gt;There are basically four ways to upgrade:
&lt;br&gt;&lt;br&gt;1. Dump and restore. As you mention, it is slow and non-concurrent. Very large
&lt;br&gt;block of client downtime.
&lt;br&gt;&lt;br&gt;2. pg_migrator. Conversion of your current system to the new one. Much faster
&lt;br&gt;than dump and restore, but only works for certain versions and has some minor
&lt;br&gt;caveats. Requires medium client downtime.
&lt;br&gt;&lt;br&gt;3. Slony. Setup a slave database, get everything in sync, then switch over to the
&lt;br&gt;new database. Very minimal downtime (seconds to minutes). Requires all tables
&lt;br&gt;have primary keys.
&lt;br&gt;&lt;br&gt;4. Bucardo. Similar to the steps of Slony above. More forgiving of interruptions
&lt;br&gt;in the original replication event.
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Greg Sabino Mullane &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26350944&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/a&gt;
&lt;br&gt;End Point Corporation
&lt;br&gt;PGP Key: 0x14964AC8 200911141026
&lt;br&gt;&lt;a href=&quot;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&lt;/a&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;iEYEAREDAAYFAkr+zJcACgkQvJuQZxSWSsgd+gCfbqJX/XQ4+tGSHCC7rE6D/Q+j
&lt;br&gt;f/kAoJpdva3ylipMmDF45jIsmqC8TTR+
&lt;br&gt;=ZlaQ
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26350944&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Upgrading-databases-tp26306364p26350944.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26306803</id>
	<title>Re: Upgrading databases</title>
	<published>2009-11-11T10:58:43Z</published>
	<updated>2009-11-11T10:58:43Z</updated>
	<author>
		<name>Bosco Rama</name>
	</author>
	<content type="html">Mark Richardson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sorry if this is in the wrong list, but this is the closest I could find...
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I have a 8.2.4 database and I installed 8.3.7 and tried using the same
&lt;br&gt;&amp;gt; /pgsql/data/base directory and got an error about incompatiblity.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; The database currently has billions of records but it's sparsely populated.
&lt;br&gt;&amp;gt; It took about 4 months to just populate the original database and I REALLY
&lt;br&gt;&amp;gt; don't want to do that again.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Is there a conversion routine to change the files themselves? I know I can
&lt;br&gt;&amp;gt; dump and reload - but that takes large disk space and time. &amp;nbsp;Any other way
&lt;br&gt;&amp;gt; around?
&lt;/div&gt;&lt;br&gt;There is no 'in-situ' DB upgrade between major updates from what I can
&lt;br&gt;tell. &amp;nbsp;There is, however, an alternative to the 'dump to disk' approach
&lt;br&gt;which is to pipe the dump from the old DB to the new DB as outlined in
&lt;br&gt;the migration guide here:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://www.postgresql.org/docs/8.3/static/migration.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/8.3/static/migration.html&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;HTH.
&lt;br&gt;&lt;br&gt;Bosc.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26306803&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Upgrading-databases-tp26306364p26306803.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26306552</id>
	<title>Re: Upgrading databases</title>
	<published>2009-11-11T10:51:42Z</published>
	<updated>2009-11-11T10:51:42Z</updated>
	<author>
		<name>Kevin Kempter-4</name>
	</author>
	<content type="html">On Wednesday 11 November 2009 11:38:31 Mark Richardson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sorry if this is in the wrong list, but this is the closest I could find...
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I have a 8.2.4 database and I installed 8.3.7 and tried using the same
&lt;br&gt;&amp;gt; &amp;nbsp;/pgsql/data/base directory and got an error about incompatiblity. 
&lt;br&gt;&amp;gt; The database currently has billions of records but it's sparsely
&lt;br&gt;&amp;gt; &amp;nbsp;populated. &amp;nbsp;It took about 4 months to just populate the original database
&lt;br&gt;&amp;gt; &amp;nbsp;and I REALLY don't want to do that again. 
&lt;br&gt;&amp;gt; Is there a conversion routine to change the files themselves? I know I can
&lt;br&gt;&amp;gt; &amp;nbsp;dump and reload - but that takes large disk space and time. &amp;nbsp;Any other way
&lt;br&gt;&amp;gt; &amp;nbsp;around? 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Mark
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;It's common to use SLONY to do this:
&lt;br&gt;&lt;br&gt;1) install 8.3.7 and create a DDL only dump of the 8.2.4 db and install it 
&lt;br&gt;into the new 8.3.7 system data dir (so maybe the 8.2 cluster lived in 
&lt;br&gt;/var/lib/pgsql/data and the 8.3 cluster lives in /var/lib/pgsql/8.3/data)
&lt;br&gt;&lt;br&gt;2) setup SLONY and replicate all tables and sequences from the 8.2 cluster 
&lt;br&gt;into the 8.3 cluster
&lt;br&gt;&lt;br&gt;3) once the db's are completely in sync, remove slony , &amp;nbsp;drop (or at least 
&lt;br&gt;shut down) the 8.2 cluster, and move the users to the new cluster.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26306552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Upgrading-databases-tp26306364p26306552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26306364</id>
	<title>Upgrading databases</title>
	<published>2009-11-11T10:38:31Z</published>
	<updated>2009-11-11T10:38:31Z</updated>
	<author>
		<name>Mark Richardson</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;&lt;DIV&gt;Sorry if this is in the wrong list, but this is the closest I could find...&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have a 8.2.4 database and I installed 8.3.7 and tried using the same /pgsql/data/base directory and got an error about incompatiblity.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The database currently has billions of records but it's sparsely populated.&amp;nbsp; It took about 4 months to just populate the original database and I REALLY don't want to do that again.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Is there a conversion routine to change the files themselves? I know I can dump and reload - but that takes large disk space and time.&amp;nbsp; Any other way around?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks,&lt;/DIV&gt;
&lt;DIV&gt;Mark&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;



</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Upgrading-databases-tp26306364p26306364.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26023659</id>
	<title>Re: Implementing Frontend/Backend Protocol</title>
	<published>2009-10-23T02:25:44Z</published>
	<updated>2009-10-23T02:25:44Z</updated>
	<author>
		<name>Raimon Fernandez</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;&lt;br&gt;We're investigating again the idea of creating a directly connection &amp;nbsp;
&lt;br&gt;between our app and postgresql, using TCP/IP.
&lt;br&gt;&lt;br&gt;I found some examples in src/interfaces/libpq but they are in C, and &amp;nbsp;
&lt;br&gt;also found interesting the ones from Lisp.
&lt;br&gt;&lt;br&gt;But I can't figure it out almost nothing ...
&lt;br&gt;&lt;br&gt;:-)
&lt;br&gt;&lt;br&gt;So, maybe a practical example would be better:
&lt;br&gt;&lt;br&gt;I can start a connection, but I'm getting an error when I send the &amp;nbsp;
&lt;br&gt;start up sequence.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;StartupMessage (F)
&lt;br&gt;Int32
&lt;br&gt;Length of message contents in bytes, including self.
&lt;br&gt;&lt;br&gt;** The total length including the total string =&amp;gt; 33
&lt;br&gt;&lt;br&gt;&lt;br&gt;Int32(196608)
&lt;br&gt;The protocol version number. The most signiﬁcant 16 bits are the &amp;nbsp;
&lt;br&gt;major version number (3
&lt;br&gt;for the protocol described here). The least signiﬁcant 16 bits are &amp;nbsp;
&lt;br&gt;the minor version number
&lt;br&gt;(0 for the protocol described here).
&lt;br&gt;&lt;br&gt;** 300
&lt;br&gt;&lt;br&gt;The protocol version number is followed by one or more pairs of &amp;nbsp;
&lt;br&gt;parameter name and value
&lt;br&gt;strings. A zero byte is required as a terminator after the last name/ 
&lt;br&gt;value pair. Parameters can
&lt;br&gt;appear in any order. user is required, others are optional. Each &amp;nbsp;
&lt;br&gt;parameter is speciﬁed as:
&lt;br&gt;String
&lt;br&gt;The parameter name. Currently recognized names are:
&lt;br&gt;user
&lt;br&gt;The database user name to connect as. Required; there is no default.
&lt;br&gt;database
&lt;br&gt;The database to connect to. Defaults to the user name.
&lt;br&gt;options
&lt;br&gt;Command-line arguments for the backend. (This is deprecated in favor &amp;nbsp;
&lt;br&gt;of setting indi-
&lt;br&gt;vidual run-time parameters.)
&lt;br&gt;In addition to the above, any run-time parameter that can be set at &amp;nbsp;
&lt;br&gt;backend start time might
&lt;br&gt;be listed. Such settings will be applied during backend start (after &amp;nbsp;
&lt;br&gt;parsing the command-line
&lt;br&gt;options if any). The values will act as session defaults.
&lt;br&gt;String
&lt;br&gt;The parameter value.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Ok, I can't see how I have to separate the name/value, maybe with a &amp;nbsp;
&lt;br&gt;slash / ?
&lt;br&gt;&lt;br&gt;And how I have to separate the next name/value ?
&lt;br&gt;&lt;br&gt;I understand that I have to add a byte 0 at the end of the last name/ 
&lt;br&gt;value but not between them ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;user/postgresdatabase/scann0
&lt;br&gt;&lt;br&gt;&lt;br&gt;this is what I send:
&lt;br&gt;&lt;br&gt;33300user/postgresdatabase/scann0
&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;&lt;br&gt;&lt;br&gt;r.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 19/04/2007, at 4:03, John DeSoi wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; It takes a bit of work to implement, but it is not too difficult. &amp;nbsp;
&lt;br&gt;&amp;gt; What is your target implementation language?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is source library for Lisp:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://common-lisp.net/project/postmodern/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://common-lisp.net/project/postmodern/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; John
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Apr 17, 2007, at 5:22 AM, Raimon Fernandez wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; We want to implement, or at least, investigate how difficult will &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; be to talk directly with PostgreSQL via TCP/IP.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; We have the original documentation, and in chapter 43 there is some &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; info.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Do you know where can we find examples (code) to start the project ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; We found some but where not related to TCP/IP.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; John DeSoi, Ph.D.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://pgedit.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgedit.com/&lt;/a&gt;&lt;br&gt;&amp;gt; Power Tools for PostgreSQL
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------(end of &amp;nbsp;
&lt;br&gt;&amp;gt; broadcast)---------------------------
&lt;br&gt;&amp;gt; TIP 9: In versions below 8.0, the planner will ignore your desire to
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;choose an index scan if your joining column's datatypes do not
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;match
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26023659&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Implementing-Frontend-Backend-Protocol-tp10032434p26023659.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25310891</id>
	<title>Re: problem on test perlu trigger function.</title>
	<published>2009-09-05T10:53:13Z</published>
	<updated>2009-09-05T10:53:13Z</updated>
	<author>
		<name>Piaff33z-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
&lt;span class=&quot;moz-smiley-s6&quot;&gt;&lt;span&gt; :-[&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt; I am stupid,
it is obvious !&lt;br&gt;
&lt;br&gt;
Really you are right &lt;span class=&quot;moz-smiley-s5&quot;&gt;&lt;span&gt; :-D &lt;/span&gt;&lt;/span&gt;,
script is thrown with the rights of account
postgres and it does not have the rights to browse this directory ...&lt;br&gt;
Your proposal of the &quot;mkdir -p&quot; seems to me the better solution !&lt;br&gt;
&lt;br&gt;
Still thank you for this analysis !&lt;br&gt;
&lt;br&gt;
However, i have an other problem and I am going to open new thread. And
that there seems to me a little more crooked...&lt;br&gt;
&lt;br&gt;
Vic &amp;nbsp;&amp;nbsp;&lt;span class=&quot;moz-smiley-s1&quot;&gt;&lt;span&gt; :-) &lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
Greg Sabino Mullane a &amp;eacute;crit&amp;nbsp;:
&lt;blockquote cite=&quot;mid:6f8c66fd5a3c12667eff14d54a398d70@biglumber.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;if (! -d  &quot;$PATHBASE/$_TD-&amp;gt;{new}{categorie}&quot;) {
         `sudo -u http mkdir &quot;$PATHBASE/$_TD-&amp;gt;{new}{categorie}&quot;`;
      }
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Sudo function is performed in spite of the presence of directory ! It as
if  &quot;-d&quot; serve has nothing...

Anybody knows why?
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
Because the directory is created and owned by the http user, but is not
visible to the process that runs this function (postgres). One solution
would be to skip the test and call mkdir -p. Another would be to set
the permissions so that the postgres user can see the directories
inside of $PATHBASE.

- --
Greg Sabino Mullane &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25310891&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/a&gt;
End Point Corporation
PGP Key: 0x14964AC8 200909050729
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&lt;/a&gt;
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAkqiS88ACgkQvJuQZxSWSshetgCbB3ao2kGembYXswSu7fQ77NFH
4lEAoMfBRsbbNMg4g8wSgIJ6iE+mhFHC
=esTM
-----END PGP SIGNATURE-----



  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-on-test-perlu-trigger-function.-tp25305202p25310891.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25307456</id>
	<title>Re: problem on test perlu trigger function.</title>
	<published>2009-09-05T04:30:27Z</published>
	<updated>2009-09-05T04:30:27Z</updated>
	<author>
		<name>Greg Sabino Mullane</name>
	</author>
	<content type="html">&lt;br&gt;-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: RIPEMD160
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; if (! -d &amp;nbsp;&amp;quot;$PATHBASE/$_TD-&amp;gt;{new}{categorie}&amp;quot;) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;`sudo -u http mkdir &amp;quot;$PATHBASE/$_TD-&amp;gt;{new}{categorie}&amp;quot;`;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;gt; Sudo function is performed in spite of the presence of directory ! It as
&lt;br&gt;&amp;gt; if &amp;nbsp;&amp;quot;-d&amp;quot; serve has nothing...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anybody knows why?
&lt;br&gt;&lt;br&gt;Because the directory is created and owned by the http user, but is not
&lt;br&gt;visible to the process that runs this function (postgres). One solution
&lt;br&gt;would be to skip the test and call mkdir -p. Another would be to set
&lt;br&gt;the permissions so that the postgres user can see the directories
&lt;br&gt;inside of $PATHBASE.
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Greg Sabino Mullane &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25307456&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/a&gt;
&lt;br&gt;End Point Corporation
&lt;br&gt;PGP Key: 0x14964AC8 200909050729
&lt;br&gt;&lt;a href=&quot;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&lt;/a&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;iEYEAREDAAYFAkqiS88ACgkQvJuQZxSWSshetgCbB3ao2kGembYXswSu7fQ77NFH
&lt;br&gt;4lEAoMfBRsbbNMg4g8wSgIJ6iE+mhFHC
&lt;br&gt;=esTM
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25307456&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-on-test-perlu-trigger-function.-tp25305202p25307456.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25305202</id>
	<title>problem on test perlu trigger function.</title>
	<published>2009-09-04T22:18:13Z</published>
	<updated>2009-09-04T22:18:13Z</updated>
	<author>
		<name>Piaff33z-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I have a problem on a test directory on my trigger function.
&lt;br&gt;For information, i use a 8.0.21 version of perl.
&lt;br&gt;&lt;br&gt;To make things simple, i make a perlu function trigger on when i modify 
&lt;br&gt;a row, i try to test the existence of a directory. I have the impression 
&lt;br&gt;that this test
&lt;br&gt;does not work :-(
&lt;br&gt;&lt;br&gt;my function...
&lt;br&gt;&lt;br&gt;..
&lt;br&gt;if (! -d &amp;nbsp;&amp;quot;$PATHBASE/$_TD-&amp;gt;{new}{categorie}&amp;quot;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; `sudo -u http mkdir &amp;quot;$PATHBASE/$_TD-&amp;gt;{new}{categorie}&amp;quot;`;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;Sudo function is performed in spite of the presence of directory ! It as 
&lt;br&gt;if &amp;nbsp;&amp;quot;-d&amp;quot; serve has nothing...
&lt;br&gt;&lt;br&gt;Anybody knows why?
&lt;br&gt;&lt;br&gt;Vic
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25305202&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-on-test-perlu-trigger-function.-tp25305202p25305202.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24703801</id>
	<title>Re: SERIOUS BUG IN DBD::Pg 2.14.0 for bigint types</title>
	<published>2009-07-28T10:06:49Z</published>
	<updated>2009-07-28T10:06:49Z</updated>
	<author>
		<name>Greg Sabino Mullane</name>
	</author>
	<content type="html">&lt;br&gt;-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: RIPEMD160
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; You can't store a large 8 byte int value into an 8 byte floating point
&lt;br&gt;&amp;gt; value without loss of precision. (See appended explanation.)
&lt;br&gt;...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's a fix:
&lt;br&gt;&lt;br&gt;Thank you very much, Tim. 2.14.1 with the fix has been uploaded to CPAN.
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Greg Sabino Mullane &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24703801&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/a&gt;
&lt;br&gt;End Point Corporation
&lt;br&gt;PGP Key: 0x14964AC8 200907281306
&lt;br&gt;&lt;a href=&quot;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&lt;/a&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;iEYEAREDAAYFAkpvMBUACgkQvJuQZxSWSsgQQACfTvQKFdgZWP1vJ2K+yupMx7zs
&lt;br&gt;zHsAn1lxySXKXpn7UfzNUbz6C4NyAndT
&lt;br&gt;=BR3f
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24703801&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SERIOUS-BUG-IN-DBD%3A%3APg-2.14.0-for-bigint-types-tp24703559p24703801.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24703559</id>
	<title>SERIOUS BUG IN DBD::Pg 2.14.0 for bigint types</title>
	<published>2009-07-28T09:53:05Z</published>
	<updated>2009-07-28T09:53:05Z</updated>
	<author>
		<name>Tim Bunce</name>
	</author>
	<content type="html">On Tue, Jul 28, 2009 at 02:44:55AM -0000, Greg Sabino Mullane wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Version 2.14.0 of DBD::Pg has been released and is available on CPAN. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2.14.0 Released July 27, 2009 (subversion r13130)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; - Return ints and bools-cast-to-number from the db as true Perlish numbers. &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (CPAN bug #47619) [GSM] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;The code now stores bigint values (8 bytes long) in a floating point
&lt;br&gt;variable (NV). &amp;nbsp;Most perl's are configured with the NV type being a
&lt;br&gt;simple C 'double' which is typically 8 bytes:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; $ perl -V:'^nv(size|type)'
&lt;br&gt;&amp;nbsp; &amp;nbsp; nvsize='8';
&lt;br&gt;&amp;nbsp; &amp;nbsp; nvtype='double';
&lt;br&gt;&lt;br&gt;You can't store a large 8 byte int value into an 8 byte floating point
&lt;br&gt;value without loss of precision. (See appended explanation.)
&lt;br&gt;&lt;br&gt;To be completely clear about this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DBD::Pg 2.14.0 may *SILENTLY ALTER LARGE BIGINT VALUES*
&lt;br&gt;&lt;br&gt;Here's a fix:
&lt;br&gt;&lt;br&gt;--- dbdimp.c.orig	2009-07-28 09:46:21.000000000 -0700
&lt;br&gt;+++ dbdimp.c	2009-07-28 09:46:35.000000000 -0700
&lt;br&gt;@@ -3381,9 +3381,6 @@
&lt;br&gt;&amp;nbsp;					case PG_INT2:
&lt;br&gt;&amp;nbsp;						sv_setiv(sv, atol((char *)value));
&lt;br&gt;&amp;nbsp;						break;
&lt;br&gt;-					case PG_INT8:
&lt;br&gt;-						sv_setnv(sv, atoll((char *)value));
&lt;br&gt;-						break;
&lt;br&gt;&amp;nbsp;					default:
&lt;br&gt;&amp;nbsp;						sv_setpvn(sv, (char *)value, value_len);
&lt;br&gt;&amp;nbsp;					}
&lt;br&gt;&lt;br&gt;Tim.
&lt;br&gt;&lt;br&gt;&lt;br&gt;=head3 Perl Floating Point Values
&lt;br&gt;&lt;br&gt;Technically the term &amp;quot;floating point&amp;quot; refers to a number representation
&lt;br&gt;consisting of a I&amp;lt;mantissa&amp;gt;, C&amp;lt;M&amp;gt;, and an I&amp;lt;exponent&amp;gt;, C&amp;lt;E&amp;gt;. &amp;nbsp;The number
&lt;br&gt;represented is the value of C&amp;lt;M ** E&amp;gt;. &amp;nbsp;But what does that mean?
&lt;br&gt;&lt;br&gt;Basically, a floating point value is represented internally by two
&lt;br&gt;values. &amp;nbsp;One value, the mantissa, holds a binary I&amp;lt;approximation&amp;gt; of the
&lt;br&gt;significant digits and another value, the exponent, is used to indicate
&lt;br&gt;where the decimal point should be. It may be within the significant
&lt;br&gt;digits but it may also be way off to the right (positive mantissa) or
&lt;br&gt;left (negative mantissa).
&lt;br&gt;&lt;br&gt;Floating point values are typically stored in 64 bits or sometimes 96
&lt;br&gt;bits (that's 8, or 12 bytes) depending on how your perl was configured.
&lt;br&gt;You can check the size used in your perl by running C&amp;lt;perl -V&amp;gt; and
&lt;br&gt;looking for C&amp;lt;nvsize=&amp;gt; in the output. &amp;nbsp;The 64 bit floats are known as
&lt;br&gt;I&amp;lt;doubles&amp;gt; and have approximately 15 digits of precision between 1e-307
&lt;br&gt;to 1e+308, and the 96 bit floats are known as I&amp;lt;long doubles&amp;gt; and have
&lt;br&gt;approximately 18 digits of precision between 1e-4931 to 1e+4932. Some
&lt;br&gt;systems support 128 bit I&amp;lt;quad doubles&amp;gt; with even greater precision and
&lt;br&gt;scale.
&lt;br&gt;&lt;br&gt;It's becoming more common for perl to be configured with 64 bit
&lt;br&gt;integers but still using 64 bit floating point values. But a 64 bit
&lt;br&gt;integer has 19 digits of precision whereas a 64 bit floating point
&lt;br&gt;value only has approximately 18. &amp;nbsp;This is important to know because it
&lt;br&gt;means that a large integer may loose precision if it's involved in a
&lt;br&gt;calculation that causes it to be converted to a floating point value
&lt;br&gt;(which is basically anything more involved that addition or subtraction
&lt;br&gt;of another integer).
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24703559&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SERIOUS-BUG-IN-DBD%3A%3APg-2.14.0-for-bigint-types-tp24703559p24703559.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24635146</id>
	<title>Re: Linker Confusion.....</title>
	<published>2009-07-23T14:39:39Z</published>
	<updated>2009-07-23T14:39:39Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Ralf Hasemann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24635146&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rhasemann@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; How does the linker know to link against libpq.5.dylib when libpq.a is &amp;nbsp;
&lt;br&gt;&amp;gt; the only lib in my project?
&lt;br&gt;&lt;br&gt;You'd be best advised to ask that on an OSX development list; it's not
&lt;br&gt;particularly a Postgres question, but a question of the behavior of the
&lt;br&gt;development tools on that platform.
&lt;br&gt;&lt;br&gt;Mind you, the above behavior is probably *good*, and I don't recommend
&lt;br&gt;you try to override it. &amp;nbsp;Statically linked libraries are a real pain
&lt;br&gt;in the neck when it comes time for a software update. &amp;nbsp;But exactly how
&lt;br&gt;the toolchain you're using finds the dynamic library, I don't know.
&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-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24635146&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Linker-Confusion.....-tp24634425p24635146.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24633757</id>
	<title>Linker Confusion.....</title>
	<published>2009-07-23T13:19:22Z</published>
	<updated>2009-07-23T13:19:22Z</updated>
	<author>
		<name>osxdeveloper</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am wirting an application that uses the libpq interface to access &amp;nbsp;
&lt;br&gt;the PostgreSQL database. My system is Mac OS X.
&lt;br&gt;&lt;br&gt;I have set up my project in Xcode and everything works fine. DB access &amp;nbsp;
&lt;br&gt;is flawless and very fast. But I often like to dig deeper into things &amp;nbsp;
&lt;br&gt;to get knowledge on how things work. What confuses me is, when I use &amp;nbsp;
&lt;br&gt;otool to inspect my executable, I get the information that my app is &amp;nbsp;
&lt;br&gt;linked against libpq.5.dylib (which is a symlink to libpq.5.1.dylib), &amp;nbsp;
&lt;br&gt;which is probably the dynamic library that does the work in &amp;nbsp;
&lt;br&gt;communicating with the database server.
&lt;br&gt;But what I don't understand: In my Xcode project, I have put libpq.a &amp;nbsp;
&lt;br&gt;(and not libpq.5.dylib!) &amp;nbsp;into the linked frameworks of my project and &amp;nbsp;
&lt;br&gt;the project is build against it.
&lt;br&gt;How does the linker know to link against libpq.5.dylib when libpq.a is &amp;nbsp;
&lt;br&gt;the only lib in my project?
&lt;br&gt;&lt;br&gt;I hope my problem description is not too confusing....
&lt;br&gt;&lt;br&gt;Thank you for any answer and thank you to the PostgreSQL team for the &amp;nbsp;
&lt;br&gt;great database! ;-)
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24633757&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Linker-Confusion.....-tp24633757p24633757.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24634425</id>
	<title>Linker Confusion.....</title>
	<published>2009-07-23T12:47:06Z</published>
	<updated>2009-07-23T12:47:06Z</updated>
	<author>
		<name>Ralf Hasemann</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am wirting an application that uses the libpq interface to access &amp;nbsp;
&lt;br&gt;the PostgreSQL database. My system is Mac OS X.
&lt;br&gt;&lt;br&gt;I have set up my project in Xcode and everything works fine. DB access &amp;nbsp;
&lt;br&gt;is flawless and very fast. But I often like to dig deeper into things &amp;nbsp;
&lt;br&gt;to get knowledge on how things work. What confuses me is, when I use &amp;nbsp;
&lt;br&gt;otool to inspect my executable, I get the information that my app is &amp;nbsp;
&lt;br&gt;linked against libpq.5.dylib (which is a symlink to libpq.5.1.dylib), &amp;nbsp;
&lt;br&gt;which is probably the dynamic library that does the work in &amp;nbsp;
&lt;br&gt;communicating with the database server.
&lt;br&gt;But what I don't understand: In my Xcode project, I have put libpq.a &amp;nbsp;
&lt;br&gt;(and not libpq.5.dylib!) &amp;nbsp;into the linked frameworks of my project and &amp;nbsp;
&lt;br&gt;the project is build against it.
&lt;br&gt;How does the linker know to link against libpq.5.dylib when libpq.a is &amp;nbsp;
&lt;br&gt;the only lib in my project?
&lt;br&gt;&lt;br&gt;I hope my problem description is not too confusing....
&lt;br&gt;&lt;br&gt;Thank you for any answer and thank you to the PostgreSQL team for the &amp;nbsp;
&lt;br&gt;great database! ;-)
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24634425&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Linker-Confusion.....-tp24634425p24634425.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23909863</id>
	<title>Re: Type OIDs</title>
	<published>2009-06-07T03:22:32Z</published>
	<updated>2009-06-07T03:22:32Z</updated>
	<author>
		<name>Florian Weimer</name>
	</author>
	<content type="html">* Tom Lane:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Florian Weimer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23909863&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt; By the way, the binary encoding would be pretty useful for BYTEA
&lt;br&gt;&amp;gt;&amp;gt; columns and parameters, but it's a pretty hefty burden for almost
&lt;br&gt;&amp;gt;&amp;gt; anything else. &amp;nbsp;Wouldn't it make sense to add a format flag which
&lt;br&gt;&amp;gt;&amp;gt; basically says &amp;quot;binary if it's BYTEA, otherwise text&amp;quot;?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is &amp;quot;easy&amp;quot; is very much in the eye of the beholder --- I would think
&lt;br&gt;&amp;gt; for instance that a lot of people would consider integer columns to be
&lt;br&gt;&amp;gt; easy enough to deal with in binary format. &amp;nbsp;ntohl() isn't much of a
&lt;br&gt;&amp;gt; burden.
&lt;/div&gt;&lt;br&gt;The documentation is silent on alignment, so I would have thought that
&lt;br&gt;a memcpy() is needed, too.
&lt;br&gt;&lt;br&gt;&amp;gt; As far as output goes, I seem to recall some discussion awhile back of a
&lt;br&gt;&amp;gt; format value that would mean &amp;quot;send &amp;lt;some list of types&amp;gt; in binary&amp;quot; where
&lt;br&gt;&amp;gt; the specific list could be set by the client. &amp;nbsp;This would seem to me to
&lt;br&gt;&amp;gt; be a lot more useful and less klugy than hard-wiring bytea as a special
&lt;br&gt;&amp;gt; case.
&lt;br&gt;&lt;br&gt;Yes, but it would be more difficult to implement, wouldn't it? &amp;nbsp;(Of
&lt;br&gt;course, it's better to implement the full-blown version from the
&lt;br&gt;beginning if it is implemented ever.)
&lt;br&gt;&lt;br&gt;&amp;gt; On the input side it's much more questionable since (as you noted)
&lt;br&gt;&amp;gt; clients don't always have a solid grasp on which parameters are
&lt;br&gt;&amp;gt; which types.
&lt;br&gt;&lt;br&gt;The input side is actually *much* *more* problematic because right
&lt;br&gt;now, I've got this string, and I pass it to PostgreSQL, and depending
&lt;br&gt;on the query, I've got to BYTEA-encode it or not. &amp;nbsp;There is no way to
&lt;br&gt;figure out if this is necessary for a particular parameter. &amp;nbsp;If I
&lt;br&gt;specify a BYTEA type for all string columns, I break type enference
&lt;br&gt;(there's no conversion or cast for BYTEA to INTEGER, for instance).
&lt;br&gt;&lt;br&gt;As a result, if you use BYTEA columns from one of the scripting
&lt;br&gt;languages, you end up with manually specificing BYTEA types. &amp;nbsp;I hate
&lt;br&gt;that, and people forget it and complain when things break.
&lt;br&gt;&lt;br&gt;In contrast, for the output side, I can look at the column type and
&lt;br&gt;decode the value if it's BYTEA. &amp;nbsp;It's just an efficiency issue. &amp;nbsp;The
&lt;br&gt;API itself isn't problematic.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23909863&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Type-OIDs-tp23857319p23909863.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23902885</id>
	<title>Re: Type OIDs</title>
	<published>2009-06-06T08:15:02Z</published>
	<updated>2009-06-06T08:15:02Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Florian Weimer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23902885&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; By the way, the binary encoding would be pretty useful for BYTEA
&lt;br&gt;&amp;gt; columns and parameters, but it's a pretty hefty burden for almost
&lt;br&gt;&amp;gt; anything else. &amp;nbsp;Wouldn't it make sense to add a format flag which
&lt;br&gt;&amp;gt; basically says &amp;quot;binary if it's BYTEA, otherwise text&amp;quot;?
&lt;br&gt;&lt;br&gt;What is &amp;quot;easy&amp;quot; is very much in the eye of the beholder --- I would think
&lt;br&gt;for instance that a lot of people would consider integer columns to be
&lt;br&gt;easy enough to deal with in binary format. &amp;nbsp;ntohl() isn't much of a
&lt;br&gt;burden.
&lt;br&gt;&lt;br&gt;As far as output goes, I seem to recall some discussion awhile back of a
&lt;br&gt;format value that would mean &amp;quot;send &amp;lt;some list of types&amp;gt; in binary&amp;quot; where
&lt;br&gt;the specific list could be set by the client. &amp;nbsp;This would seem to me to
&lt;br&gt;be a lot more useful and less klugy than hard-wiring bytea as a special
&lt;br&gt;case. &amp;nbsp;On the input side it's much more questionable since (as you
&lt;br&gt;noted) clients don't always have a solid grasp on which parameters
&lt;br&gt;are which types.
&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-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23902885&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Type-OIDs-tp23857319p23902885.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23900567</id>
	<title>Re: Type OIDs</title>
	<published>2009-06-06T03:32:07Z</published>
	<updated>2009-06-06T03:32:07Z</updated>
	<author>
		<name>Florian Weimer</name>
	</author>
	<content type="html">* Tom Lane:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Florian Weimer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23900567&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt; Can I embed the types I'm interested in into my program, or should I
&lt;br&gt;&amp;gt;&amp;gt; query the server at least once per connection to get the mapping? &amp;nbsp;I'm
&lt;br&gt;&amp;gt;&amp;gt; interested in types such as INTEGER, TEXT, BYTEA, etc. &amp;nbsp;No user
&lt;br&gt;&amp;gt;&amp;gt; defined types, and nothing fancy. &amp;nbsp;Ultra-long-term portability isn't
&lt;br&gt;&amp;gt;&amp;gt; required, either.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Well, the type OIDs of the standard built-in types haven't changed in
&lt;br&gt;&amp;gt; at least ten years, but that doesn't mean we won't change 'em in the
&lt;br&gt;&amp;gt; future. &amp;nbsp;I'd advise at least using the #define's from pg_type.h rather
&lt;br&gt;&amp;gt; than writing actual numeric constants.
&lt;/div&gt;&lt;br&gt;Okay, will do that. Thanks.
&lt;br&gt;&lt;br&gt;By the way, the binary encoding would be pretty useful for BYTEA
&lt;br&gt;columns and parameters, but it's a pretty hefty burden for almost
&lt;br&gt;anything else. &amp;nbsp;Wouldn't it make sense to add a format flag which
&lt;br&gt;basically says &amp;quot;binary if it's BYTEA, otherwise text&amp;quot;? &amp;nbsp;I don't think
&lt;br&gt;many host languages make a strong distinction between BYTEA and TEXT
&lt;br&gt;types (except those which use UTF-16 and expose that to the user, like
&lt;br&gt;Java and C#). &amp;nbsp;As a result, it is difficult to specify the right types
&lt;br&gt;when talking to the server. &amp;nbsp;You don't want to label a column as BYTEA
&lt;br&gt;overeagerly because it will break type inference on the SQL side (I
&lt;br&gt;think).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23900567&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Type-OIDs-tp23857319p23900567.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23862735</id>
	<title>Re: Type OIDs</title>
	<published>2009-06-03T18:18:22Z</published>
	<updated>2009-06-03T18:18:22Z</updated>
	<author>
		<name>Joe Conway</name>
	</author>
	<content type="html">Tom Lane wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Florian Weimer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23862735&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt; Can I embed the types I'm interested in into my program, or should I
&lt;br&gt;&amp;gt;&amp;gt; query the server at least once per connection to get the mapping? &amp;nbsp;I'm
&lt;br&gt;&amp;gt;&amp;gt; interested in types such as INTEGER, TEXT, BYTEA, etc. &amp;nbsp;No user
&lt;br&gt;&amp;gt;&amp;gt; defined types, and nothing fancy. &amp;nbsp;Ultra-long-term portability isn't
&lt;br&gt;&amp;gt;&amp;gt; required, either.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, the type OIDs of the standard built-in types haven't changed in
&lt;br&gt;&amp;gt; at least ten years, but that doesn't mean we won't change 'em in the
&lt;br&gt;&amp;gt; future. &amp;nbsp;I'd advise at least using the #define's from pg_type.h rather
&lt;br&gt;&amp;gt; than writing actual numeric constants.
&lt;/div&gt;&lt;br&gt;I'll second that. It's exactly what I've been doing in PL/R for several 
&lt;br&gt;years now.
&lt;br&gt;&lt;br&gt;Joe
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23862735&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Type-OIDs-tp23857319p23862735.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23857780</id>
	<title>Re: Type OIDs</title>
	<published>2009-06-03T12:26:28Z</published>
	<updated>2009-06-03T12:26:28Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Florian Weimer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23857780&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; Can I embed the types I'm interested in into my program, or should I
&lt;br&gt;&amp;gt; query the server at least once per connection to get the mapping? &amp;nbsp;I'm
&lt;br&gt;&amp;gt; interested in types such as INTEGER, TEXT, BYTEA, etc. &amp;nbsp;No user
&lt;br&gt;&amp;gt; defined types, and nothing fancy. &amp;nbsp;Ultra-long-term portability isn't
&lt;br&gt;&amp;gt; required, either.
&lt;br&gt;&lt;br&gt;Well, the type OIDs of the standard built-in types haven't changed in
&lt;br&gt;at least ten years, but that doesn't mean we won't change 'em in the
&lt;br&gt;future. &amp;nbsp;I'd advise at least using the #define's from pg_type.h rather
&lt;br&gt;than writing actual numeric constants.
&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-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23857780&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Type-OIDs-tp23857319p23857780.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23857319</id>
	<title>Type OIDs</title>
	<published>2009-06-03T11:45:16Z</published>
	<updated>2009-06-03T11:45:16Z</updated>
	<author>
		<name>Florian Weimer</name>
	</author>
	<content type="html">I'd like to use type information in a query result to convert its
&lt;br&gt;elements to more appropriate types if necessary.
&lt;br&gt;&lt;br&gt;Can I embed the types I'm interested in into my program, or should I
&lt;br&gt;query the server at least once per connection to get the mapping? &amp;nbsp;I'm
&lt;br&gt;interested in types such as INTEGER, TEXT, BYTEA, etc. &amp;nbsp;No user
&lt;br&gt;defined types, and nothing fancy. &amp;nbsp;Ultra-long-term portability isn't
&lt;br&gt;required, either.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23857319&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Type-OIDs-tp23857319p23857319.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23739938</id>
	<title>Keep alive in libpq</title>
	<published>2009-05-27T03:03:55Z</published>
	<updated>2009-05-27T03:03:55Z</updated>
	<author>
		<name>Pavel Golub-2</name>
	</author>
	<content type="html">Hello, pgsql-interfaces.
&lt;br&gt;&lt;br&gt;I found solution how to implement keep alive through sockets in
&lt;br&gt;archive: &lt;a href=&quot;http://archives.postgresql.org/pgsql-interfaces/2006-11/msg00014.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org/pgsql-interfaces/2006-11/msg00014.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;However, it is dated 2006 year and I am wonder if this is for real? At
&lt;br&gt;least in Windows environment?
&lt;br&gt;&lt;br&gt;If not are there any solutions?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;With best wishes,
&lt;br&gt;&amp;nbsp;Pavel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23739938&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pavel@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23739938&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Keep-alive-in-libpq-tp23739938p23739938.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23643706</id>
	<title>Re: Timestamp with libpq</title>
	<published>2009-05-20T14:53:03Z</published>
	<updated>2009-05-20T14:53:03Z</updated>
	<author>
		<name>Andrejs Cainikovs</name>
	</author>
	<content type="html">Hi Jakob,
&lt;br&gt;can you post your code?
&lt;br&gt;I've wrote my own binary timestamp functions (available &lt;a href=&quot;http://blog.stranadurakov.com/2009/05/21/postgresql-binary-timestamp-functions/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;), but looking forward to adapt my code to doubles also.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Jakob Lechner-4 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I doubt this. It might be true for double storage but not for 8 byte integers,
&lt;br&gt;&amp;gt; well that is in the database of course. But I see no reason whatsoever that the
&lt;br&gt;&amp;gt; data is truncated by libpq. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;I found an easy solution for my problem: Libpq provides information if
&lt;br&gt;the timestamps are double values or integer values.
&lt;br&gt;&lt;br&gt;When passing the parameter &amp;quot;integer_datetimes&amp;quot; to the function &amp;quot;PQparameterStatus&amp;quot;
&lt;br&gt;&amp;quot;on&amp;quot; or &amp;quot;off&amp;quot; is returned.
&lt;br&gt;&lt;br&gt;I adapted my conversion routine to handle both integer and double
&lt;br&gt;timestamps. Everything works fine now.
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;Jakob
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Timestamp-with-libpq-tp19950642p23643706.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23611702</id>
	<title>INTERVAL data type and libpq - what format?</title>
	<published>2009-05-19T01:12:20Z</published>
	<updated>2009-05-19T01:12:20Z</updated>
	<author>
		<name>Sebastien FLAESCH</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I try to use the new 8.4 INTERVAL type with libpq, but get crazy with
&lt;br&gt;the input formatting rules...
&lt;br&gt;&lt;br&gt;I use PQprepare() / PQexecPrepared() with parameter list, binding the
&lt;br&gt;INTERVAL values with the 1186 pg_type and passing a string buffer with
&lt;br&gt;values like:
&lt;br&gt;&lt;br&gt;&amp;quot;12345&amp;quot; &amp;nbsp; for an INTERVAL YEAR
&lt;br&gt;&lt;br&gt;The INSERT works without error, but when selecting rows from the table
&lt;br&gt;in psql, I get &amp;quot;00:00:00&amp;quot; values ?!?!
&lt;br&gt;&lt;br&gt;When inserting the value &amp;quot;12345&amp;quot; from the psql command tool it works...
&lt;br&gt;&lt;br&gt;I must be doing something wrong, but I could not find any documentation
&lt;br&gt;on using INTERVAL in libpq...
&lt;br&gt;&lt;br&gt;Can someone from the hackers just tell me if it's supposed to work and
&lt;br&gt;if yes what format is expected by the client library?
&lt;br&gt;&lt;br&gt;Attached, you have a test case to reproduce the problem.
&lt;br&gt;&lt;br&gt;Thanks a lot!
&lt;br&gt;Seb
&lt;br&gt;&lt;br&gt;&lt;br /&gt;/*
&lt;br&gt;Version: &amp;nbsp; &amp;nbsp;8.4.beta1
&lt;br&gt;Created by: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23611702&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sf@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Problem with INTERVAL input format
&lt;br&gt;----------------------------------
&lt;br&gt;&lt;br&gt;After executing this program, 2 rows are present in the table.
&lt;br&gt;Only the first has the expected values...
&lt;br&gt;&lt;br&gt;Why does the second insert fail to insert &amp;quot;123 11&amp;quot; in INTERVAL DAY TO HOUR?
&lt;br&gt;Diagnostic info:
&lt;br&gt;&amp;nbsp; SQL State: 22007
&lt;br&gt;&amp;nbsp; Message &amp;nbsp;: invalid input syntax for type interval: &amp;quot; 123 11&amp;quot;
&lt;br&gt;&lt;br&gt;Why does the third row show &amp;quot;00:00:00&amp;quot; in first INTERVAL YEAR column?
&lt;br&gt;&lt;br&gt;[sf@fox problems]$ psql test1 -U pgsuser
&lt;br&gt;psql (8.4beta1)
&lt;br&gt;Type &amp;quot;help&amp;quot; for help.
&lt;br&gt;&lt;br&gt;test1=&amp;gt; select * from t1;
&lt;br&gt;&amp;nbsp;k | &amp;nbsp; &amp;nbsp; &amp;nbsp;i1 &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i2
&lt;br&gt;---+--------------+-------------------
&lt;br&gt;&amp;nbsp;1 | -12345 years | 123 days 11:00:00
&lt;br&gt;&amp;nbsp;3 | 00:00:00 &amp;nbsp; &amp;nbsp; | 123 days 11:00:00
&lt;br&gt;(2 rows)
&lt;br&gt;&lt;br&gt;When inserting rows with psql, the format used by the C program are supported:
&lt;br&gt;&lt;br&gt;test1=&amp;gt; insert into t1 values ( 4, '-12345', '123 11' );
&lt;br&gt;INSERT 0 1
&lt;br&gt;test1=&amp;gt; select * from t1 where k=4;
&lt;br&gt;&amp;nbsp;k | &amp;nbsp; &amp;nbsp; &amp;nbsp;i1 &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i2
&lt;br&gt;---+--------------+-------------------
&lt;br&gt;&amp;nbsp;4 | -12345 years | 123 days 11:00:00
&lt;br&gt;(1 row)
&lt;br&gt;&lt;br&gt;So what am I doing wrong here?
&lt;br&gt;&lt;br&gt;*/
&lt;br&gt;&lt;br&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;#include &amp;lt;libpq-fe.h&amp;gt;
&lt;br&gt;&lt;br&gt;static int checkResult(PGresult * r)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (r == NULL)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; switch (PQresultStatus(r)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; case PGRES_COMMAND_OK:
&lt;br&gt;&amp;nbsp; &amp;nbsp; case PGRES_TUPLES_OK:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; default:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;static void getErrorInfo(PGresult * r)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (r == NULL)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stderr, &amp;quot;Diagnostic info:\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stderr, &amp;quot; &amp;nbsp;SQL State: %s\n&amp;quot;, PQresultErrorField(r, PG_DIAG_SQLSTATE));
&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stderr, &amp;quot; &amp;nbsp;Message &amp;nbsp;: %s\n&amp;quot;, PQresultErrorField(r, PG_DIAG_MESSAGE_PRIMARY));
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;int main(int argc, char **argv)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; PGresult *r;
&lt;br&gt;&amp;nbsp; &amp;nbsp; PGconn *c;
&lt;br&gt;&amp;nbsp; &amp;nbsp; Oid paramTypes[10];
&lt;br&gt;&amp;nbsp; &amp;nbsp; const char *paramValues[10];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stdout,&amp;quot;++ Connecting...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; c = PQconnectdb(&amp;quot;dbname='test1' user='pgsuser' password='fourjs'&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (c == NULL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;&amp;gt;&amp;gt; Could not connect.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stdout,&amp;quot;++ Creating table t1 ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; r = PQexec(c, &amp;quot;DROP TABLE t1&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; PQclear(r);
&lt;br&gt;&amp;nbsp; &amp;nbsp; r = PQexec(c, &amp;quot;CREATE TABLE t1 ( k INT, i1 INTERVAL YEAR, i2 INTERVAL DAY TO HOUR)&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (!checkResult(r)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;&amp;gt;&amp;gt; Could not create table 1.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; getErrorInfo(r);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; PQclear(r);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stdout,&amp;quot;++ Preparing INSERT ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramTypes[0] = 23; &amp;nbsp; &amp;nbsp; /* INT4 */
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramTypes[1] = 1186; &amp;nbsp; /* INTERVAL */
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramTypes[2] = 1186; &amp;nbsp; /* INTERVAL */
&lt;br&gt;&amp;nbsp; &amp;nbsp; r = PQprepare(c, &amp;quot;s1&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;INSERT INTO t1 VALUES ( $1, $2, $3 )&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3, (const Oid *) paramTypes);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (!checkResult(r)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;&amp;gt;&amp;gt; Could not prepare stmt 1.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; getErrorInfo(r);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; PQclear(r);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /* This is working */
&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stdout,&amp;quot;++ Executing INSERT (1) ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[0] = &amp;quot;1&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[1] = &amp;quot;-12345 years&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[2] = &amp;quot; 123 11:00&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; r = PQexecPrepared(c, &amp;quot;s1&amp;quot;, 3, paramValues, NULL, NULL, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (!checkResult(r)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;&amp;gt;&amp;gt; Could not exec stmt 1.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; getErrorInfo(r);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; PQclear(r);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /* This is NOT working */
&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stdout,&amp;quot;++ Executing INSERT (2) ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[0] = &amp;quot;2&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[1] = &amp;quot;-12345&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[2] = &amp;quot; 123 11&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; r = PQexecPrepared(c, &amp;quot;s1&amp;quot;, 3, paramValues, NULL, NULL, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (!checkResult(r)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;&amp;gt;&amp;gt; Could not exec stmt 2.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; getErrorInfo(r);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*exit(1);*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; PQclear(r);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /* This is NOT working */
&lt;br&gt;&amp;nbsp; &amp;nbsp; fprintf(stdout,&amp;quot;++ Executing INSERT (3) ...\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[0] = &amp;quot;3&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[1] = &amp;quot;-12345&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; paramValues[2] = &amp;quot; 123 11:00&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; r = PQexecPrepared(c, &amp;quot;s1&amp;quot;, 3, paramValues, NULL, NULL, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (!checkResult(r)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;&amp;gt;&amp;gt; Could not exec stmt 3.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; getErrorInfo(r);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; PQclear(r);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; PQfinish(c);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23611702&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/INTERVAL-data-type-and-libpq---what-format--tp23611702p23611702.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23223131</id>
	<title>DBD::Pg 2.13.1 has been released</title>
	<published>2009-04-24T12:12:38Z</published>
	<updated>2009-04-24T12:12:38Z</updated>
	<author>
		<name>Greg Sabino Mullane</name>
	</author>
	<content type="html">&lt;br&gt;-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: RIPEMD160
&lt;br&gt;&lt;br&gt;Version 2.13.1 of DBD::Pg has just been released. You can find it at:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://search.cpan.org/dist/DBD-Pg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://search.cpan.org/dist/DBD-Pg/&lt;/a&gt;&lt;br&gt;&lt;br&gt;2.13.1 addressed a minor leak in pg_warn.
&lt;br&gt;&lt;br&gt;2.13.0 applied better SQLSTATE codes
&lt;br&gt;&lt;br&gt;2.12.0 changed the large object interface to use pg_lo_* (instead of the improper lo_* method),
&lt;br&gt;and fixed a handful of other minor problems.
&lt;br&gt;&lt;br&gt;A list of all changes can be found at:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://cpansearch.perl.org/src/TURNSTEP/DBD-Pg-2.13.1/Changes&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cpansearch.perl.org/src/TURNSTEP/DBD-Pg-2.13.1/Changes&lt;/a&gt;&lt;br&gt;&lt;br&gt;The checksums for the new tarball are:
&lt;br&gt;&lt;br&gt;4e16c70109146d18a11a5170d30b305a &amp;nbsp;DBD-Pg-2.13.1.tar.gz
&lt;br&gt;ef115d2e20153803f2c3abe4671dbbb43e2f9762 &amp;nbsp;DBD-Pg-2.13.1.tar.gz
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Greg Sabino Mullane &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23223131&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg@...&lt;/a&gt;
&lt;br&gt;End Point Corporation
&lt;br&gt;PGP Key: 0x14964AC8 200904241511
&lt;br&gt;&lt;a href=&quot;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8&lt;/a&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;iEYEAREDAAYFAknyDuEACgkQvJuQZxSWSsiw1QCgjwmwlVxvYiCMNyBrY8cXM7GQ
&lt;br&gt;2N4AnR2s5kzxGb9Y17uAa2OPUvO99E/m
&lt;br&gt;=j4rF
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23223131&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DBD%3A%3APg-2.13.1-has-been-released-tp23223131p23223131.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22714359</id>
	<title>Re: this mailing list is proposed to be retired</title>
	<published>2009-03-25T18:23:06Z</published>
	<updated>2009-03-25T18:23:06Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Thomas Adam &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22714359&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thomas.adam22@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; I find it amusing that &amp;quot;low traffic&amp;quot; implies some level of
&lt;br&gt;&amp;gt; irrelevancy. &amp;nbsp;What a load of tosh. &amp;nbsp;This list has a purpose, it
&lt;br&gt;&amp;gt; *serves* that purpose, and does so well.
&lt;br&gt;&lt;br&gt;Not counting this thread itself, since January 1 this list has had
&lt;br&gt;22 posts, all but five of which were demonstrably off-topic (assuming
&lt;br&gt;that that Javascript thread in January should have been on pgsql-jdbc).
&lt;br&gt;Of the five, three were a single thread about ECPG, and the other two
&lt;br&gt;were questions that went unanswered. &amp;nbsp;So in other words, there's been
&lt;br&gt;*one* effective, on-topic exchange in three months here, and a much
&lt;br&gt;larger volume of stuff that should have gone somewhere else.
&lt;br&gt;&lt;br&gt;The list looks pretty moribund to me :-(.
&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-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22714359&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/this-mailing-list-is-proposed-to-be-retired-tp18338749p22714359.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22713902</id>
	<title>Re: this mailing list is proposed to be retired</title>
	<published>2009-03-25T17:47:48Z</published>
	<updated>2009-03-25T17:47:48Z</updated>
	<author>
		<name>Thomas Adam-3</name>
	</author>
	<content type="html">2009/3/25 Alvaro Herrera &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22713902&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alvherre@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Peter Eisentraut wrote:
&lt;br&gt;&amp;gt;&amp;gt; Some PostgreSQL mailing lists, including the one you are reading now, are
&lt;br&gt;&amp;gt;&amp;gt; proposed to be retired, because they receive very little or mostly off-topic
&lt;br&gt;&amp;gt;&amp;gt; traffic.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; * pgsql-interfaces
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Many PostgreSQL interfaces have their own mailing lists.  Posts that don't fit
&lt;br&gt;&amp;gt;&amp;gt; anywhere else could go to pgsql-general.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We consider that enough time for objections has passed with no
&lt;br&gt;&amp;gt; objections being raised, so this list is going to be deleted Real Soon
&lt;br&gt;&amp;gt; Now.  You Have Been Warned.
&lt;/div&gt;&lt;br&gt;I find it amusing that &amp;quot;low traffic&amp;quot; implies some level of
&lt;br&gt;irrelevancy. &amp;nbsp;What a load of tosh. &amp;nbsp;This list has a purpose, it
&lt;br&gt;*serves* that purpose, and does so well. &amp;nbsp;By removing this and
&lt;br&gt;consolidating it with another similarly-related one, you're just going
&lt;br&gt;to contaminate that other list.
&lt;br&gt;&lt;br&gt;-- Thomas Adam
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22713902&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/this-mailing-list-is-proposed-to-be-retired-tp18338749p22713902.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22713229</id>
	<title>Re: this mailing list is proposed to be retired</title>
	<published>2009-03-25T16:32:22Z</published>
	<updated>2009-03-25T16:32:22Z</updated>
	<author>
		<name>Andrew McNamara</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Peter Eisentraut wrote:
&lt;br&gt;&amp;gt;&amp;gt; Some PostgreSQL mailing lists, including the one you are reading &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; now, are
&lt;br&gt;&amp;gt;&amp;gt; proposed to be retired, because they receive very little or mostly &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; off-topic
&lt;br&gt;&amp;gt;&amp;gt; traffic.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; * pgsql-interfaces
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Many PostgreSQL interfaces have their own mailing lists. &amp;nbsp;Posts &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; that don't fit
&lt;br&gt;&amp;gt;&amp;gt; anywhere else could go to pgsql-general.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We consider that enough time for objections has passed with no
&lt;br&gt;&amp;gt; objections being raised, so this list is going to be deleted Real Soon
&lt;br&gt;&amp;gt; Now. &amp;nbsp;You Have Been Warned.
&lt;/div&gt;&lt;br&gt;I'm pretty sure I posted when you first proposed killing this list - I &amp;nbsp;
&lt;br&gt;find it both useful and on-topic, and the alternatives less so. I'll &amp;nbsp;
&lt;br&gt;be disappointed if you kill it.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22713229&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/this-mailing-list-is-proposed-to-be-retired-tp18338749p22713229.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22711754</id>
	<title>Re: this mailing list is proposed to be retired</title>
	<published>2009-03-25T14:50:34Z</published>
	<updated>2009-03-25T14:50:34Z</updated>
	<author>
		<name>Alvaro Herrera-7</name>
	</author>
	<content type="html">Peter Eisentraut wrote:
&lt;br&gt;&amp;gt; Some PostgreSQL mailing lists, including the one you are reading now, are 
&lt;br&gt;&amp;gt; proposed to be retired, because they receive very little or mostly off-topic 
&lt;br&gt;&amp;gt; traffic.
&lt;br&gt;&lt;br&gt;&amp;gt; * pgsql-interfaces
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Many PostgreSQL interfaces have their own mailing lists. &amp;nbsp;Posts that don't fit 
&lt;br&gt;&amp;gt; anywhere else could go to pgsql-general.
&lt;br&gt;&lt;br&gt;We consider that enough time for objections has passed with no
&lt;br&gt;objections being raised, so this list is going to be deleted Real Soon
&lt;br&gt;Now. &amp;nbsp;You Have Been Warned.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Alvaro Herrera &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&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;&lt;br&gt;PostgreSQL Replication, Consulting, Custom Development, 24x7 support
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-interfaces mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22711754&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-interfaces@...&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-interfaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-interfaces&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/this-mailing-list-is-proposed-to-be-retired-tp18338749p22711754.html" />
</entry>

</feed>
