Re: postgres pg_bulkload c filter function in c programming

From: rajmhn <rajmhn(dot)ram(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: postgres pg_bulkload c filter function in c programming
Date: 2016-12-29 14:38:09
Message-ID: 1483022289041-5936658.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Mead 2016-12-29 14:44:27 Re: Er Data Modeller for PostgreSQL
Previous Message Jan de Visser 2016-12-29 14:01:39 Re: postgres pg_bulkload c filter function in c programming