Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-248

Postgresql 8.3 crashes.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.4
    • 1.4
    • Frontend (F), Server (S)
    • None
    • PostgreSQL

      http://www.zabbix.com/forum/showthread.php?t=8617

      Propose schema changes for postgresql:
      Change items/prevvalue, lastvalue, prevorgvalue type to text (from varchar(255)).
      Reason: later versions of postgresql do NOT silently truncate strings that exceed the defined field size (e.g., 255)... instead, an exception is raised. Thus, UserParameter (or other) items of type 'text' that exceed 255 chars cause the server to terminate when the db error occurs. I also suggest the history_log value field be of type text since some log files may have lines exceeding 255 chars. Here's diff output for what its worth (v 1.4.4 schema):

          • postgresql.sql.new 2007-12-26 16:29:03.000000000 -0500
          • postgresql.sql 2007-12-17 08:31:01.000000000 -0500
            ***************
          • 255,261 ****
            timestamp integer DEFAULT '0' NOT NULL,
            source varchar(64) DEFAULT '' NOT NULL,
            severity integer DEFAULT '0' NOT NULL,
            ! value text DEFAULT '' NOT NULL,
            PRIMARY KEY (id)
            ) with OIDS;
            CREATE INDEX history_log_1 on history_log (itemid,clock);
          • 255,261 ----
            timestamp integer DEFAULT '0' NOT NULL,
            source varchar(64) DEFAULT '' NOT NULL,
            severity integer DEFAULT '0' NOT NULL,
            ! value varchar(255) DEFAULT '' NOT NULL,
            PRIMARY KEY (id)
            ) with OIDS;
            CREATE INDEX history_log_1 on history_log (itemid,clock);
            ***************
          • 482,497 ****
            history integer DEFAULT '90' NOT NULL,
            trends integer DEFAULT '365' NOT NULL,
            nextcheck integer DEFAULT '0' NOT NULL,
            ! lastvalue text NULL,
            lastclock integer NULL,
            ! prevvalue text NULL,
            status integer DEFAULT '0' NOT NULL,
            value_type integer DEFAULT '0' NOT NULL,
            trapper_hosts varchar(255) DEFAULT '' NOT NULL,
            units varchar(10) DEFAULT '' NOT NULL,
            multiplier integer DEFAULT '0' NOT NULL,
            delta integer DEFAULT '0' NOT NULL,
            ! prevorgvalue text NULL,
            snmpv3_securityname varchar(64) DEFAULT '' NOT NULL,
            snmpv3_securitylevel integer DEFAULT '0' NOT NULL,
            snmpv3_authpassphrase varchar(64) DEFAULT '' NOT NULL,
          • 482,497 ----
            history integer DEFAULT '90' NOT NULL,
            trends integer DEFAULT '365' NOT NULL,
            nextcheck integer DEFAULT '0' NOT NULL,
            ! lastvalue varchar(255) NULL,
            lastclock integer NULL,
            ! prevvalue varchar(255) NULL,
            status integer DEFAULT '0' NOT NULL,
            value_type integer DEFAULT '0' NOT NULL,
            trapper_hosts varchar(255) DEFAULT '' NOT NULL,
            units varchar(10) DEFAULT '' NOT NULL,
            multiplier integer DEFAULT '0' NOT NULL,
            delta integer DEFAULT '0' NOT NULL,
            ! prevorgvalue varchar(255) NULL,
            snmpv3_securityname varchar(64) DEFAULT '' NOT NULL,
            snmpv3_securitylevel integer DEFAULT '0' NOT NULL,
            snmpv3_authpassphrase varchar(64) DEFAULT '' NOT NULL,

            alexei Alexei Vladishev
            aly Artem Suharev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: