Code Monkey home page Code Monkey logo

Comments (3)

MasahikoSawada avatar MasahikoSawada commented on July 17, 2024

Thanks.

It's a memory bug. pgaudit could not handle properly when the same field is specified at more than once. Commit b300c17 should fix it.

from pgaudit.

harada-toshi avatar harada-toshi commented on July 17, 2024

Thank you for bug fixes!

In the bugfix version, I confirmed that it will be the following behavior.

  • Segfault did not occur and the PostgreSQL server started up.
  • When describing duplicate filter items in one rule, it is overwritten with the description written behind.

PostgreSQL launch log

$ pg_ctl -w -D ~/pgdata/9.6-pgaudit/ start
waiting for server to start....LOG:  detect duplicate field setting "class"in rule section, overwritten by "read"
LOG:  detect duplicate field setting "database"in rule section, overwritten by "test"
LOG:  detect duplicate field setting "class"in rule section, overwritten by "write"
LOG:  detect duplicate field setting "object_name"in rule section, overwritten by "public.foo"
LOG:  detect duplicate field setting "database"in rule section, overwritten by "bad"
LOG:  detect duplicate field setting "class"in rule section, overwritten by "write"
LOG:  detect duplicate field setting "object_name"in rule section, overwritten by "public.bar"
LOG:  log_catalog = 1
LOG:  log_level_string = (null)
LOG:  log_level = 15
LOG:  log_parameter = 0
LOG:  log_statement_once = 0
LOG:  log_for_test = 0
LOG:  role =
LOG:  logger = serverlog
LOG:  facility = (null)
LOG:  priority = (null)
LOG:  ident = (null)
LOG:  option = (null)
LOG:  pathlog = (null)
LOG:  Rule 0
LOG:      STR database = bad
LOG:      BMP class = 256
LOG:      STR object_name = public.bar
LOG:  pgaudit extension initialized
LOG:  database system was shut down at 2017-03-09 15:36:17 JST
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started
LOG:  connection received: host=[local]
LOG:  connection authorized: user=nuko database=postgres

from pgaudit.

harada-toshi avatar harada-toshi commented on July 17, 2024

I confirmed the fix.
Close this Issue.

from pgaudit.

Related Issues (20)

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.