Comments (2)
I just ran into this issue as well. I was doing load testing and did a large (~800k rows) update.
I found this SO answer that implies we can't exceed 1GB for a single message (or something 🤷 I dunno what I'm doing).
Not sure what the solution is or should be (break the encoding into multiple parts?). I plan to monitor for this error and have some ugly manual intervention plan for when it occurs. I doubt I'll run into this scenario outside of my load testing exercises.
from wal2json.
@mohammadnaghibi @dmacthedestroyer If you are using format 1 (default), see #4 #46. You are probably have a big transaction. If you cannot avoid big transactions, use option --write-in-chunks
. (Have in mind, that while the transaction is streamed the partial transaction is not a valid JSON. You should postpone the validation when it receives the whole transaction.)
However, I advise you to use format 2. It does not have the big transaction limitation.
In summary, format 1 writes the whole transaction to a single buffer (that is limited to 1 GB) and format 2 writes every change to a single buffer. Hence, format 2 might not fail for big transaction cases that used to fail in format 1.
There are still issues with a single change that needs more than 1 GB and there is no fix for it yet.
from wal2json.
Related Issues (20)
- Getting table name in double Quotes HOT 2
- Segmentation fault HOT 1
- ERROR: could not load library "C:/Program Files/PostgreSQL/9.5/lib/wal2json.dll": The specified module could not be found. HOT 1
- START_REPLICATION command does not work with wal2json options HOT 1
- NaN values are received as "null" for NUMERIC type while capturing change data HOT 4
- Invalid JSON with non-transactional message HOT 5
- WAL record received in different formats when the table name contains the single quote HOT 1
- Add support for update_replication_progress introduced in pg15
- Install failed on Alpine 15 HOT 2
- include-pk can't work with identity full? HOT 2
- Official instructions to build from source for production use HOT 1
- Change data not captured HOT 3
- LSN not picking from "withStartPosition" in format version-2 HOT 2
- Building dll for windows HOT 4
- Build and Install In RDS
- wal2json_16 is not available in CentOS7 HOT 1
- Unable to compile wal2json on Mac M1 HOT 1
- Installcheck in a loop eventually fails
- Best practice to handle "no old tuple data for UPDATE in table"? HOT 6
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 wal2json.