Comments (7)
100 arguments not being supported is a PostgreSQL server limitation. pg_bulkload developers cannot do anything about it, unfortunately. But it seems you understand that.
You would need to find a way that doesn't require to use a function. Why do you need to use the function anyway?
from pg_bulkload.
I'm validating and transforming the data using SQL filter.For this Postgres function is required.Having more than 100 fields in source file.Doing transformation for nearly 20-30 fields.
Any other way to do it?
from pg_bulkload.
Well, you already said you hit a limitation of PostgreSQL functions (namely it cannot handle more than 100 arguments). So, you will have to perform any transformations on the input file before you use pg_bulkload, perhaps using some UNIX utilities.
The bottom line here is, to use pg_bulkload's FILTER capability, you have to rely on PostgreSQL functions.
from pg_bulkload.
Did the conversion using UNIX SED command from raja|0|100 to (raja,0,100). It's taking 5 minutes for 16 million data. But it's not ideal solution.
I think it is better to use some distributed processing, like hadoop or spark, to transform data for input format...
from pg_bulkload.
Thank you.Going ahead with UNIX approach.
from pg_bulkload.
Alright, OK to close the issue?
from pg_bulkload.
Sure. Thanks
from pg_bulkload.
Related Issues (20)
- new lines in fields HOT 2
- delimiter - extended string syntax
- failed to install HOT 7
- unable to load to citus distributed table
- PostgreSQL 15 support HOT 4
- Cannot Make HOT 4
- update deprecated actoins for github actions
- Make impossible on Ubuntu HOT 6
- Error on Ubuntu
- Extension version pg_bulkload mistake HOT 6
- rpmbuild issue and question
- what is recovery command's major purpose ?
- pg_bulkload on PG13 fails to handle large data duplicates HOT 8
- missing img in the doc
- PostgreSQL 16 support HOT 5
- how to used in windows10/11?
- Put the source code into the contrib directory and use "make". Compile failed HOT 1
- How to filter rows (WHERE CLAUSE)
- Bad table attributes count when parsing
- Bulkload with Input type function ERROR :trying to store minimal tuple into wrong type of slot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg_bulkload.