On Sat, 2020-08-08 at 03:59 -0600, Hotmail wrote:
> We migrated data from Oracle to postgres using oracle_fdw without seeing any invalid byte
> sequence for encoding "UTF8": 0x00 errors. The data transfer from Oracle to Postgres using
> oracle_fdw completed successfully without any errors.
>
> After we started our application using Postgres as the new data source we are consistently
> seeing "invalid byte sequence for encoding "UTF8": 0x00 errors" once or twice a minute on
> a basic select statement like this:
>
> Select * from <table> where <col1>=‘foo’ and <col2>=‘foo2’;
>
> Not all queries fail just some. We can select * from the table in question from psql without
> any invalid byte sequence errors (A problem with the jdbc client maybe?)
oracle_fdw will complain about zero bytes, so odds are that your PostgreSQL database is fine.
This is confirmed by the face that "SELECT * FROM atable" works in PostgreSQL.
I can see two options:
1. The statement that causes the errors is actually a different statement, for
example an INSERT.
2. 'foo' and 'foo2' contain zero bytes.
Yours,
Laurenz Albe