Comments (3)
to close connection you should also call connection.end()
after replstream.end()
from pgwire.
just call replstream.end()
but you should subscribe to event before for await
from pgwire.
I just realized that replstream.end()
is useless because it makes possible to receive some buffered messages after replstream.end()
call. But receiving this messages makes no sense because we cannot ack them after .end()
anyway. Attempt to .ack message after .end will cause exception. Replication client should call replstream.destroy()
instead of replstream.end()
(or do break
in async loop) to stop replication in proper way.
So I'm going to remove replstream.end()
function
from pgwire.
Related Issues (20)
- TypeScript support HOT 6
- Feature request: Make ackImmediate() return a Promise HOT 4
- This library is the only NodeJS solution which reads pgoutput and just works
- Sending multiple single-queries through the same connection? HOT 2
- Feature request: Add Pool.newConnection() which always creates a new connection, similar to Pool.logicalReplication()
- Feature request: Non-async pgwire.connect() version
- Feature request: support for “eager filtering” while reading from replication a slot HOT 2
- Question: close the connection of the streamed query before the results are fully read HOT 7
- Should .ack after .destroy throw error?
- pgoutput does not support message_cb, so pgwire can't work with pg_logical_emit_message() even theoretically HOT 1
- Error.stack message overwrite
- logical decoding using pgoutput, fetch the before data for all the updates. HOT 2
- unsafe int8 json HOT 1
- Serialize and Deserialize a BigInt HOT 2
- Add option to not use `JSON.parse` to decode `json` or `jsonb` HOT 3
- incorrect lastLsn HOT 6
- JSON parse stringify is not suitable for array codec
- pool.session
- ssl support HOT 3
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 pgwire.