• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Problems using Postgres ELT

#1 2012-06-01 20:46:38

W4shington
New member
Registered: 2010-10-14
Posts: 8

Problems using Postgres ELT

Hello,

I'm trying to use Postgres ELT components, but  i am getting some errors. The main error is because i have some tables that were created using upper case and others using lower case, for example:

TABLE_TEST and table_test_02.

The problem is that Postgres is case sensitive and when Talend tries to send the query to database, postgres does not recognize the table name. So the solution is use quotes in the table name, for example, instead i use:

select * from TABLE_TEST

I have to use

select * from "TABLE_TEST"

But i cannot put quote manually inside table name in Talend.

Does anyone knows how can i do this? Or anyone has passed for the same problem?

Thanks
Best regards

Last edited by W4shington (2012-06-01 20:47:34)

Offline

#2 2012-06-04 07:24:25

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Problems using Postgres ELT

Hi

If you create metadata->DB Connection->Postgres, you will find out that the query of tPostgresqlInput is like this.

Code:

"SELECT 
  \"test\".\"public\".\"DU\".\"newColumn\", 
  \"test\".\"public\".\"DU\".\"newColumn1\"
FROM \"test\".\"public\".\"DU\""

Add '\' in front of quote.

Regards,
Pedro


Only Paranoid Survive.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Problems using Postgres ELT

Board footer

Powered by FluxBB