pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: pg_gg@mailinator.com
To: pgsql-odbc@postgresql.org
Subject: Re: Postgresql ODBC Truncates Timestamp second fractions
Date: Sat, 05 Apr 2014 17:36:03 -0700
Message-ID: <5340A173.80808@aklaver.com> (raw)
In-Reply-To: <E1WWak0-0005Uf-Nl@free.hostodon.me>
References: <E1WWak0-0005Uf-Nl@free.hostodon.me>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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



view thread (6+ messages)  latest in thread

Message-ID: <5340A173.80808@aklaver.com>
Permalink:  ../5340A173.80808@aklaver.com/
Also on:    postgresql.org/message-id/5340A173.80808@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: adrian.klaver@aklaver.com, pg_gg@mailinator.com
  Subject: Re: Postgresql ODBC Truncates Timestamp second fractions
  In-Reply-To: <5340A173.80808@aklaver.com>
  References: <E1WWak0-0005Uf-Nl@free.hostodon.me> <5340A173.80808@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox