summaryrefslogtreecommitdiffstats
path: root/server/parser/pgsql.h
Commit message (Collapse)AuthorAgeFilesLines
* server/parser: Make the parsing of measurement data more flexibleDavid Sommerseth2012-11-081-1/+3
| | | | | | | | | | | | | | | | | | | The parsing of measurement data was hard coded to be very cyclictest centric. With this patch, the code paths used by cyclictest parsing is made more generic and which measurement data to parse is now declared in the configuration file. The default measurement data tables are set to be cyclic_statistics, cyclic_histogram and cyclic_rawdata. These tables can be overridden by setting the measurement_tables config variable in the xmlrpc_parser section. With this change, it is now possible to extend the rteval summary.xml measurement parsing without modifying the C code at all. Only the database schema and the xmlparser.xsl files needs to be updated, and then add this new table to configuration file. Signed-off-by: David Sommerseth <davids@redhat.com>
* Implemented SQL schema version handling on the database layerDavid Sommerseth2009-12-081-3/+4
| | | | | | | | | | | | When a database connection is established, the rteval_info table is queried for a key/value pair named 'sql_schema_ver' and parsed. This attribute defines which version the rteval database schema is in use. When processing XML documents with <sqldata/>, a checks is done to make sure there are no attempts on inserting data to an incompatible rteval database schema. If the rteval_info table or the sql_schema_ver value is not found, it will default to version 1.0 (the parsed int value will be 100)
* Added db_ping() function and made db_wait_notification() more solidDavid Sommerseth2009-10-231-0/+1
|
* Improved overall logging informationDavid Sommerseth2009-10-221-1/+2
|
* First cut at implementing a generic loggerDavid Sommerseth2009-10-211-2/+9
|
* Moved status codes into its own header fileDavid Sommerseth2009-10-211-12/+0
|
* Corrected missing or misleading doxygen commentsDavid Sommerseth2009-10-211-5/+10
|
* Implemented database LISTEN via db_wait_notification()David Sommerseth2009-10-211-0/+1
| | | | | | | | | | | | This introduces async waiting for report parsing. Commit 2584a3c36c97c757dc80108b898eede52b91dc44 introduced sending a NOTIFY whenever an INSERT is done into the submissionqueue table. With the db_wait_notification() the process_submission_queue() function will sleep until a a notification is received. The LISTEN, UNLISTEN and NOTIFY SQL commands are PostgreSQL dependent. Other database implementations may use what that database supports, or just simply do a sleep() to change the behaviour to a polling model.
* Extended rtevalruns table to contain a submid fieldDavid Sommerseth2009-10-211-1/+1
| | | | | This new field references submissionqueue.submid, to keep a link between parsed rtevalruns and the original submission.
* Added logic to move parsed files into a specified report directory.David Sommerseth2009-10-201-13/+18
| | | | | This directory is set in the 'xmlrpc_parser' section, with 'reportdir'. If this is not set, it defaults to /var/lib/rteval/reports.
* Big rewrite, but now a working rteval_parserd process is readyDavid Sommerseth2009-10-191-8/+13
| | | | | Need to add daemonizing mode, add proper logging and fix all FIXME's in the code
* Added a missing status levelDavid Sommerseth2009-10-151-6/+7
|
* Rearrenged return codes from parsethread()David Sommerseth2009-10-151-1/+9
|
* Added db_begin(), db_rollback() and db_commit() functionsDavid Sommerseth2009-10-141-0/+5
|
* Added needed pgsql.h file and cleaned up the DB API a little bitDavid Sommerseth2009-10-131-0/+35