<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-773</id>
	<title>Nabble - PostgreSQL - odbc</title>
	<updated>2009-12-07T12:42:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PostgreSQL---odbc-f773.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PostgreSQL---odbc-f773.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26683949</id>
	<title>Re: Using ADO to write a blob in VBA</title>
	<published>2009-12-07T12:42:03Z</published>
	<updated>2009-12-07T12:42:03Z</updated>
	<author>
		<name>Sufficool, Stanley</name>
	</author>
	<content type="html">Uncheck the &amp;quot;bytea as LO&amp;quot; in your ODBC connection options. Datasource,
&lt;br&gt;page 2.
&lt;br&gt;&lt;br&gt;Not sure what the conn string option name is though.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26683949&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc-owner@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26683949&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc-owner@...&lt;/a&gt;] On Behalf Of Stephan Strauss
&lt;br&gt;&amp;gt; Sent: Monday, December 07, 2009 5:58 AM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26683949&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [ODBC] Using ADO to write a blob in VBA 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Dear mates, 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;I have a question concerning the postgresql page 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://psqlodbc.projects.postgresql.org/howto-vblo.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://psqlodbc.projects.postgresql.org/howto-vblo.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tried the ADO (Active X Data objects) blob version using 
&lt;br&gt;&amp;gt; postgres server version 8.4 (postgres ODBC client 8.04.01) 
&lt;br&gt;&amp;gt; with a table in two variants 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	* table (main integer, object oid)
&lt;br&gt;&amp;gt; 	* table (main integer, object bytea)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but got back the error message: &amp;quot;Type lo does not exist&amp;quot; when 
&lt;br&gt;&amp;gt; executing with
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Set rs = cmd.Execute
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So, either this page is outdated or I am doing something 
&lt;br&gt;&amp;gt; wrong: Is there a third binary type in postgresql that I should use?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks a lot for any short answer. Would be very helpful, 
&lt;br&gt;&amp;gt; because I have to port 
&lt;br&gt;&amp;gt; a visual basic script &amp;nbsp;( &amp;nbsp;I dislike this language by the way 
&lt;br&gt;&amp;gt; :) &amp;nbsp; ) to work together with 
&lt;br&gt;&amp;gt; postgresql. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards and cheers,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Stephan 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the way I tried it:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----------------------------------------------------8&amp;lt;--------
&lt;/div&gt;---------------------------------------
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sub Try()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim cn As New ADODB.Connection
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim rs As ADODB.Recordset
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim cmd As ADODB.Command
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim chunk() As Byte
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim fd As Integer
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim flen As Long
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim main As ADODB.Parameter
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim object As ADODB.Parameter
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' Connect to the database using ODBC
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; With cn
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .ConnectionString = &amp;quot;dsn=xxx; pwd=yyy&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Open
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .CursorLocation = adUseClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; End With
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ret = cn.Execute(&amp;quot;create table newtesttable (main 
&lt;br&gt;&amp;gt; integer, object oid)&amp;quot;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' Here is an example if you want to issue a direct 
&lt;br&gt;&amp;gt; command to the database
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; '
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 'Set cmd = New ADODB.Command
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 'With cmd
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' &amp;nbsp; &amp;nbsp;.CommandText = &amp;quot;delete from MYTABLE&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' &amp;nbsp; &amp;nbsp;.ActiveConnection = cn
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' &amp;nbsp; &amp;nbsp;.Execute
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 'End With
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 'Set cmd = Nothing
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; '
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' Here is an example of how insert directly into the 
&lt;br&gt;&amp;gt; database without using
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' a recordset and the AddNew method
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; '
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Set cmd = New ADODB.Command
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.ActiveConnection = cn
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.CommandText = &amp;quot;insert into newtesttable(main,object) 
&lt;br&gt;&amp;gt; values(?,?)&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.CommandType = adCmdText
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' The main parameter
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Set main = cmd.CreateParameter(&amp;quot;main&amp;quot;, adInteger, adParamInput)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; main.Value = 100 '' a random integer value ''
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.Parameters.Append main
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' Open the file for reading
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; fd = FreeFile
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Open &amp;quot;myBlobFile.txt&amp;quot; For Binary Access Read As fd
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; flen = LOF(fd)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; If flen = 0 Then
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Close
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MsgBox &amp;quot;Error while opening the file&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; End If
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' The object parameter
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; '
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' The fourth parameter indicates the memory to allocate 
&lt;br&gt;&amp;gt; to store the object
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Set object = cmd.CreateParameter(&amp;quot;object&amp;quot;, _
&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;adLongVarBinary, _
&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;adParamInput, _
&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;flen + 100)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ReDim chunk(1 To flen)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Get fd, , chunk()
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' Insert the object into the parameter object
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; object.AppendChunk chunk()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.Parameters.Append object
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' Now execute the command
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Set rs = cmd.Execute
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ' ... and close all
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cn.Close
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Close
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; End Sub
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----------------------------------------------------8&amp;lt;--------
&lt;/div&gt;---------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26683949&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&lt;/a&gt;)
&lt;br&gt;&amp;gt; To make changes to your subscription: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26683949&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-ADO-to-write-a-blob-in-VBA-tp26677732p26683949.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678716</id>
	<title>Re: Using ADO to write a blob in VBA</title>
	<published>2009-12-07T07:18:38Z</published>
	<updated>2009-12-07T07:18:38Z</updated>
	<author>
		<name>Richard Broersma</name>
	</author>
	<content type="html">On Mon, Dec 7, 2009 at 5:57 AM, Stephan Strauss
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678716&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Stephan.Strauss@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://psqlodbc.projects.postgresql.org/howto-vblo.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://psqlodbc.projects.postgresql.org/howto-vblo.html&lt;/a&gt;&lt;br&gt;&amp;gt; but got back the error message: &amp;quot;Type lo does not exist&amp;quot; when executing with
&lt;br&gt;&lt;br&gt;The lo type is not part of the standard postgresql install. &amp;nbsp;It is an
&lt;br&gt;extension that you can add to your postgresql server:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.postgresql.org/docs/8.4/interactive/lo.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/8.4/interactive/lo.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Once you've installed type Large Objects data type it should work.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards,
&lt;br&gt;Richard Broersma Jr.
&lt;br&gt;&lt;br&gt;Visit the Los Angeles PostgreSQL Users Group (LAPUG)
&lt;br&gt;&lt;a href=&quot;http://pugs.postgresql.org/lapug&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pugs.postgresql.org/lapug&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678716&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-ADO-to-write-a-blob-in-VBA-tp26677732p26678716.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26677732</id>
	<title>Using ADO to write a blob in VBA</title>
	<published>2009-12-07T05:57:43Z</published>
	<updated>2009-12-07T05:57:43Z</updated>
	<author>
		<name>Stephan Strauss-3</name>
	</author>
	<content type="html">Dear mates, 
&lt;br&gt;&lt;br&gt;&amp;nbsp;I have a question concerning the postgresql page 
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://psqlodbc.projects.postgresql.org/howto-vblo.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://psqlodbc.projects.postgresql.org/howto-vblo.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;I tried the ADO (Active X Data objects) blob version using postgres server version 8.4 (postgres ODBC client 8.04.01) with a table in two variants 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * table (main integer, object oid)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * table (main integer, object bytea)
&lt;br&gt;&lt;br&gt;but got back the error message: &amp;quot;Type lo does not exist&amp;quot; when executing with
&lt;br&gt;&lt;br&gt;Set rs = cmd.Execute
&lt;br&gt;&lt;br&gt;So, either this page is outdated or I am doing something wrong: Is there a third binary type in postgresql that I should use?
&lt;br&gt;&lt;br&gt;Thanks a lot for any short answer. Would be very helpful, because I have to port 
&lt;br&gt;a visual basic script &amp;nbsp;( &amp;nbsp;I dislike this language by the way :) &amp;nbsp; ) to work together with 
&lt;br&gt;postgresql. 
&lt;br&gt;&lt;br&gt;Best regards and cheers,
&lt;br&gt;&lt;br&gt;Stephan 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here is the way I tried it:
&lt;br&gt;&lt;br&gt;----------------------------------------------------8&amp;lt;-----------------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Sub Try()
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim cn As New ADODB.Connection
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim rs As ADODB.Recordset
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim cmd As ADODB.Command
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim chunk() As Byte
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim fd As Integer
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim flen As Long
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim main As ADODB.Parameter
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dim object As ADODB.Parameter
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ' Connect to the database using ODBC
&lt;br&gt;&amp;nbsp; &amp;nbsp; With cn
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .ConnectionString = &amp;quot;dsn=xxx; pwd=yyy&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Open
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .CursorLocation = adUseClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; End With
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; ret = cn.Execute(&amp;quot;create table newtesttable (main integer, object oid)&amp;quot;)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ' Here is an example if you want to issue a direct command to the database
&lt;br&gt;&amp;nbsp; &amp;nbsp; '
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'Set cmd = New ADODB.Command
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'With cmd
&lt;br&gt;&amp;nbsp; &amp;nbsp; ' &amp;nbsp; &amp;nbsp;.CommandText = &amp;quot;delete from MYTABLE&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; ' &amp;nbsp; &amp;nbsp;.ActiveConnection = cn
&lt;br&gt;&amp;nbsp; &amp;nbsp; ' &amp;nbsp; &amp;nbsp;.Execute
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'End With
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'Set cmd = Nothing
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; '
&lt;br&gt;&amp;nbsp; &amp;nbsp; ' Here is an example of how insert directly into the database without using
&lt;br&gt;&amp;nbsp; &amp;nbsp; ' a recordset and the AddNew method
&lt;br&gt;&amp;nbsp; &amp;nbsp; '
&lt;br&gt;&amp;nbsp; &amp;nbsp; Set cmd = New ADODB.Command
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd.ActiveConnection = cn
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd.CommandText = &amp;quot;insert into newtesttable(main,object) values(?,?)&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd.CommandType = adCmdText
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ' The main parameter
&lt;br&gt;&amp;nbsp; &amp;nbsp; Set main = cmd.CreateParameter(&amp;quot;main&amp;quot;, adInteger, adParamInput)
&lt;br&gt;&amp;nbsp; &amp;nbsp; main.Value = 100 '' a random integer value ''
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd.Parameters.Append main
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ' Open the file for reading
&lt;br&gt;&amp;nbsp; &amp;nbsp; fd = FreeFile
&lt;br&gt;&amp;nbsp; &amp;nbsp; Open &amp;quot;myBlobFile.txt&amp;quot; For Binary Access Read As fd
&lt;br&gt;&amp;nbsp; &amp;nbsp; flen = LOF(fd)
&lt;br&gt;&amp;nbsp; &amp;nbsp; If flen = 0 Then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Close
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MsgBox &amp;quot;Error while opening the file&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End
&lt;br&gt;&amp;nbsp; &amp;nbsp; End If
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ' The object parameter
&lt;br&gt;&amp;nbsp; &amp;nbsp; '
&lt;br&gt;&amp;nbsp; &amp;nbsp; ' The fourth parameter indicates the memory to allocate to store the object
&lt;br&gt;&amp;nbsp; &amp;nbsp; Set object = cmd.CreateParameter(&amp;quot;object&amp;quot;, _
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;adLongVarBinary, _
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;adParamInput, _
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;flen + 100)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ReDim chunk(1 To flen)
&lt;br&gt;&amp;nbsp; &amp;nbsp; Get fd, , chunk()
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ' Insert the object into the parameter object
&lt;br&gt;&amp;nbsp; &amp;nbsp; object.AppendChunk chunk()
&lt;br&gt;&amp;nbsp; &amp;nbsp; cmd.Parameters.Append object
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ' Now execute the command
&lt;br&gt;&amp;nbsp; &amp;nbsp; Set rs = cmd.Execute
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ' ... and close all
&lt;br&gt;&amp;nbsp; &amp;nbsp; cn.Close
&lt;br&gt;&amp;nbsp; &amp;nbsp; Close
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;End Sub
&lt;br&gt;&lt;br&gt;----------------------------------------------------8&amp;lt;-----------------------------------------------
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677732&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-ADO-to-write-a-blob-in-VBA-tp26677732p26677732.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26652421</id>
	<title>Re: Hi!</title>
	<published>2009-12-04T18:28:28Z</published>
	<updated>2009-12-04T18:28:28Z</updated>
	<author>
		<name>Craig Ringer</name>
	</author>
	<content type="html">On 5/12/2009 2:05 AM, Daniela Mamede d'Almeida wrote:
