Ad Widget

Collapse

web and schema issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GateKeeper
    Junior Member
    • Mar 2006
    • 23

    #1

    web and schema issues

    --- /usr/local/src/zabbix-1.1.2/frontends/php/include/db.inc.php Tue Sep 12 15:09:36 2006
    +++ /usr/local/www/data/mon/include/db.inc.php Wed Sep 13 15:24:00 2006
    @@ -237,7 +237,7 @@
    if($DB_TYPE == "POSTGRESQL")
    {
    - $oid=pg_getlastoid($result);
    + $oid=pg_last_oid($result);
    // echo "OID:$oid<br>";
    $sql="select $field from $table where oid=$oid";
    $result=DBselect($sql);

    ------------------

    for pg_last_oid() to work you need to make one thing:
    in each table definition in create/postgresql/schema.sql replace blocks `);` with `) WITH OIDS;`.

    ------------------

    One more thing: they say, that PGSQL storage is almost 10 times slower than MYSQL. To brake that myth remove all indexes from pg-schema (#sed -E "s/^CREATE INDEX.*$//g" schema.sql) and only then try to compare (BTW, they say, that complex queries are done faster on PGSQL engine than on MYSQL one, and tracing queries of web-intreface I figured out that there's enough of such queries to try to compare).
    Last edited by GateKeeper; 14-09-2006, 07:01.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for reporting this.

    However I believe that WITH OIDS is supported in PostgreSQL 8.x only. Are you trying to say that PostgreSQL without indexes will work fater?!

    Believe me, there is no "myth" about PostgreSQL performance. No FUD please, do real tests and show me the numbers. Thanks.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...