- Notifications
You must be signed in to change notification settings - Fork328
Closed
Description
Hello,
Currently, PGML functions are usingINFO
log level.
There are several problems with this.
The most important, is thatINFO
level logs cannot be disabled by settingclient_min_message
.
https://www.postgresql.org/docs/current/runtime-config-client.html
INFO level messages are always sent to the client.
Could you please change the log level toNOTICE
?
The root of the problem lies PostgreSQL SQLX driver, here:
launchbadge/sqlx@53766e4
In version 0.7.* the structureFields
contains theoffset: u16
- and offset (notice) could be longer theu16
which sometimes occurs inpgml.train
function.
/// An iterator over each field in the Error (or Notice) response.struct Fields<'a> { storage: &'a [u8],< offset: u16, > offset: usize,}
It seems, it was fixed in SQLX 0.8.1.
But still, it is better to send not mandatory data on the NOTICE level.
Kind regards
Antoni Jakubiak
Metadata
Metadata
Assignees
Labels
No labels