Re: [GENERAL] postgres pg_bulkload c filter function in c programming - Mailing list pgsql-general

From rajmhn
Subject Re: [GENERAL] postgres pg_bulkload c filter function in c programming
Date
Msg-id 1483022289041-5936658.post@n3.nabble.com
Whole thread Raw
In response to Re: [GENERAL] postgres pg_bulkload c filter function in c programming  (Jan de Visser <jan@de-visser.net>)
Responses Re: [GENERAL] postgres pg_bulkload c filter function in c programming
List pgsql-general
Thanks Jan

I'm converting the code from Oracle to Postgres. Both version of code will
be available for different users.

In Oracle, doing these kind of transformation in SQL loader. Need to follow
the same kind of approach in Postgres. SQL filter approach was very easy in
terms of coding. From documentation found, C filter was very much faster
than SQL.

I'm very new to C. Tried few samples, as mentioned in this link.

https://www.postgresql.org/docs/current/static/xfunc-c.html

It worked.

But, how this can be accomplished when it have 100's of columns from source.
Need to apply transformations only for few columns as mentioned above.

Totally struck, nobody is here to help. If you can guide me with some syntax
with the sample data provided above, will be grateful. I can manage it from
there.

Thanks



--
View this message in context:
http://postgresql.nabble.com/postgres-pg-bulkload-c-filter-function-in-c-programming-tp5936651p5936658.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Jan de Visser
Date:
Subject: Re: [GENERAL] postgres pg_bulkload c filter function in c programming
Next
From: Scott Mead
Date:
Subject: Re: [GENERAL] Er Data Modeller for PostgreSQL