Comments (3)
This might be another issue. But I've noticed that hasql-notification is ignoring an error. Check:
void $ PQ.consumeInput pqCon
https://github.com/diogob/hasql-notifications/blob/master/src/Hasql/Notifications.hs#L175
And the pg docs say:
PQconsumeInput normally returns 1 indicating โno errorโ, but returns 0 if there was some kind of trouble (in which case PQerrorMessage can be consulted).
Edit: Reported this on diogob/hasql-notifications#20.
from postgrest.
FATAL: terminating connection due to administrator command
Maybe there's a die (prints to stderr) somewhere in our code or hasql-notifications.
I think the above doesn't come from hasql-notifications
but rather from hasql-pool
.
from postgrest.
It looks like it comes from the LibPQ
library.
It can be traced first in the hasql-notifications
code. I used Debug.Trace
to check exactly where this happened:
import Debug.Trace (traceIO)
-- ...
waitForNotifications sendNotification con =
withLibPQConnection con $ void . forever . pqFetch
where
pqFetch pqCon = do
traceIO "Before notifies"
mNotification <- PQ.notifies pqCon
traceIO "After notifies"
-- ...
Then, after executing the pg_terminate_backend
command, the logs start with:
Before notifies
FATAL: terminating connection due to administrator command
After notifies
Which leads to the postgresql-libpq
code:
-- ...
notifies connection =
withConn connection $ \ptr ->
traceIO "Before PQnotifies"
mn <- c_PQnotifies ptr
traceIO "After PQnotifies"
-- ...
And it logs:
Before PQnotifies
FATAL: terminating connection due to administrator command
After PQnotifies
So maybe somewhere in the PQnotifies function of the LibPQ library, it logs this error?
Some notes:
- It does return an error message that could be used, although it does it after the
FATAL: ...
log. - Not sure if the
FATAL:..
log can be stopped/modified at thehasql-notifications
orpostgresql-libpq
libraries.
from postgrest.
Related Issues (20)
- Row Filter parameter format is displayed as `integer`
- Server port and admin server port can end up with the same value HOT 6
- Cancel query where client connection was terminated HOT 3
- Calculate math with addition, submission or calculated field
- Documentation does not mention that Updates can use the `columns` parameter or `missing=default` preference
- The schema cache load is not retried with exponential backoff HOT 1
- Clean up arm job when run again HOT 2
- Run docs-linkcheck on a schedule instead of in every PR
- needed control over CORS allowed headers HOT 1
- Improve readability of Curl examples with many query parameters
- Query parameters that aren't filters on a POST request shouldn't return 400 HOT 4
- Any experience proxyng rpc with node http-proxy-middleware?
- for HTTP POST stored procedures (/rpc) ignores schema HOT 1
- "threads.c" error when running binaries or docker image for amd64 devel version HOT 18
- Migrate the CI Arm64 Build to the new GitHub Arm-based Linux runners (when available) HOT 2
- Bypass `db-max-rows` for RPC HOT 1
- PostGIS geometry returned as binary in text/csv output when WKT would be expected HOT 3
- Returning generated SQL HOT 2
- postgrest-release needs to bump the docs version
- Fix error logs when the listener connects to a read replica
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 postgrest.