I want to be able to see the notices that might be raised after executing SQL. For example, in Postgres, if I issue BEGIN, I might want to read the notice “14:16:07 WARNING: there is already a transaction in progress”. Is there any way to do that currently?
looks like this could actually already be done
every PQexec call returns a PGResult (see PGResultStatus)
It looks like we’re not doing anything with this particular warning message (PGRES_NONFATAL_ERROR)
Doesn’t strike me as a big change to make these also available
[quote=322853:@Kem Tekinay]Norman, to be clear, this would be a change to the plugin itself, yes?
[/quote]
It would
It looks like its ignoring this particular response code
But that was a very quick glance over the sources
Seems that this should be available just like any other error message would be (theres no real way to distinguish between errors and warnings like this is)
[quote=322792:@Norman Palardy]looks like this could actually already be done
every PQexec call returns a PGResult (see PGResultStatus)
It looks like we’re not doing anything with this particular warning message (PGRES_NONFATAL_ERROR)
Doesn’t strike me as a big change to make these also available[/quote]