protocol differencies

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
zarkadenes
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 30.11.2013, 23:46

protocol differencies

Post by zarkadenes »

Hi,
What is the difference between protocol:postgresql-8 and postgresql-9?
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: protocol differencies

Post by EgonHugeist »

The Name? Actually there are NO behavior changes. Just a hint "we support PG9+".
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Re: protocol differencies

Post by Wild_Pointer »

Hello,
EgonHugeist wrote:The Name? Actually there are NO behavior changes. Just a hint "we support PG9+".
Are you sure? For some unknown reason we get range check errors on some computers when using postgresql-8 and they are gone if we use postgres-9... I was unable to reproduce it on my computer, but the problem is reported by some of our clients...
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: protocol differencies

Post by EgonHugeist »

@Wild_Pointer

I am. I did not more than adding a clone of generic PostgresPlainDriver with the postgres-9 name.

Code: Select all

constructor TZPostgreSQLDriver.Create;
begin
  inherited Create;
  AddSupportedProtocol(AddPlainDriverToCache(TZPostgreSQL9PlainDriver.Create, 'postgresql'));
  AddSupportedProtocol(AddPlainDriverToCache(TZPostgreSQL7PlainDriver.Create));
  AddSupportedProtocol(AddPlainDriverToCache(TZPostgreSQL8PlainDriver.Create));
  AddSupportedProtocol(AddPlainDriverToCache(TZPostgreSQL9PlainDriver.Create));
end;
and:

Code: Select all

TZPostgreSQL9PlainDriver = class(TZPostgreSQL8PlainDriver)
the only overrides they are differing differ are Name etc. But nothing related. Actually im playing with field types on 7.2. Some behavior changes are to expact just to avoid such cases...
For some unknown reason we get range check errors on some computers when using postgresql-8 and they are gone if we use postgres-9... I was unable to reproduce it on my computer, but the problem is reported by some of our clients...
Uff i trust you. It might be possible this only was fixed becouse of forward developing of Zeos? There are things which do NOT make me happy with postgre:
Decimal and Numeric-Types do NOT have a limitation. Updateing them as string might work because postgres only stores #0 terminated strings (the performance drop against other providers) and reading back could lead to pain. If you can't track origin and there is NO sample .... I can't help.
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Post Reply