PDA

View Full Version : Problems with postgres and alpha 6


teleneko
16-03-2005, 01:50
Hello,

I am triying to install the alpha 6 with postgres but the upgrading schemas does not work. The problem is that the statement to alter the table is not valid (at least for 7.4.7 version) because it tries to do three actions in a single stament (add a column, set the default value and set the not null constraint). In order to upgrade the database yoy need three statements for each one. Here is an example:

this stament:
alter table sysmaps_hosts add icon_on varchar(32) SET DEFAULT 'Server' SET NOT NULL;

is changed for these four:
alter table sysmaps_hosts add icon_on varchar(32);
alter table sysmaps_hosts add icon_on SET DEFAULT 'Server';
update sysmaps_hosts set icon_on='icon';
alter table sysmaps_hosts add icon_on SET NOT NULL;

Also there is another small mistake, the type blob is in fact bytea.

The question are ... Is this an overlook or I need to upgrade to postgresql 8.0?

Is anyone using the alpha version with postgresql who does not mind tell the experience?

Thanx.

Alexei
16-03-2005, 10:07
ZABBIX 1.1 alphas do not support PostgreSQL yet.

teleneko
16-03-2005, 10:55
O sorry, I have understand that it suported it yet because of this message:

12/01/2005: Support of Oracle is coming soon

Currently ZABBIX supports two database engines, MySQL and PostgreSQL. Support of Oracle will be interesting option for those who are looking for best availability and enterprise level features.

Work has already been started. Estimated delivery date: 1st quarter of 2005.


and the presence of the upgrade scripts.

I will wait . Thanx.