Re: [sqlalchemy] How to get output from PostgreSQL's VERBOSE functions

2019-06-08 Thread Zsolt Ero
I figured out the keyword is NOTICES. However this section of the docs doesn't work / didn't had any effect: https://docs.sqlalchemy.org/en/13/dialects/postgresql.html#notice-logging What worked was to manually clear and print conn.connection.connection.notices like this: if notices:

[sqlalchemy] How to get output from PostgreSQL's VERBOSE functions

2019-06-08 Thread Zsolt Ero
Hi, I'd like to run a CLUSTER VERBOSE command and save the lines which would normally be displayed in psql's command line. How can I do so with SQLAlchemy + psychopg2? -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code,