jackc / pgx

PostgreSQL driver and toolkit for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retrieve client warning

bersace opened this issue · comments

Hi,

Thanks for pgx. It's awesome.

I wonder how to retrieve client warning. e.g. when revoking a role you're not the grantor:

> REVOKE "writers" FROM "alain";
WARNING:  role "alain" has not been granted membership in role "writers" by role "ldap2pg"
REVOKE ROLE
>

I may fail to found how in the documentation. Can you give me pointer ?

Regards,
Étienne