&lt;br&gt;&amp;gt; Hi Jonah!
&lt;br&gt;&amp;gt; I installed the client libraries, but the error is still there... The
&lt;br&gt;&amp;gt; pkg I installed is postgresql-libs-7.4.13-2.RHEL4.1.x86_64.rpm
&lt;br&gt;&amp;gt; Do I have to do anything?
&lt;br&gt;&lt;br&gt;Install the PgODBC packages too, rather than trying to build PgODBC from 
&lt;br&gt;source. Assuming there are any for RHEL4 - I can't find a package search 
&lt;br&gt;like `packages.debian.org' for RHEL, but the distrowatch source package 
&lt;br&gt;list doesn't include unixodbc so it might not be included in the system 
&lt;br&gt;packages.
&lt;br&gt;&lt;br&gt;If you *must* install PgODBC from source, install the -dev or -devel rpm 
&lt;br&gt;for the client libraries too, since that should contain pg_config . You 
&lt;br&gt;might also need to install unixodbc; I'm not sure about that.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Craig Ringer
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26652421&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi%21-tp26598551p26652421.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26651028</id>
	<title>[ psqlodbc-Bugs-1010735 ] Error on method Fields using client side recordset</title>
	<published>2009-12-04T15:36:27Z</published>
	<updated>2009-12-04T15:36:27Z</updated>
	<author>
		<name>noreply-13</name>
	</author>
	<content type="html">Bugs item #1010735, was opened at 2009-11-30 14:54
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&lt;/a&gt;&lt;br&gt;&lt;br&gt;Category: None
&lt;br&gt;Group: None
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 3
&lt;br&gt;Submitted By: Gregory Fernandez (lgringo)
&lt;br&gt;Assigned to: Nobody (None)
&lt;br&gt;Summary: Error on method Fields using client side recordset
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I got &amp;quot;Multiple-step operation generated errors. Check each status value.&amp;quot; when I try to assign a field, using a recordset with client side property set.
&lt;br&gt;&lt;br&gt;Visual Basic code :
&lt;br&gt;01 Dim cx As New &amp;nbsp;ADODB.Connection
&lt;br&gt;02 Set cx = ADODB.Connection
&lt;br&gt;03 cx.Open &amp;quot;Driver={PostgreSQL Unicode};Server=127.0.0.1;Database=mydb;UID=XXX;PWD=XXX;&amp;quot;
&lt;br&gt;04 Dim rds As new ADODB.Recordset
&lt;br&gt;05 rds.CursorLocation = adUseClient
&lt;br&gt;06 rds.Open &amp;quot;SELECT * FROM bug&amp;quot;, cx, adOpenDynamic, adLockOptimistic
&lt;br&gt;07 rds.AddNew
&lt;br&gt;08 rds.Fields(&amp;quot;id&amp;quot;) = 1
&lt;br&gt;09 rds.Fields(&amp;quot;texte&amp;quot;) = &amp;quot;texte&amp;quot;
&lt;br&gt;10 rds.Update
&lt;br&gt;11 rds.Close
&lt;br&gt;12 cx.Close
&lt;br&gt;&lt;br&gt;Version 8.03.04.00 works fine.
&lt;br&gt;Version 8.04.01.00 gives the error (&amp;quot;Multiple-step operation generated errors ...&amp;quot;).
&lt;br&gt;&lt;br&gt;Server used : PostgreSQL 8.3.8
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Hiroshi Inoue (hinoue)
&lt;br&gt;Date: 2009-12-04 23:36
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;Could you please try the drivers on testing for 8.4.0101 at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.geocities.jp/inocchichichi/psqlodbc/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.geocities.jp/inocchichichi/psqlodbc/index.html&lt;/a&gt;&lt;br&gt;? 
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Gregory Fernandez (lgringo)
&lt;br&gt;Date: 2009-11-30 14:58
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;NB: Removing line 05 solves my problem for this test but my
&lt;br&gt;main application needs adUseClient.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26651028&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--psqlodbc-Bugs-1010735---Error-on-method-Fields-using-client-side-recordset-tp26651028p26651028.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26650935</id>
	<title>Re: declare/fetch problem with pgpool 2.2.3; Postgres 8.4; ODBC 8.03.04.00</title>
	<published>2009-12-04T15:27:07Z</published>
	<updated>2009-12-04T15:27:07Z</updated>
	<author>
		<name>Hiroshi Inoue</name>
	</author>
	<content type="html">Hi Andreas,
&lt;br&gt;&lt;br&gt;Sorry for the delay.
&lt;br&gt;&lt;br&gt;The recent pgpool-II 2.2.6 release seems to contain the bug fix.
&lt;br&gt;Thanks to pgpool team.
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Hiroshi Inoue
&lt;br&gt;&lt;br&gt;Hiroshi Inoue wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Andreas Gaab wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Von: Hiroshi Inoue [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26650935&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;inoue@...&lt;/a&gt;] Gesendet: Donnerstag, 19. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; November 2009 23:12
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; An: Andreas Gaab
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cc: '&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26650935&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&lt;/a&gt;'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Betreff: Re: [ODBC] declare/fetch problem with pgpool 2.2.3; Postgres 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 8.4; ODBC 8.03.04.00
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Andreas,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Andreas Gaab wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I encountered a problem using pgpool with two identical postgres 8.4 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; servers as &amp;nbsp;backends.&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Activating the odbc-setting declare/fetch, our application creates 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; an data mismatch error. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; As far as I can track down the problem, it is caused because the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; cursors are defined after an BEGIN, thus with load balancing 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; disabled, but are CLOSED after the COMMIT, thus are only closed on 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; one server. This leads to data inconsistency for the next query 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; DECLARING an cursor.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Unfortunately I'm not familiar with pgpool.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Are DECLARE, FETCH and CLOSE regarded as members of SELECT family ?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; If so, I'm suspicios if it's appropriate.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I would ask pgpool guys about it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hiroshi Inoue
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Hiroshi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; DECLARE, FETCH and CLOSE are probably regarded as members of the 
&lt;br&gt;&amp;gt;&amp;gt; SELECT family and thus are load balanced. The problem arises, because 
&lt;br&gt;&amp;gt;&amp;gt; the cursors are defined inside BEGIN; ... COMMIT; , and thus are send 
&lt;br&gt;&amp;gt;&amp;gt; to all backends, but are CLOSEd after the transaction, and thus load 
&lt;br&gt;&amp;gt;&amp;gt; balanced, which leaves on cursor defined on one backend.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The transaction block and handling of cursor is done by the odbc, 
&lt;br&gt;&amp;gt;&amp;gt; isn't it?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Andreas,
&lt;br&gt;&amp;gt; I told pgpool guys this issue at JPUGCon Yesterday.
&lt;br&gt;&amp;gt; I would get a reply in a few days.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; regards,
&lt;br&gt;&amp;gt; Hiroshi Inoue
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26650935&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/declare-fetch-problem-with-pgpool-2.2.3--Postgres-8.4--ODBC-8.03.04.00-tp26423436p26650935.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26647977</id>
	<title>Re: Hi!</title>
	<published>2009-12-04T11:31:44Z</published>
	<updated>2009-12-04T11:31:44Z</updated>
	<author>
		<name>Jonah H. Harris-2</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 4, 2009 at 1:05 PM, Daniela Mamede d&amp;#39;Almeida &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647977&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dmamede@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



  

&lt;div bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;

I installed the client libraries, but the error is still there... The
pkg I installed is  postgresql-libs-7.4.13-2.RHEL4.1.x86_64.rpm&lt;br&gt;
Do I have to do anything?&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br clear=&quot;all&quot;&gt;&lt;/div&gt;&lt;/div&gt;Hey Daniela,&lt;br&gt;&lt;br&gt;Let me update my how-to doc for you.&lt;br&gt;&lt;br&gt;-- &lt;br&gt;Jonah H. Harris, Senior DBA&lt;br&gt;myYearbook.com&lt;br&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi%21-tp26598551p26647977.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26646642</id>
	<title>Re: Hi!</title>
	<published>2009-12-04T10:05:10Z</published>
	<updated>2009-12-04T10:05:10Z</updated>
	<author>
		<name>Daniela Mamede d'Almeida</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;
Hi Jonah!&lt;br&gt;
I installed the client libraries, but the error is still there... The
pkg I installed is&amp;nbsp; postgresql-libs-7.4.13-2.RHEL4.1.x86_64.rpm&lt;br&gt;
Do I have to do anything?&lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
Daniela.&lt;br&gt;
&lt;br&gt;
Jonah H. Harris escribi&amp;oacute;:
&lt;blockquote cite=&quot;mid:36e682920912020700o4dc0a460rdb60af4aa4f9d7ef@mail.gmail.com&quot; type=&quot;cite&quot;&gt;
  &lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 2, 2009 at 9:35 AM, Daniela
Mamede d'Almeida &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26646642&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dmamede@...&lt;/a&gt;&amp;gt;&lt;/span&gt;
wrote:&lt;br&gt;
  &lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Thanks
for answering!&lt;br&gt;
My problem is that the Oracle Db and the PostgreSQL Db are both on
different servers, and I;ve been told by Oracle support that I need to
install the PostgreSQL driver in my Oracle server. Now I don't know how
to solve the PG_CONFIG error, as there's no pg_config file in the
Oracle server!&lt;br&gt;
How can I solve this?&lt;br&gt;
  &lt;/blockquote&gt;
  &lt;div&gt;&lt;br&gt;
Yes, you'll have to install Postgres (or at least the Postgres client
libraries) on your Oracle server.&lt;br&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;br&gt;
-- &lt;br&gt;
Jonah H. Harris, Senior DBA&lt;br&gt;
myYearbook.com&lt;br&gt;
  &lt;br&gt;
&lt;/blockquote&gt;
&lt;/body&gt;
&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi%21-tp26598551p26646642.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26610415</id>
	<title>Re: Hi!</title>
	<published>2009-12-02T07:05:45Z</published>
	<updated>2009-12-02T07:05:45Z</updated>
	<author>
		<name>Craig Ringer</name>
	</author>
	<content type="html">On 2/12/2009 10:35 PM, Daniela Mamede d'Almeida wrote:
&lt;br&gt;&amp;gt; Thanks for answering!
&lt;br&gt;&amp;gt; My problem is that the Oracle Db and the PostgreSQL Db are both on
&lt;br&gt;&amp;gt; different servers, and I;ve been told by Oracle support that I need to
&lt;br&gt;&amp;gt; install the PostgreSQL driver in my Oracle server. Now I don't know how
&lt;br&gt;&amp;gt; to solve the PG_CONFIG error, as there's no pg_config file in the Oracle
&lt;br&gt;&amp;gt; server!
&lt;br&gt;&lt;br&gt;Er ... The file `pg_config' is part of the PostgreSQL package. It's 
&lt;br&gt;installed with the server. It's a program that should be in the server's 
&lt;br&gt;binary directory, in the same place as `psql'. Since you're building 
&lt;br&gt;pgodbc from source, I'm assuming you also built and installed PostgreSQL 
&lt;br&gt;from sources, so you should have it. If you installed distro binaries, 
&lt;br&gt;you'll probably need a -dev or -devel package for libpq too.
&lt;br&gt;&lt;br&gt;HOWEVER, if you installed PostgreSQL using your distro's packaging 
&lt;br&gt;system, you should just install psqlodbc that way too, not build it from 
&lt;br&gt;sources. It should be in your distro's package management system.
&lt;br&gt;On my Debian and Ubuntu systems, for example, I just &amp;quot;apt-get install 
&lt;br&gt;odbc-postgresql&amp;quot; to install it.
&lt;br&gt;&lt;br&gt;If you'd given us a few basic details like what PostgreSQL version you 
&lt;br&gt;had, where you got it from, how you installed it, the OS and version you 
&lt;br&gt;were running on, etc, it might be a little bit easier to help you with 
&lt;br&gt;this. See:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://wiki.postgresql.org/wiki/Guide_to_reporting_problems&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.postgresql.org/wiki/Guide_to_reporting_problems&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Craig Ringer
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610415&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi%21-tp26598551p26610415.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26610307</id>
	<title>Re: Hi!</title>
	<published>2009-12-02T07:00:39Z</published>
	<updated>2009-12-02T07:00:39Z</updated>
	<author>
		<name>Jonah H. Harris-2</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 2, 2009 at 9:35 AM, Daniela Mamede d&amp;#39;Almeida &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610307&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dmamede@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Thanks for answering!&lt;br&gt;
My problem is that the Oracle Db and the PostgreSQL Db are both on different servers, and I;ve been told by Oracle support that I need to install the PostgreSQL driver in my Oracle server. Now I don&amp;#39;t know how to solve the PG_CONFIG error, as there&amp;#39;s no pg_config file in the Oracle server!&lt;br&gt;

How can I solve this?&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Yes, you&amp;#39;ll have to install Postgres (or at least the Postgres client libraries) on your Oracle server.&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;-- &lt;br&gt;Jonah H. Harris, Senior DBA&lt;br&gt;myYearbook.com&lt;br&gt;
&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi%21-tp26598551p26610307.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26609933</id>
	<title>Re: Hi!</title>
	<published>2009-12-02T06:35:18Z</published>
	<updated>2009-12-02T06:35:18Z</updated>
	<author>
		<name>Daniela Mamede d'Almeida</name>
	</author>
	<content type="html">Thanks for answering!
&lt;br&gt;My problem is that the Oracle Db and the PostgreSQL Db are both on 
&lt;br&gt;different servers, and I;ve been told by Oracle support that I need to 
&lt;br&gt;install the PostgreSQL driver in my Oracle server. Now I don't know how 
&lt;br&gt;to solve the PG_CONFIG error, as there's no pg_config file in the Oracle 
&lt;br&gt;server!
&lt;br&gt;How can I solve this?
&lt;br&gt;&lt;br&gt;Thanks a lot!
&lt;br&gt;Daniela.
&lt;br&gt;&lt;br&gt;Craig Ringer escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 2/12/2009 4:03 AM, Daniela Mamede d'Almeida wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi!
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to connect an Oracle Db with a PostgreSQL Db, by means of
&lt;br&gt;&amp;gt;&amp;gt; Oracle heterogeneous service.
&lt;br&gt;&amp;gt;&amp;gt; I've installed (in my oracle server) DG4ODBC which is the oracle
&lt;br&gt;&amp;gt;&amp;gt; gateway, UnixODBC which is the driver manager... and all I need now is
&lt;br&gt;&amp;gt;&amp;gt; the PostgreSQL driver. I've downloaded psqlodbc... but I can't
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;configure&amp;quot; it as it says that theres a missing variable ...
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;PG_CONFIG&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Possible hints:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.google.com.au/search?q=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com.au/search?q=&lt;/a&gt;&amp;quot;PG_CONFIG&amp;quot;+&amp;quot;unixodbc&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Particularly:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cpansearch.perl.org/src/RKIES/UnixODBC-0.34/dbms/README&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cpansearch.perl.org/src/RKIES/UnixODBC-0.34/dbms/README&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ... which suggests that you must specify PG_CONFIG as an environment 
&lt;br&gt;&amp;gt; variable when calling configure:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; # export PG_CONFIG=/usr/local/pgsql/bin/pg_config
&lt;br&gt;&amp;gt; # ./configure
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (adjust PG_CONFIG for the location of pg_config on your system).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Craig Ringer
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609933&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi%21-tp26598551p26609933.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26602092</id>
	<title>Re: Hi!</title>
	<published>2009-12-01T17:20:17Z</published>
	<updated>2009-12-01T17:20:17Z</updated>
	<author>
		<name>Craig Ringer</name>
	</author>
	<content type="html">On 2/12/2009 4:03 AM, Daniela Mamede d'Almeida wrote:
&lt;br&gt;&amp;gt; Hi!
&lt;br&gt;&amp;gt; I'm trying to connect an Oracle Db with a PostgreSQL Db, by means of
&lt;br&gt;&amp;gt; Oracle heterogeneous service.
&lt;br&gt;&amp;gt; I've installed (in my oracle server) DG4ODBC which is the oracle
&lt;br&gt;&amp;gt; gateway, UnixODBC which is the driver manager... and all I need now is
&lt;br&gt;&amp;gt; the PostgreSQL driver. I've downloaded psqlodbc... but I can't
&lt;br&gt;&amp;gt; &amp;quot;configure&amp;quot; it as it says that theres a missing variable ...
&lt;br&gt;&amp;gt; &amp;quot;PG_CONFIG&amp;quot;.
&lt;br&gt;&lt;br&gt;Possible hints:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.google.com.au/search?q=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com.au/search?q=&lt;/a&gt;&amp;quot;PG_CONFIG&amp;quot;+&amp;quot;unixodbc&amp;quot;
&lt;br&gt;&lt;br&gt;Particularly:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://cpansearch.perl.org/src/RKIES/UnixODBC-0.34/dbms/README&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cpansearch.perl.org/src/RKIES/UnixODBC-0.34/dbms/README&lt;/a&gt;&lt;br&gt;&lt;br&gt;... which suggests that you must specify PG_CONFIG as an environment 
&lt;br&gt;variable when calling configure:
&lt;br&gt;&lt;br&gt;# export PG_CONFIG=/usr/local/pgsql/bin/pg_config
&lt;br&gt;# ./configure
&lt;br&gt;&lt;br&gt;(adjust PG_CONFIG for the location of pg_config on your system).
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Craig Ringer
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26602092&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi%21-tp26598551p26602092.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26598551</id>
	<title>Hi!</title>
	<published>2009-12-01T12:03:24Z</published>
	<updated>2009-12-01T12:03:24Z</updated>
	<author>
		<name>Daniela Mamede d'Almeida</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;I'm trying to connect an Oracle Db with a PostgreSQL Db, by means of 
&lt;br&gt;Oracle heterogeneous service.
&lt;br&gt;I've installed (in my oracle server) DG4ODBC which is the oracle 
&lt;br&gt;gateway, UnixODBC which is the driver manager... and all I need now is 
&lt;br&gt;the PostgreSQL driver. I've downloaded psqlodbc... but I can't 
&lt;br&gt;&amp;quot;configure&amp;quot; it as it says that theres a missing variable ... 
&lt;br&gt;&amp;quot;PG_CONFIG&amp;quot;. I've found the pg_config file in my PostgreSQL server.. but 
&lt;br&gt;I don't know if there's any other driver to install which wouldn expect 
&lt;br&gt;pg_config to be there.
&lt;br&gt;Both servers are Linux RHEL 4. Oracle version: 10.2.0.4... PostgreSQL 
&lt;br&gt;version: 8.2.4
&lt;br&gt;&lt;br&gt;Thanks for your help!
&lt;br&gt;Daniela.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598551&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi%21-tp26598551p26598551.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596110</id>
	<title>Re: [GENERAL] [HACKERS] Fwd: psql+krb5</title>
	<published>2009-12-01T09:54:09Z</published>
	<updated>2009-12-01T09:54:09Z</updated>
	<author>
		<name>Robert Haas</name>
	</author>
	<content type="html">On Tue, Dec 1, 2009 at 11:26 AM, Scott Marlowe &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596110&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.marlowe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Except that he posted a month ago and got no answers...
&lt;br&gt;&lt;br&gt;Gee, I wonder why.
&lt;br&gt;&lt;br&gt;...Robert
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596110&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A-psql%2Bkrb5-tp26570503p26596110.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26623082</id>
	<title>Re: md5 authentication issues with psqlODBC driver for Windows</title>
	<published>2009-12-01T08:41:07Z</published>
	<updated>2009-12-01T08:41:07Z</updated>
	<author>
		<name>Chris Davis-10</name>
	</author>
	<content type="html">The first section is the output from SPSS which is trying to access the database. &amp;nbsp;The next three entries are from the log files.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Chris
&lt;br&gt;&lt;br&gt;GET DATA
&lt;br&gt;&amp;nbsp; /TYPE=ODBC
&lt;br&gt;&amp;nbsp; /CONNECT='DSN=PostgreSQL30;DATABASE=my_database;SERVER=my.server.name;PORT=5432;UID=dbuser;PWD=/_/%;c-R,K&amp;gt;d;m+#5q;C&amp;quot;/&amp;quot;
&lt;br&gt;&amp;nbsp; j&amp;gt;C5E;}=K*{&amp;lt;z0F5r;SSLmode=disable;ReadOnly=0;Protocol=7.4;FakeOidIndex=0;ShowOidColumn=0;RowVersioning='+
&lt;br&gt;&amp;nbsp; &amp;nbsp; '0;ShowSystemTables=0;ConnSettings=;Fetch=100;Socket=4096;UnknownSizes=0;MaxVarcharSize=255;MaxLongVarcharSize=8190;Debug=0;Comm
&lt;br&gt;&amp;nbsp; Log=0;Optimizer=0;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;BoolsAsChar=1;Parse='+
&lt;br&gt;&amp;nbsp; &amp;nbsp; '0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;;LFConversion=1;UpdatableCursors=1;DisallowPremature=0;TrueIsMinus1=0;BI=0;Bytea
&lt;br&gt;&amp;nbsp; AsLongVarBinary=0;UseServerSidePrepare=0;LowerCaseIdentifier=0;XaOpt=1'
&lt;br&gt;&amp;nbsp; /SQL='SELECT fractioninternalmass &amp;nbsp;FROM public.rerunalcmemorysize50 &amp;nbsp;WHERE (tick = 1) LIMIT 10'
&lt;br&gt;&amp;nbsp; /ASSUMEDSTRWIDTH=255.
&lt;br&gt;&lt;br&gt;&amp;gt;Warning. &amp;nbsp;Command name: GET DATA
&lt;br&gt;&amp;gt;SQLDriverConnect failed :FATAL: password authentication failed for user &amp;quot;dbuser&amp;quot;
&lt;br&gt;CACHE.
&lt;br&gt;EXECUTE.
&lt;br&gt;&lt;br&gt;&amp;gt;Error # 105. &amp;nbsp;Command name: EXECUTE
&lt;br&gt;&amp;gt;This command is not valid before a working file has been defined.
&lt;br&gt;&amp;gt;This command not executed.
&lt;br&gt;DATASET NAME DataSet1 WINDOW=FRONT.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;[860-0.031]enter CC_Destructor, self=00A83AC0
&lt;br&gt;[860-0.047]in CC_Cleanup, self=00A83AC0
&lt;br&gt;[860-0.047]after CC_abort
&lt;br&gt;[860-0.047]SOCK_Destructor
&lt;br&gt;[860-0.047]after SOCK destructor
&lt;br&gt;[860-0.047]exit CC_Cleanup
&lt;br&gt;[860-0.047]after CC_Cleanup
&lt;br&gt;[860-0.047]after free statement holders
&lt;br&gt;[860-0.047]exit CC_Destructor
&lt;br&gt;[860-0.047]in EN_Destructor, self=00A82138
&lt;br&gt;[860-0.047]clearing conns count=128
&lt;br&gt;[860-0.047]exit EN_Destructor: rv = 1
&lt;br&gt;[860-15.781]DETACHING PROCESS
&lt;br&gt;&lt;br&gt;&lt;br&gt;[1620-0.000]globals.extra_systable_prefixes = 'dd_;'
&lt;br&gt;[1620-0.000]exe name=spss plaformId=2
&lt;br&gt;[1620-0.000][[SQLAllocHandle]][1620-0.000]**** in PGAPI_AllocEnv **
&lt;br&gt;[1620-0.016]** exit PGAPI_AllocEnv: phenv = 28A23CB0 **
&lt;br&gt;[1620-0.016][[SQLSetEnvAttr]] att=200,2
&lt;br&gt;[1620-0.016][[SQLAllocHandle]][1620-0.016]PGAPI_AllocConnect: entering...
&lt;br&gt;[1620-0.016]**** PGAPI_AllocConnect: henv = 28A23CB0, conn = 28A23CE0
&lt;br&gt;[1620-0.016]EN_add_connection: self = 28A23CB0, conn = 28A23CE0
&lt;br&gt;[1620-0.016] &amp;nbsp; &amp;nbsp; &amp;nbsp;added at 0, conn-&amp;gt;henv = 28A23CB0, conns[0]-&amp;gt;henv = 28A23CB0
&lt;br&gt;[1620-0.016][SQLGetInfo(30)][1620-0.031]PGAPI_GetInfo: entering...fInfoType=77
&lt;br&gt;[1620-0.031]PGAPI_GetInfo: p='03.50', len=0, value=0, cbMax=12
&lt;br&gt;[1620-0.031][SQLDriverConnect][1620-0.031]PGAPI_DriverConnect: entering...
&lt;br&gt;[1620-0.031]**** PGAPI_DriverConnect: fDriverCompletion=0, connStrIn='DSN=PostgreSQL30;'
&lt;br&gt;[1620-0.031]our_connect_string = 'DSN=PostgreSQL30;'
&lt;br&gt;[1620-0.047]attribute = 'DSN', value = 'PostgreSQL30'
&lt;br&gt;[1620-0.047]copyAttributes: DSN='PostgreSQL30',server='',dbase='',user='',passwd='xxxxx',port='',onlyread='',protocol='',conn_settings='',disallow_premature=-1)
&lt;br&gt;[1620-0.047]getDSNinfo: DSN=PostgreSQL30 overwrite=0
&lt;br&gt;[1620-0.047]force_abbrev=0 bde=0 cvt_null_date=0
&lt;br&gt;[1620-0.047]globals.extra_systable_prefixes = 'dd_;'
&lt;br&gt;[1620-0.062]our_connect_string = 'DSN=PostgreSQL30;'
&lt;br&gt;[1620-0.062]attribute = 'DSN', value = 'PostgreSQL30'
&lt;br&gt;[1620-0.062]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=0;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;
&lt;br&gt;&lt;br&gt;&lt;br&gt;[0.031]conn=28A23CE0, PGAPI_DriverConnect( in)='DSN=PostgreSQL30;', fDriverCompletion=0
&lt;br&gt;[0.047]DSN info: DSN='PostgreSQL30',server='my.server.name',port='5432',dbase='my_database',user='dbuser',passwd='xxxxx'
&lt;br&gt;[0.062] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;onlyread='0',protocol='7.4',showoid='0',fakeoidindex='0',showsystable='0'
&lt;br&gt;[0.062] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn_settings='', conn_encoding='(null)'
&lt;br&gt;[0.062] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;translation_dll='',translation_option=''
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----
&lt;br&gt;From: Hiroshi Inoue &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623082&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;inoue@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: Chris Davis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623082&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c_b_dvs@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623082&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&lt;/a&gt;
&lt;br&gt;Sent: Thu, November 26, 2009 4:38:16 PM
&lt;br&gt;Subject: Re: [ODBC] md5 authentication issues with psqlODBC driver for Windows
&lt;br&gt;&lt;br&gt;Chris Davis wrote:
&lt;br&gt;&amp;gt; I've been running into an issue where I get an error &amp;quot;password authentication failed&amp;quot; while using the psql ODBC driver for Windows, with the database residing on a Linux machine. &amp;nbsp;
&lt;br&gt;&amp;gt; I know my current setup is (relatively) correct since:
&lt;br&gt;&amp;gt; 1) I've previously used a JDBC driver with postgres and md5 authentication, with no problems (with Linux on both client and server)
&lt;br&gt;&amp;gt; 2) In Windows I can look at the ODBC sources and always verify that I can connect to the database
&lt;br&gt;&amp;gt; 3) I'm able to fix the problem by using trust instead of md5 authentication
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Basically, I'm using the driver to connect the statistics program SPSS to a database. &amp;nbsp;I can always connect to the database and see the tables, but the problem occurs when I try to make a query. &amp;nbsp;The first time might work and actually return results, but after that, I consistently get the &amp;quot;password authentication failed&amp;quot; error. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Could you send me the Mylog output of the error ?
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Hiroshi Inoue
&lt;br&gt;&lt;br&gt;-- Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623082&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623082&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/md5-authentication-issues-with-psqlODBC-driver-for-Windows-tp26502893p26623082.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26595528</id>
	<title>Re: [GENERAL] [HACKERS] Fwd: psql+krb5</title>
	<published>2009-12-01T08:26:36Z</published>
	<updated>2009-12-01T08:26:36Z</updated>
	<author>
		<name>Scott Marlowe-2</name>
	</author>
	<content type="html">Except that he posted a month ago and got no answers...
&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 8:22 AM, Robert Haas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595528&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robertmhaas@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2009/11/30 rahimeh khodadadi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595528&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rahimeh.khodadadi@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------- Forwarded message ----------
&lt;br&gt;&amp;gt;&amp;gt; From: rahimeh khodadadi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595528&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rahimeh.khodadadi@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Date: 2009/11/29
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: psql+krb5
&lt;br&gt;&amp;gt;&amp;gt; To: Denis Feklushkin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595528&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;denis.feklushkin@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please review the guidelines for reporting a problem, which you can find here:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://wiki.postgresql.org/wiki/Guide_to_reporting_problems&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.postgresql.org/wiki/Guide_to_reporting_problems&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It seems to me that you've done the exact opposite of nearly
&lt;br&gt;&amp;gt; everything suggested there, starting with cross-posting your email to
&lt;br&gt;&amp;gt; four mailing lists at least three of which are irrelevant to the
&lt;br&gt;&amp;gt; problem that you're attempting to solve.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...Robert
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Sent via pgsql-general mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595528&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-general@...&lt;/a&gt;)
&lt;br&gt;&amp;gt; To make changes to your subscription:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.postgresql.org/mailpref/pgsql-general&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-general&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;When fascism comes to America, it will be intolerance sold as diversity.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595528&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A-psql%2Bkrb5-tp26570503p26595528.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26593584</id>
	<title>Re: [HACKERS] Fwd: psql+krb5</title>
	<published>2009-12-01T07:22:03Z</published>
	<updated>2009-12-01T07:22:03Z</updated>
	<author>
		<name>Robert Haas</name>
	</author>
	<content type="html">2009/11/30 rahimeh khodadadi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593584&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rahimeh.khodadadi@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------- Forwarded message ----------
&lt;br&gt;&amp;gt; From: rahimeh khodadadi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593584&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rahimeh.khodadadi@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: 2009/11/29
&lt;br&gt;&amp;gt; Subject: Re: psql+krb5
&lt;br&gt;&amp;gt; To: Denis Feklushkin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593584&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;denis.feklushkin@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Please review the guidelines for reporting a problem, which you can find here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.postgresql.org/wiki/Guide_to_reporting_problems&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.postgresql.org/wiki/Guide_to_reporting_problems&lt;/a&gt;&lt;br&gt;&lt;br&gt;It seems to me that you've done the exact opposite of nearly
&lt;br&gt;everything suggested there, starting with cross-posting your email to
&lt;br&gt;four mailing lists at least three of which are irrelevant to the
&lt;br&gt;problem that you're attempting to solve.
&lt;br&gt;&lt;br&gt;...Robert
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593584&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A-psql%2Bkrb5-tp26570503p26593584.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26623075</id>
	<title>Re: md5 authentication issues with psqlODBC driver for Windows</title>
	<published>2009-11-30T07:19:48Z</published>
	<updated>2009-11-30T07:19:48Z</updated>
	<author>
		<name>Chris Davis-10</name>
	</author>
	<content type="html">The first section is the output from SPSS which is trying to access the database. &amp;nbsp;The next three entries are from the log files.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Chris
&lt;br&gt;&lt;br&gt;GET DATA
&lt;br&gt;&amp;nbsp; /TYPE=ODBC
&lt;br&gt;&amp;nbsp; /CONNECT='DSN=PostgreSQL30;DATABASE=my_database;SERVER=my.server.name;PORT=5432;UID=dbuser;PWD=/_/%;c-R,K&amp;gt;d;m+#5q;C&amp;quot;/&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp;j&amp;gt;C5E;}=K*{&amp;lt;z0F5r;SSLmode=disable;ReadOnly=0;Protocol=7.4;FakeOidIndex=0;ShowOidColumn=0;RowVersioning='+
&lt;br&gt;&amp;nbsp; &amp;nbsp; '0;ShowSystemTables=0;ConnSettings=;Fetch=100;Socket=4096;UnknownSizes=0;MaxVarcharSize=255;MaxLongVarcharSize=8190;Debug=0;Comm
&lt;br&gt;&amp;nbsp; &amp;nbsp;Log=0;Optimizer=0;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;BoolsAsChar=1;Parse='+
&lt;br&gt;&amp;nbsp; &amp;nbsp; '0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;;LFConversion=1;UpdatableCursors=1;DisallowPremature=0;TrueIsMinus1=0;BI=0;Bytea
&lt;br&gt;&amp;nbsp; &amp;nbsp;AsLongVarBinary=0;UseServerSidePrepare=0;LowerCaseIdentifier=0;XaOpt=1'
&lt;br&gt;&amp;nbsp; /SQL='SELECT fractioninternalmass &amp;nbsp;FROM public.rerunalcmemorysize50 &amp;nbsp;WHERE (tick = 1) LIMIT 10'
&lt;br&gt;&amp;nbsp; /ASSUMEDSTRWIDTH=255.
&lt;br&gt;&lt;br&gt;&amp;gt;Warning. &amp;nbsp;Command name: GET DATA
&lt;br&gt;&amp;gt;SQLDriverConnect failed :FATAL: password authentication failed for user &amp;quot;dbuser&amp;quot;
&lt;br&gt;CACHE.
&lt;br&gt;EXECUTE.
&lt;br&gt;&lt;br&gt;&amp;gt;Error # 105. &amp;nbsp;Command name: EXECUTE
&lt;br&gt;&amp;gt;This command is not valid before a working file has been defined.
&lt;br&gt;&amp;gt;This command not executed.
&lt;br&gt;DATASET NAME DataSet1 WINDOW=FRONT.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;[860-0.031]enter CC_Destructor, self=00A83AC0
&lt;br&gt;[860-0.047]in CC_Cleanup, self=00A83AC0
&lt;br&gt;[860-0.047]after CC_abort
&lt;br&gt;[860-0.047]SOCK_Destructor
&lt;br&gt;[860-0.047]after SOCK destructor
&lt;br&gt;[860-0.047]exit CC_Cleanup
&lt;br&gt;[860-0.047]after CC_Cleanup
&lt;br&gt;[860-0.047]after free statement holders
&lt;br&gt;[860-0.047]exit CC_Destructor
&lt;br&gt;[860-0.047]in EN_Destructor, self=00A82138
&lt;br&gt;[860-0.047]clearing conns count=128
&lt;br&gt;[860-0.047]exit EN_Destructor: rv = 1
&lt;br&gt;[860-15.781]DETACHING PROCESS
&lt;br&gt;&lt;br&gt;&lt;br&gt;[1620-0.000]globals.extra_systable_prefixes = 'dd_;'
&lt;br&gt;[1620-0.000]exe name=spss plaformId=2
&lt;br&gt;[1620-0.000][[SQLAllocHandle]][1620-0.000]**** in PGAPI_AllocEnv ** 
&lt;br&gt;[1620-0.016]** exit PGAPI_AllocEnv: phenv = 28A23CB0 **
&lt;br&gt;[1620-0.016][[SQLSetEnvAttr]] att=200,2
&lt;br&gt;[1620-0.016][[SQLAllocHandle]][1620-0.016]PGAPI_AllocConnect: entering...
&lt;br&gt;[1620-0.016]**** PGAPI_AllocConnect: henv = 28A23CB0, conn = 28A23CE0
&lt;br&gt;[1620-0.016]EN_add_connection: self = 28A23CB0, conn = 28A23CE0
&lt;br&gt;[1620-0.016] &amp;nbsp; &amp;nbsp; &amp;nbsp; added at 0, conn-&amp;gt;henv = 28A23CB0, conns[0]-&amp;gt;henv = 28A23CB0
&lt;br&gt;[1620-0.016][SQLGetInfo(30)][1620-0.031]PGAPI_GetInfo: entering...fInfoType=77
&lt;br&gt;[1620-0.031]PGAPI_GetInfo: p='03.50', len=0, value=0, cbMax=12
&lt;br&gt;[1620-0.031][SQLDriverConnect][1620-0.031]PGAPI_DriverConnect: entering...
&lt;br&gt;[1620-0.031]**** PGAPI_DriverConnect: fDriverCompletion=0, connStrIn='DSN=PostgreSQL30;'
&lt;br&gt;[1620-0.031]our_connect_string = 'DSN=PostgreSQL30;'
&lt;br&gt;[1620-0.047]attribute = 'DSN', value = 'PostgreSQL30'
&lt;br&gt;[1620-0.047]copyAttributes: DSN='PostgreSQL30',server='',dbase='',user='',passwd='xxxxx',port='',onlyread='',protocol='',conn_settings='',disallow_premature=-1)
&lt;br&gt;[1620-0.047]getDSNinfo: DSN=PostgreSQL30 overwrite=0
&lt;br&gt;[1620-0.047]force_abbrev=0 bde=0 cvt_null_date=0
&lt;br&gt;[1620-0.047]globals.extra_systable_prefixes = 'dd_;'
&lt;br&gt;[1620-0.062]our_connect_string = 'DSN=PostgreSQL30;'
&lt;br&gt;[1620-0.062]attribute = 'DSN', value = 'PostgreSQL30'
&lt;br&gt;[1620-0.062]copyCommonAttributes: A7=100;A8=4096;A9=0;B0=255;B1=8190;B2=0;B3=0;B4=0;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_;
&lt;br&gt;&lt;br&gt;&lt;br&gt;[0.031]conn=28A23CE0, PGAPI_DriverConnect( in)='DSN=PostgreSQL30;', fDriverCompletion=0
&lt;br&gt;[0.047]DSN info: DSN='PostgreSQL30',server='my.server.name',port='5432',dbase='my_database',user='dbuser',passwd='xxxxx'
&lt;br&gt;[0.062] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;onlyread='0',protocol='7.4',showoid='0',fakeoidindex='0',showsystable='0'
&lt;br&gt;[0.062] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn_settings='', conn_encoding='(null)'
&lt;br&gt;[0.062] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;translation_dll='',translation_option=''
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----
&lt;br&gt;From: Hiroshi Inoue &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623075&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;inoue@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: Chris Davis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623075&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c_b_dvs@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623075&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&lt;/a&gt;
&lt;br&gt;Sent: Thu, November 26, 2009 4:38:16 PM
&lt;br&gt;Subject: Re: [ODBC] md5 authentication issues with psqlODBC driver for Windows
&lt;br&gt;&lt;br&gt;Chris Davis wrote:
&lt;br&gt;&amp;gt; I've been running into an issue where I get an error &amp;quot;password authentication failed&amp;quot; while using the psql ODBC driver for Windows, with the database residing on a Linux machine. &amp;nbsp;
&lt;br&gt;&amp;gt; I know my current setup is (relatively) correct since:
&lt;br&gt;&amp;gt; 1) I've previously used a JDBC driver with postgres and md5 authentication, with no problems (with Linux on both client and server)
&lt;br&gt;&amp;gt; 2) In Windows I can look at the ODBC sources and always verify that I can connect to the database
&lt;br&gt;&amp;gt; 3) I'm able to fix the problem by using trust instead of md5 authentication
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Basically, I'm using the driver to connect the statistics program SPSS to a database. &amp;nbsp;I can always connect to the database and see the tables, but the problem occurs when I try to make a query. &amp;nbsp;The first time might work and actually return results, but after that, I consistently get the &amp;quot;password authentication failed&amp;quot; error. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Could you send me the Mylog output of the error ?
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Hiroshi Inoue
&lt;br&gt;&lt;br&gt;-- Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623075&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623075&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/md5-authentication-issues-with-psqlODBC-driver-for-Windows-tp26502893p26623075.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26576025</id>
	<title>[ psqlodbc-Bugs-1010735 ] Error on method Fields using client side recordset</title>
	<published>2009-11-30T06:58:37Z</published>
	<updated>2009-11-30T06:58:37Z</updated>
	<author>
		<name>noreply-13</name>
	</author>
	<content type="html">Bugs item #1010735, was opened at 30/11/2009 15:54
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&lt;/a&gt;&lt;br&gt;&lt;br&gt;Category: None
&lt;br&gt;Group: None
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 3
&lt;br&gt;Submitted By: Gregory Fernandez (lgringo)
&lt;br&gt;Assigned to: Nobody (None)
&lt;br&gt;Summary: Error on method Fields using client side recordset
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I got &amp;quot;Multiple-step operation generated errors. Check each status value.&amp;quot; when I try to assign a field, using a recordset with client side property set.
&lt;br&gt;&lt;br&gt;Visual Basic code :
&lt;br&gt;01 Dim cx As New &amp;nbsp;ADODB.Connection
&lt;br&gt;02 Set cx = ADODB.Connection
&lt;br&gt;03 cx.Open &amp;quot;Driver={PostgreSQL Unicode};Server=127.0.0.1;Database=mydb;UID=XXX;PWD=XXX;&amp;quot;
&lt;br&gt;04 Dim rds As new ADODB.Recordset
&lt;br&gt;05 rds.CursorLocation = adUseClient
&lt;br&gt;06 rds.Open &amp;quot;SELECT * FROM bug&amp;quot;, cx, adOpenDynamic, adLockOptimistic
&lt;br&gt;07 rds.AddNew
&lt;br&gt;08 rds.Fields(&amp;quot;id&amp;quot;) = 1
&lt;br&gt;09 rds.Fields(&amp;quot;texte&amp;quot;) = &amp;quot;texte&amp;quot;
&lt;br&gt;10 rds.Update
&lt;br&gt;11 rds.Close
&lt;br&gt;12 cx.Close
&lt;br&gt;&lt;br&gt;Version 8.03.04.00 works fine.
&lt;br&gt;Version 8.04.01.00 gives the error (&amp;quot;Multiple-step operation generated errors ...&amp;quot;).
&lt;br&gt;&lt;br&gt;Server used : PostgreSQL 8.3.8
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Comment By: Gregory Fernandez (lgringo)
&lt;br&gt;Date: 30/11/2009 15:58
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;NB: Removing line 05 solves my problem for this test but my
&lt;br&gt;main application needs adUseClient.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576025&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--psqlodbc-Bugs-1010735---Error-on-method-Fields-using-client-side-recordset-tp26576025p26576025.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26576020</id>
	<title>[ psqlodbc-Bugs-1010735 ] Error on method Fields using client side recordset</title>
	<published>2009-11-30T06:58:03Z</published>
	<updated>2009-11-30T06:58:03Z</updated>
	<author>
		<name>noreply-13</name>
	</author>
	<content type="html">Bugs item #1010735, was opened at 30/11/2009 15:54
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&lt;/a&gt;&lt;br&gt;&lt;br&gt;Category: None
&lt;br&gt;Group: None
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 3
&lt;br&gt;Submitted By: Gregory Fernandez (lgringo)
&lt;br&gt;Assigned to: Nobody (None)
&lt;br&gt;Summary: Error on method Fields using client side recordset
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I got &amp;quot;Multiple-step operation generated errors. Check each status value.&amp;quot; when I try to assign a field, using a recordset with client side property set.
&lt;br&gt;&lt;br&gt;Visual Basic code :
&lt;br&gt;01 Dim cx As New &amp;nbsp;ADODB.Connection
&lt;br&gt;02 Set cx = ADODB.Connection
&lt;br&gt;03 cx.Open &amp;quot;Driver={PostgreSQL Unicode};Server=127.0.0.1;Database=mydb;UID=XXX;PWD=XXX;&amp;quot;
&lt;br&gt;04 Dim rds As new ADODB.Recordset
&lt;br&gt;05 rds.CursorLocation = adUseClient
&lt;br&gt;06 rds.Open &amp;quot;SELECT * FROM bug&amp;quot;, cx, adOpenDynamic, adLockOptimistic
&lt;br&gt;07 rds.AddNew
&lt;br&gt;08 rds.Fields(&amp;quot;id&amp;quot;) = 1
&lt;br&gt;09 rds.Fields(&amp;quot;texte&amp;quot;) = &amp;quot;texte&amp;quot;
&lt;br&gt;10 rds.Update
&lt;br&gt;11 rds.Close
&lt;br&gt;12 cx.Close
&lt;br&gt;&lt;br&gt;Version 8.03.04.00 works fine.
&lt;br&gt;Version 8.04.01.00 gives the error (&amp;quot;Multiple-step operation generated errors ...&amp;quot;).
&lt;br&gt;&lt;br&gt;Server used : PostgreSQL 8.3.8
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt;Comment By: Gregory Fernandez (lgringo)
&lt;br&gt;Date: 30/11/2009 15:58
&lt;br&gt;&lt;br&gt;Message:
&lt;br&gt;NB: Removing line 05 solves my problem for this test but my
&lt;br&gt;main application needs adUseClient.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576020&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--psqlodbc-Bugs-1010735---Error-on-method-Fields-using-client-side-recordset-tp26576020p26576020.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26575978</id>
	<title>[ psqlodbc-Bugs-1010735 ] Error on method Fields using client side recordset</title>
	<published>2009-11-30T06:54:40Z</published>
	<updated>2009-11-30T06:54:40Z</updated>
	<author>
		<name>noreply-13</name>
	</author>
	<content type="html">Bugs item #1010735, was opened at 30/11/2009 15:54
&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&lt;/a&gt;&lt;br&gt;&lt;br&gt;Category: None
&lt;br&gt;Group: None
&lt;br&gt;Status: Open
&lt;br&gt;Resolution: None
&lt;br&gt;Priority: 3
&lt;br&gt;Submitted By: Gregory Fernandez (lgringo)
&lt;br&gt;Assigned to: Nobody (None)
&lt;br&gt;Summary: Error on method Fields using client side recordset
&lt;br&gt;&lt;br&gt;Initial Comment:
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I got &amp;quot;Multiple-step operation generated errors. Check each status value.&amp;quot; when I try to assign a field, using a recordset with client side property set.
&lt;br&gt;&lt;br&gt;Visual Basic code :
&lt;br&gt;01 Dim cx As New &amp;nbsp;ADODB.Connection
&lt;br&gt;02 Set cx = ADODB.Connection
&lt;br&gt;03 cx.Open &amp;quot;Driver={PostgreSQL Unicode};Server=127.0.0.1;Database=mydb;UID=XXX;PWD=XXX;&amp;quot;
&lt;br&gt;04 Dim rds As new ADODB.Recordset
&lt;br&gt;05 rds.CursorLocation = adUseClient
&lt;br&gt;06 rds.Open &amp;quot;SELECT * FROM bug&amp;quot;, cx, adOpenDynamic, adLockOptimistic
&lt;br&gt;07 rds.AddNew
&lt;br&gt;08 rds.Fields(&amp;quot;id&amp;quot;) = 1
&lt;br&gt;09 rds.Fields(&amp;quot;texte&amp;quot;) = &amp;quot;texte&amp;quot;
&lt;br&gt;10 rds.Update
&lt;br&gt;11 rds.Close
&lt;br&gt;12 cx.Close
&lt;br&gt;&lt;br&gt;Version 8.03.04.00 works fine.
&lt;br&gt;Version 8.04.01.00 gives the error (&amp;quot;Multiple-step operation generated errors ...&amp;quot;).
&lt;br&gt;&lt;br&gt;Server used : PostgreSQL 8.3.8
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;You can respond by visiting: 
&lt;br&gt;&lt;a href=&quot;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/tracker/?func=detail&amp;atid=538&amp;aid=1010735&amp;group_id=1000125&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575978&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/--psqlodbc-Bugs-1010735---Error-on-method-Fields-using-client-side-recordset-tp26575978p26575978.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26570503</id>
	<title>Fwd: psql+krb5</title>
	<published>2009-11-29T23:29:35Z</published>
	<updated>2009-11-29T23:29:35Z</updated>
	<author>
		<name>rahimeh khodadadi</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;---------- Forwarded message ----------&lt;br&gt;From: &lt;b class=&quot;gmail_sendername&quot;&gt;rahimeh khodadadi&lt;/b&gt; &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rahimeh.khodadadi@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
Date: 2009/11/29&lt;br&gt;Subject: Re: psql+krb5&lt;br&gt;To: Denis Feklushkin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;denis.feklushkin@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;These items have added after my sending. &lt;br&gt; &lt;br&gt;I repeat again my configurations:&lt;br&gt;
 &lt;br&gt;&lt;font size=&quot;2&quot;&gt;&lt;br&gt;&lt;b&gt;&lt;div class=&quot;im&quot;&gt;1) The configuration of  krb5.conf is:&lt;br&gt; [realms]&lt;br&gt;&lt;/div&gt;   &lt;a href=&quot;http://example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;EXAMPLE.COM&lt;/a&gt; ={&lt;div class=&quot;im&quot;&gt;&lt;br&gt;

     kdc=star :88&lt;br&gt;     admin_server=star:749&lt;br&gt;     default_domain= &lt;a href=&quot;http://example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;example.com&lt;/a&gt;&lt;br&gt;}&lt;br&gt;&lt;/div&gt;.....&lt;/b&gt;&lt;br&gt;&lt;br&gt;2) Then, I created principal as&lt;b&gt; &amp;quot;  postgres/&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;star@...&lt;/a&gt; &amp;quot;&lt;/b&gt; and its password is saved in&lt;b&gt; &amp;#39;/usr/local/pgsql/data/postgresql.keytab&amp;#39; .&lt;/b&gt;&lt;div class=&quot;im&quot;&gt;
&lt;br&gt;

&lt;br&gt;(star is localhost IP, but in hosts.conf I configure like: 213.233.169.93   star)&lt;br&gt;&lt;br&gt;3) I setup &lt;b&gt;postgresql.conf &lt;/b&gt;as below:&lt;br&gt;&lt;br&gt;krb_server_keyfile = &amp;#39;/usr/local/pgsql/data/&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;
postgresql.keytab&amp;#39;&lt;br&gt;
krb_srvname = &amp;#39;postgres/&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;star@...&lt;/a&gt;&amp;#39;&lt;div class=&quot;im&quot;&gt;&lt;br&gt;krb_server_hostname = &amp;#39;star&amp;#39;         # empty string matches any keytab entry&lt;br&gt;krb_caseins_users = off &lt;br&gt;


&lt;br&gt;4) I &lt;b&gt;create user &amp;quot;frank&amp;quot;&lt;/b&gt;  in Psql .&lt;br&gt;&lt;br&gt;5) Then I set up&lt;b&gt; hba.conf :&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;host    all         all         &lt;a href=&quot;http://0.0.0.0/0&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;0.0.0.0/0&lt;/a&gt;              krb5 &lt;br&gt;
host    all         all         &lt;a href=&quot;http://127.0.0.1/32&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;127.0.0.1/32&lt;/a&gt;           krb5&lt;div class=&quot;im&quot;&gt;&lt;br&gt;

&lt;br&gt;
When I want to connect to Postgresql, it gives error. &lt;br&gt;&lt;br&gt;# &lt;b&gt;kinit frank&lt;/b&gt;&lt;br&gt;&lt;br&gt;[root@star bin]# &lt;b&gt;./psql -h star  -U frank  -d test&lt;/b&gt;&lt;/div&gt;&lt;/font&gt;&lt;div class=&quot;im&quot;&gt;



&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&lt;br&gt;psql: &lt;b&gt;krb5_sendauth: Bad application version was sent (via sendauth)&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;/font&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;font size=&quot;2&quot;&gt;I should mention that &lt;b&gt; both postgresql server and krb-server are in same system&lt;/b&gt; and&lt;b&gt; my IP is acquring from dhcp server  of university&lt;/b&gt;.  Where is wrong. &lt;br&gt;
&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
2009/11/29 Denis Feklushkin &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;denis.feklushkin@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

On Sun, 29 Nov 2009 14:23:52 +0330&lt;br&gt;
&lt;div&gt;rahimeh khodadadi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rahimeh.khodadadi@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;div&gt;&amp;gt; Thanks for your replying. My detail of configuration is:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I try to setup kerberos authentication in Postgresql 8.1.18 on centos.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; But I have some problem.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 1) The configuration of  krb5.conf is:&lt;br&gt;
&amp;gt;  [realms]&lt;br&gt;
&lt;/div&gt;&amp;gt;   &lt;a href=&quot;http://EXAMPLE.COM&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;EXAMPLE.COM&lt;/a&gt; &amp;lt;&lt;a href=&quot;http://example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://example.com/&lt;/a&gt;&amp;gt;&amp;lt;&lt;a href=&quot;http://EXAMPLE.COM&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://EXAMPLE.COM&lt;/a&gt;&lt;br&gt;


&amp;gt; &amp;lt;&lt;a href=&quot;http://example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://example.com/&lt;/a&gt;&amp;gt;&amp;gt; ={&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&amp;gt;&lt;br&gt;
&amp;gt;     kdc=star :88&lt;br&gt;
&amp;gt;     admin_server=star:749&lt;br&gt;
&amp;gt;     default_domain= &lt;a href=&quot;http://example.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;example.com&lt;/a&gt;&amp;lt;&lt;a href=&quot;http://example.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://example.com&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; }&lt;br&gt;
&amp;gt; &amp;gt; .....&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; 2) Then, I created principal as &amp;quot;  postgres/&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;star@...&lt;/a&gt;&amp;lt;mailto:&lt;br&gt;
&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;star@...&lt;/a&gt;&amp;gt; &amp;quot; and its password is saved in&lt;br&gt;
&amp;gt; &amp;gt; &amp;#39;/usr/local/pgsql/data/postgresql.keytab&amp;#39; .&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; (star is localhost IP, but in hosts.conf I configure like:&lt;br&gt;
&amp;gt; &amp;gt; 213.233.169.93 star)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; 3) I setup postgresql.conf as below:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; krb_server_keyfile = &amp;#39;/usr/local/pgsql/data/&lt;br&gt;
&amp;gt; &amp;gt; postgresql.keytab&amp;#39;&lt;br&gt;
&amp;gt; &amp;gt; krb_srvname = &amp;#39;postgres/&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;star@...&lt;/a&gt;&amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;star@...&lt;/a&gt;&amp;gt;&amp;#39;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; krb_server_hostname = &amp;#39;star&amp;#39;         # empty string matches any&lt;br&gt;
&amp;gt; &amp;gt; keytab entry&lt;br&gt;
&amp;gt; &amp;gt; krb_caseins_users = off&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; 4) I create user &amp;quot;frank&amp;quot;  in Psql .&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; 5) Then I set up hba.conf :&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; host    all         all         &lt;a href=&quot;http://0.0.0.0/0&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;0.0.0.0/0&lt;/a&gt;&amp;lt;&lt;a href=&quot;http://0.0.0.0/0&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://0.0.0.0/0&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;  krb5&lt;br&gt;
&amp;gt; &amp;gt; host    all         all         &lt;a href=&quot;http://127.0.0.1/32&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;127.0.0.1/32&lt;/a&gt;&amp;lt;&lt;a href=&quot;http://127.0.0.1/32&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/32&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;   krb5&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; When I want to connect to Postgresql, it gives error.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; # kinit frank&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; [root@star bin]# ./psql -h star  -U frank  -d test&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; psql: krb5_sendauth: Bad application version was sent (via sendauth)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; some changes in users gives below error :&lt;br&gt;
&amp;gt; &amp;quot;[root@www bin]# ./psql -h 213.233.168.249  -U postgres&lt;br&gt;
&amp;gt;   psql: Kerberos 5 authentication rejected:  Wrong principal in&lt;br&gt;
&amp;gt; request&amp;quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I should mention that  both postgresql server and krb-server are in&lt;br&gt;
&amp;gt; &amp;gt; same system and my IP is acquring from dhcp server  of university.&lt;br&gt;
&amp;gt; &amp;gt; Where is wrong.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 2009/11/29 Denis Feklushkin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;denis.feklushkin@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Sun, 29 Nov 2009 10:48:30 +0330&lt;br&gt;
&amp;gt; &amp;gt; rahimeh khodadadi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rahimeh.khodadadi@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; When I want to connect to psql via krb5 in Linux, it gives me&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; error like: &amp;quot;[root@www bin]# ./psql -h 213.233.168.249  -U&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; postgres psql: Kerberos 5 authentication rejected:  Wrong&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; principal in request&amp;quot;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Что в логах KDC?&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;    ^^^^^^^^^^^^^^^^ !!!&lt;br&gt;
&lt;br&gt;
И ещё, в тексте который Вы дали встречаются пробелы в именах&lt;br&gt;
принципалов и странные записи &amp;quot;&amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570503&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;star@...&lt;/a&gt;&amp;gt;&amp;quot;&lt;br&gt;
&lt;br&gt;
При настройке важно чтобы ничего этого небыло&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;-- &lt;br&gt;With Best Regards&lt;br&gt;Miss.KHodadadi&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;With Best Regards&lt;br&gt;Miss.KHodadadi&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A-psql%2Bkrb5-tp26570503p26570503.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531187</id>
	<title>Re: md5 authentication issues with psqlODBC driver for Windows</title>
	<published>2009-11-26T07:38:16Z</published>
	<updated>2009-11-26T07:38:16Z</updated>
	<author>
		<name>Hiroshi Inoue</name>
	</author>
	<content type="html">Chris Davis wrote:
&lt;br&gt;&amp;gt; I've been running into an issue where I get an error &amp;quot;password authentication failed&amp;quot; while using the psql ODBC driver for Windows, with the database residing on a Linux machine. &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I know my current setup is (relatively) correct since:
&lt;br&gt;&amp;gt; 1) I've previously used a JDBC driver with postgres and md5 authentication, with no problems (with Linux on both client and server)
&lt;br&gt;&amp;gt; 2) In Windows I can look at the ODBC sources and always verify that I can connect to the database
&lt;br&gt;&amp;gt; 3) I'm able to fix the problem by using trust instead of md5 authentication
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Basically, I'm using the driver to connect the statistics program SPSS to a database. &amp;nbsp;I can always connect to the database and see the tables, but the problem occurs when I try to make a query. &amp;nbsp;The first time might work and actually return results, but after that, I consistently get the &amp;quot;password authentication failed&amp;quot; error. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Could you send me the Mylog output of the error ?
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Hiroshi Inoue
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531187&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/md5-authentication-issues-with-psqlODBC-driver-for-Windows-tp26502893p26531187.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528093</id>
	<title>Re: odbc driver leaks memory when connection failed</title>
	<published>2009-11-26T03:34:16Z</published>
	<updated>2009-11-26T03:34:16Z</updated>
	<author>
		<name>Hiroshi Inoue</name>
	</author>
	<content type="html">&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528093&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shoji.morimoto@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; Thank you very much for your quick support.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I would commit the change to cvs.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When do you estimate the date of official release ?
&lt;br&gt;&lt;br&gt;In ten days or so, maybe.
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Hiroshi Inoue
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528093&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/odbc-driver-leaks-memory-when-connection-failed-tp26401106p26528093.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26502893</id>
	<title>md5 authentication issues with psqlODBC driver for Windows</title>
	<published>2009-11-24T12:40:29Z</published>
	<updated>2009-11-24T12:40:29Z</updated>
	<author>
		<name>Chris Davis-10</name>
	</author>
	<content type="html">I've been running into an issue where I get an error &amp;quot;password authentication failed&amp;quot; while using the psql ODBC driver for Windows, with the database residing on a Linux machine. &amp;nbsp;
&lt;br&gt;&lt;br&gt;I know my current setup is (relatively) correct since:
&lt;br&gt;1) I've previously used a JDBC driver with postgres and md5 authentication, with no problems (with Linux on both client and server)
&lt;br&gt;2) In Windows I can look at the ODBC sources and always verify that I can connect to the database
&lt;br&gt;3) I'm able to fix the problem by using trust instead of md5 authentication
&lt;br&gt;&lt;br&gt;Basically, I'm using the driver to connect the statistics program SPSS to a database. &amp;nbsp;I can always connect to the database and see the tables, but the problem occurs when I try to make a query. &amp;nbsp;The first time might work and actually return results, but after that, I consistently get the &amp;quot;password authentication failed&amp;quot; error. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Is there a chance this is a bug/human error with how I'm using the driver, or should I be on the SPSS message forum instead?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26502893&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/md5-authentication-issues-with-psqlODBC-driver-for-Windows-tp26502893p26502893.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26495342</id>
	<title>Re: VBA ADO Command Date Parameter Not Working</title>
	<published>2009-11-24T04:47:44Z</published>
	<updated>2009-11-24T04:47:44Z</updated>
	<author>
		<name>Josh T</name>
	</author>
	<content type="html">Hiroshi Inoue wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It seemd 2 commas are needed, i.e.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.Execute ,, adExecuteNoRecords
&lt;br&gt;&lt;br&gt;Thank you very much, that was it. &amp;nbsp;(A stupid typo on my part, figures...)
&lt;br&gt;&lt;br&gt;Thanks again,
&lt;br&gt;Josh
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26495342&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VBA-ADO-Command-Date-Parameter-Not-Working-tp26481050p26495342.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26494103</id>
	<title>Re: SSL timeout?</title>
	<published>2009-11-24T03:11:17Z</published>
	<updated>2009-11-24T03:11:17Z</updated>
	<author>
		<name>Hiroshi Inoue</name>
	</author>
	<content type="html">Jan-Peter Seifert wrote:
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Could you please try the drivers on testing for 8.4.0101 at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.geocities.jp/inocchichichi/psqlodbc/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.geocities.jp/inocchichichi/psqlodbc/index.html&lt;/a&gt;&lt;br&gt;?
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Hiroshi Inoue
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; there's a problem with running some of our update-scripts via a SSL-encrypted connection. Our application is submitting the sql queries within transactions via psqlODBC.
&lt;br&gt;&amp;gt; Everything is fine as long as no encryption is used. However, as soon as ssl is being used the connection seems to close on transactions / commands taking longer than about 10 minutes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is the application's log for the part that fails:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:41:01] [5300] BEGIN;
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:41:01] [5300] SELECT pg_class.oid FROM pg_catalog.pg_class JOIN pg_namespace ON pg_class.relnamespace = pg_namespace.oid WHERE relname='tabelle' AND pg_namespace.nspname = current_schema()
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:41:01] [5300] SELECT a.atttypid, t.typname, d.adsrc FROM pg_catalog.pg_attribute a &amp;nbsp;JOIN pg_catalog.pg_type t ON a.atttypid=t.oid &amp;nbsp;LEFT OUTER JOIN pg_catalog.pg_attrdef d ON (a.attnum=d.adnum AND a.attrelid=d.adrelid) WHERE a.attrelid=109253095 AND a.attname='spalte';
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:41:01] [5300] SELECT atttypmod FROM pg_catalog.pg_attribute WHERE attname='spalte' AND attrelid=109253095;
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:41:01] [5300] SELECT attnotnull FROM pg_catalog.pg_attribute WHERE attname='spalte' AND attrelid=109253095;
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:41:01] [5300] SELECT COUNT(*) FROM tabelle;
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:41:01] [5300] CREATE TABLE tmp_mc_NUXKDB WITH OIDS AS SELECT * FROM tabelle;
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:41:54] [5300] DELETE FROM tabelle;
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:43:25] [5300] UPDATE pg_catalog.pg_attribute SET atttypmod=18 WHERE attname='spalte' AND attrelid=109253095;
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:43:25] [5300] INSERT INTO tabelle SELECT * FROM tmp_mc_NUXKDB;
&lt;br&gt;&amp;gt; [SQL 23.11.2009 14:51:41] [5300] ROLLBACK WORK;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The first error message is:
&lt;br&gt;&amp;gt; ODBC-Error - SQLExecDirect/ExecuteSQL: SQLSTATE = 42883 Native Error = 26 Error Message: No response from the backend; No response from the backend
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The rollback fails because of the closed connection.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; During the transaction in question a pretty large table ( 1.500.000 rows, 
&lt;br&gt;&amp;gt; 67633 relpages ) is being written to a temporary table, dropped, recreated and filled with the data from the temporary table. It seems that the connection closes on the INSERT command from the temporary table. The pgAdmin status window still shows this insert after the error message.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The app's code is pretty old, but it seems that this behaviour with ssl causes problems elsewhere as well.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * &amp;nbsp;your ODBC driver version
&lt;br&gt;&amp;gt; 08.04.0100 on Windows (seems to happen on earlier versions as well: 8.2.300, 8.3.400 ...)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * your PostgreSQL database version
&lt;br&gt;&amp;gt; v8.3.8 Windows and Linux
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you very much,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Peter
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494103&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SSL-timeout--tp26480968p26494103.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489467</id>
	<title>Re: odbc driver leaks memory when connection failed</title>
	<published>2009-11-23T18:08:59Z</published>
	<updated>2009-11-23T18:08:59Z</updated>
	<author>
		<name>shoji.morimoto</name>
	</author>
	<content type="html">Thank you very much for your quick support.
&lt;br&gt;&lt;br&gt;&amp;gt; I would commit the change to cvs.
&lt;br&gt;&lt;br&gt;When do you estimate the date of official release ?
&lt;br&gt;&lt;br&gt;--------------------------------------------------
&lt;br&gt;森本昭治 ソリトンシステムズ 開発部
&lt;br&gt;MORIMOTO Shouji &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489467&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shoji.morimoto@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Soliton Systems +81-3-5360-3830 FAX+81-3-5379-0280
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489467&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/odbc-driver-leaks-memory-when-connection-failed-tp26401106p26489467.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26487116</id>
	<title>Re: VBA ADO Command Date Parameter Not Working</title>
	<published>2009-11-23T14:22:15Z</published>
	<updated>2009-11-23T14:22:15Z</updated>
	<author>
		<name>Hiroshi Inoue</name>
	</author>
	<content type="html">Josh T wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm using the PSQL-ODBC driver from Excel 2002 VBA with a ADO Command 
&lt;br&gt;&amp;gt; object. &amp;nbsp;What is the correct way to pass a date into a parameter so it 
&lt;br&gt;&amp;gt; gets into the database correctly? - everything I've tried results in 
&lt;br&gt;&amp;gt; 1900-05-07 added to the DB instead of the correct date. I also get 
&lt;br&gt;&amp;gt; 1900-05-07 in the DB if I leave the date empty. &amp;nbsp;I've simplified my code 
&lt;br&gt;&amp;gt; into the following test case - I've had no problems with other data 
&lt;br&gt;&amp;gt; types. &amp;nbsp;I've already tried changing adDBDate, passing Date objects or 
&lt;br&gt;&amp;gt; strings.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Josh
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sub TestDateInsert()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim conn As ADODB.Connection
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Dim cmd As ADODB.Command
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Set conn = New ADODB.Connection
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; conn.Open &amp;quot;DSN=PRHTest&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Set cmd = New ADODB.Command
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.ActiveConnection = conn
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.CommandType = adCmdText
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.CommandText = &amp;quot;INSERT INTO test_table (test_date) VALUES (?);&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.Parameters.Append cmd.CreateParameter(&amp;quot;@test_date&amp;quot;, adDBDate,
&lt;br&gt;&amp;gt; adParamInput, , #11/23/2009#)
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; cmd.Execute , adExecuteNoRecords
&lt;br&gt;&lt;br&gt;It seemd 2 commas are needed, i.e.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmd.Execute ,, adExecuteNoRecords
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Hiroshi Inoue
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Set cmd = Nothing
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; conn.Close
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Set conn = Nothing
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; End Sub
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Database Table definition:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; CREATE TABLE test_table (
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; test_date date NOT NULL
&lt;br&gt;&amp;gt; );
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26487116&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VBA-ADO-Command-Date-Parameter-Not-Working-tp26481050p26487116.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485172</id>
	<title>Re: Windows 7 support</title>
	<published>2009-11-23T12:22:35Z</published>
	<updated>2009-11-23T12:22:35Z</updated>
	<author>
		<name>Richard Broersma</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 11:55 AM, Nick Snellock &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485172&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nick@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Is anyone working on Windows 7 support - specifically 64 bit?
&lt;br&gt;&lt;br&gt;I think someone else did some registry editing to get the 32 bit
&lt;br&gt;version to work.
&lt;br&gt;&lt;a href=&quot;http://archives.postgresql.org/pgsql-odbc/2009-11/msg00055.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org/pgsql-odbc/2009-11/msg00055.php&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://archives.postgresql.org/pgsql-odbc/2009-11/msg00056.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org/pgsql-odbc/2009-11/msg00056.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards,
&lt;br&gt;Richard Broersma Jr.
&lt;br&gt;&lt;br&gt;Visit the Los Angeles PostgreSQL Users Group (LAPUG)
&lt;br&gt;&lt;a href=&quot;http://pugs.postgresql.org/lapug&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pugs.postgresql.org/lapug&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485172&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-7-support-tp26484946p26485172.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485105</id>
	<title>Re: Windows 7 support</title>
	<published>2009-11-23T12:17:07Z</published>
	<updated>2009-11-23T12:17:07Z</updated>
	<author>
		<name>Richard Broersma</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 11:55 AM, Nick Snellock &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485105&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nick@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Is anyone working on Windows 7 support - specifically 64 bit?
&lt;br&gt;&lt;br&gt;I don't think that there is a community supported version yet. &amp;nbsp;But
&lt;br&gt;someone else as produced one in the short term until one is created.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/visionmap/wiki/psqlODBC&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/visionmap/wiki/psqlODBC&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards,
&lt;br&gt;Richard Broersma Jr.
&lt;br&gt;&lt;br&gt;Visit the Los Angeles PostgreSQL Users Group (LAPUG)
&lt;br&gt;&lt;a href=&quot;http://pugs.postgresql.org/lapug&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pugs.postgresql.org/lapug&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485105&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-7-support-tp26484946p26485105.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26484946</id>
	<title>Windows 7 support</title>
	<published>2009-11-23T11:55:59Z</published>
	<updated>2009-11-23T11:55:59Z</updated>
	<author>
		<name>Nick Snellock</name>
	</author>
	<content type="html">Is anyone working on Windows 7 support - specifically 64 bit?
&lt;br&gt;&lt;br&gt;Nick
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484946&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-7-support-tp26484946p26484946.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482939</id>
	<title>Re: VBA ADO Command Date Parameter Not Working</title>
	<published>2009-11-23T09:54:38Z</published>
	<updated>2009-11-23T09:54:38Z</updated>
	<author>
		<name>Josh T</name>
	</author>
	<content type="html">Richard Broersma wrote:
&lt;br&gt;&amp;gt; On Mon, Nov 23, 2009 at 9:24 AM, Josh T &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482939&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mortonjt@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; cmd.Parameters.Append cmd.CreateParameter(&amp;quot;@test_date&amp;quot;, adDBDate,
&lt;br&gt;&amp;gt;&amp;gt; adParamInput, 4, &amp;quot;2009-11-23&amp;quot;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does anything change is you set the byte size from 4 to something like 10 or 12?
&lt;br&gt;&lt;br&gt;Does not make a difference, nor does leaving empty.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;cmd.CommandText = &amp;quot;INSERT INTO test_table (test_date) VALUES (?);&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Another thought would be to rewrite the insert expression to:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; INSERT INTO Test_table( test_date )
&lt;br&gt;&amp;gt; VALUES( CAST( ? AS DATE ));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Although it probably wont help much.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;No luck either - I get 1900-05-07 if I use adDBDate, an error if I use 
&lt;br&gt;adVarChar.
&lt;br&gt;&lt;br&gt;Thanks again,
&lt;br&gt;Josh
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482939&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VBA-ADO-Command-Date-Parameter-Not-Working-tp26481050p26482939.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482659</id>
	<title>Re: VBA ADO Command Date Parameter Not Working</title>
	<published>2009-11-23T09:36:26Z</published>
	<updated>2009-11-23T09:36:26Z</updated>
	<author>
		<name>Richard Broersma</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 9:24 AM, Josh T &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482659&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mortonjt@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; cmd.Parameters.Append cmd.CreateParameter(&amp;quot;@test_date&amp;quot;, adDBDate,
&lt;br&gt;&amp;gt; adParamInput, 4, &amp;quot;2009-11-23&amp;quot;)
&lt;br&gt;&lt;br&gt;Does anything change is you set the byte size from 4 to something like 10 or 12?
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;cmd.CommandText = &amp;quot;INSERT INTO test_table (test_date) VALUES (?);&amp;quot;
&lt;br&gt;&lt;br&gt;Another thought would be to rewrite the insert expression to:
&lt;br&gt;&lt;br&gt;INSERT INTO Test_table( test_date )
&lt;br&gt;VALUES( CAST( ? AS DATE ));
&lt;br&gt;&lt;br&gt;Although it probably wont help much.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards,
&lt;br&gt;Richard Broersma Jr.
&lt;br&gt;&lt;br&gt;Visit the Los Angeles PostgreSQL Users Group (LAPUG)
&lt;br&gt;&lt;a href=&quot;http://pugs.postgresql.org/lapug&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pugs.postgresql.org/lapug&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482659&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VBA-ADO-Command-Date-Parameter-Not-Working-tp26481050p26482659.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482401</id>
	<title>Re: VBA ADO Command Date Parameter Not Working</title>
	<published>2009-11-23T09:24:30Z</published>
	<updated>2009-11-23T09:24:30Z</updated>
	<author>
		<name>Josh T</name>
	</author>
	<content type="html">Richard Broersma wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; on Mon, Nov 23, 2009 at 7:47 AM, Josh T &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482401&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mortonjt@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;What is the correct way to pass a date into a parameter so it gets
&lt;br&gt;&amp;gt;&amp;gt; into the database correctly?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.postgresql.org/docs/8.4/interactive/datetime-appendix.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/8.4/interactive/datetime-appendix.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is how Postgresql accepts dates by default. &amp;nbsp;There is a way to change this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html#DATATYPE-DATETIME-INPUT&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html#DATATYPE-DATETIME-INPUT&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.postgresql.org/docs/8.4/interactive/runtime-config-client.html#GUC-DATESTYLE&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/8.4/interactive/runtime-config-client.html#GUC-DATESTYLE&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; [5.750]conn=03044168, query='INSERT INTO test_table (test_date) VALUES
&lt;br&gt;&amp;gt;&amp;gt; ('1900-05-07'::date);'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It looks like the ODBC driver is make the conversion here.
&lt;br&gt;&amp;gt; Rather than passing the date in with the #...#. &amp;nbsp;Could you pass it in
&lt;br&gt;&amp;gt; as a string?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Thanks, but trying as string gives me the same result
&lt;br&gt;&lt;br&gt;cmd.Parameters.Append cmd.CreateParameter(&amp;quot;@test_date&amp;quot;, adDBDate, 
&lt;br&gt;adParamInput, 4, &amp;quot;2009-11-23&amp;quot;)
&lt;br&gt;-&amp;gt; results in 1900-05-07 in the DB
&lt;br&gt;&lt;br&gt;I also get the same result in I leave the value out entirely
&lt;br&gt;&lt;br&gt;cmd.Parameters.Append cmd.CreateParameter(&amp;quot;@test_date&amp;quot;, adDBDate, 
&lt;br&gt;adParamInput)
&lt;br&gt;-&amp;gt; also results in 1900-05-07 in the DB
&lt;br&gt;&lt;br&gt;Trying a string this way doesn't work at all
&lt;br&gt;&lt;br&gt;cmd.Parameters.Append cmd.CreateParameter(&amp;quot;@test_date&amp;quot;, adVarChar, 
&lt;br&gt;adParamInput, Len(&amp;quot;2009-11-23&amp;quot;), &amp;quot;2009-11-23&amp;quot;)
&lt;br&gt;-&amp;gt; throws an error on cmd.Execute -- ERROR: invalid input syntax for 
&lt;br&gt;type date: &amp;quot;128&amp;quot;; Error while executing the query
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Josh
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sent via pgsql-odbc mailing list (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482401&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-odbc@...&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-odbc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/mailpref/pgsql-odbc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VBA-ADO-Command-Date-Parameter-Not-Working-tp26481050p26482401.html" />
</entry>

</feed>
