UPDATE ......Confluence has now been updated to version 9.2.6. Please see following page for details and feedback about changes:
Updates
...
In case it wasn't clear, this script is meant to view data, which implies SELECT. So don't do stupid things like UPDATE or DELETE.
(On TERENA systems, this script is located at /usr/local/share/sysadmin/misc/pgmailcsv.
CSV files with e-mail addresses
...