GithubHelp home page GithubHelp logo

pg_log_userqueries's People

Contributors

blogh avatar darold avatar gleu avatar madtibo avatar rjuju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pg_log_userqueries's Issues

Log of background workers

When pg_log_userqueries.log_superusers = on the extension log queries executed by bgworkers like powa with a trace like:

2017-12-20 09:19:13 CET [5956]: [4098802-1] user=,db=,client= LOG:  USERQUERIES SELECT powa_take_snapshot()

I guess that pg_log_userqueries might not log queries when the user or db is not set.

send to a remote syslog

The title says it all. It would be interesting to be able to send the logs directly to a remote server, as this extension is interesting for forensics.

Default log level NOTICE

pg_log_userqueries use log level NOTICE by default, that mean that if you don't set log_min_message to notice nothing will be logged. You either need to change this default log level or write some information about that in documentation.

Add a mecanism to filter with more detail.

The current version allows to filter queries by, for example, username.
It might be useful to filter using negations, in this case since users can be added to the database at anytime.
Updating the filter each time is cumbersome and error prone.

A second argument is that, regex.h doesn't support look ahead / look behind.
The only way is to use this kind of horror : "^([^m])|(m[^a])|(ma[^c])" to filter out "mac".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.