Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WWb4D-00045g-Pn for pgsql-odbc@arkaria.postgresql.org; Sun, 06 Apr 2014 00:36:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WWb4D-0005bs-4s for pgsql-odbc@arkaria.postgresql.org; Sun, 06 Apr 2014 00:36:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WWb4C-0005bl-B9 for pgsql-odbc@postgresql.org; Sun, 06 Apr 2014 00:36:08 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WWb49-0001iP-3v for pgsql-odbc@postgresql.org; Sun, 06 Apr 2014 00:36:08 +0000 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 9ED4620BD3 for ; Sat, 5 Apr 2014 20:36:04 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Sat, 05 Apr 2014 20:36:04 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=qgDyUyuQsE/sz7pxToDFqFB82vI=; b=ot/MVbQ57qsbYa3WXE7GPVnFIMHu 8dERWmGoH9wFuSCJWFt8i2Z/mKr6cJvJSbz5gIiZrcqGoxDs6qlefxXFUvc7S+cw r0ErKn/7UaPC7yyyWYo6YnFNuBOYLTszn8MZTprlgi7A09Yx372TNn33iDqlHWAR du7HkJzYdTgMa4c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=qgDyUyuQsE/sz7pxToDFqF B82vI=; b=BoUGnVrVPEHx5/gT1EL6C5i2bCJVstcUTNRBT7CVeLriQMTZW5SmB5 yX/oYZ+AH+D8bosJ3lvn+ZQsR8/l12mjy7Y/cHGonz1AMhNTD/4m6vklcjAMWPNN 8bUPM+V/pvDaLzP643xt+Vq2ibZajAx5B14WC4ivbTV8r8uKONcTk= X-Sasl-enc: c8c2FDuiI3aaqkUHrGG4eL4i6SrfKAP++SwGjaCQoTbt 1396744564 Received: from panda.site (unknown [97.113.11.16]) by mail.messagingengine.com (Postfix) with ESMTPA id 1AC35C0000C; Sat, 5 Apr 2014 20:36:03 -0400 (EDT) Message-ID: <5340A173.80808@aklaver.com> Date: Sat, 05 Apr 2014 17:36:03 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: pg_gg@mailinator.com, pgsql-odbc@postgresql.org Subject: Re: Postgresql ODBC Truncates Timestamp second fractions References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 04/05/2014 05:15 PM, pg_gg@mailinator.com wrote: > I don't think the problem is only with the OGG. My understanding is that > OGG polls the destination metadata first and then describes and prepares > the parameters and the SQL statement based on the metadata. Either OGG > interprets what it receives from PG differently than other tools, or the > driver behaves differently for OGG, and that's what we are trying to > understand based on the code. Just don't know where to look. I would say, start with Oracle, it is their product. I am going to assume support is part of the package. or am I wrong? There is some evidence it does treat things differently: http://docs.oracle.com/cd/E35209_01/doc.1121/e29642.pdf "timestamptz data type PostgreSQL timestamp with timezone column type is recognized as SQL_VARCHAR and therefore Oracle GoldenGate writes the data in the native format of the source database, rather than normalizing it to its PostgreSQL form. As a result, some replicated timestamp data might not be compatible with Oracle GoldenGate column-conversion functions and FILTER clauses." > > Also the DataDirect ODBC only handles timestamps when it's defined > without a percision in which case the metadata query returns -1 for the > field lenght. If precision is defined, even if it's 6 then it fails with > the error mentioned in the link below and we would need to set the > WorkArounds2=2. But that doesn't solve the problem because then it nags > about data overflowing. So the only way to make the Data Driect drive to > work is to not define the precision, but as I mentioned before, that > driver doesn't handle Unicode null character, so we can't really use it. > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc