SQL on INIT in initPgSQL()

This is the place for developers to discuss bugs, new features and everything else about code changes.

SQL on INIT in initPgSQL()

Postby funkju » Fri Apr 03, 2009 3:41 pm

I have a need to execute a SQL statement when rsyslog initializes it's database connection.

To be fast and easy, i just hard coded the SQL string into the module in the initPgSQL method.

Would there be any interest in adding an on-connect SQL string into the configuration for the database modules?
funkju
New
 
Posts: 1
Joined: Fri Apr 03, 2009 3:38 pm

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: SQL on INIT in initPgSQL()

Postby rgerhards » Fri Apr 03, 2009 3:56 pm

That's an interesting idea. Do I correctly assume this needs to be done each time the connection is opened? Also, can you elaborate a little on why this is useful.

Thanks,
Rainer
User avatar
rgerhards
Site Admin
 
Posts: 2645
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron