diff --git a/plugins/dbgate-plugin-postgres/src/backend/drivers.js b/plugins/dbgate-plugin-postgres/src/backend/drivers.js index 6aaa7aa6..03a9f8de 100644 --- a/plugins/dbgate-plugin-postgres/src/backend/drivers.js +++ b/plugins/dbgate-plugin-postgres/src/backend/drivers.js @@ -109,6 +109,16 @@ const drivers = driverBases.map(driverBase => ({ }); query.on('end', () => { + const { command, rowCount } = query._result || {}; + + if (command != 'SELECT' && _.isNumber(rowCount)) { + options.info({ + message: `${rowCount} rows affected`, + time: new Date(), + severity: 'info', + }); + } + if (!wasHeader) { columns = extractPostgresColumns(query._result); if (columns && columns.length > 0) {