[firebird-support] Re: distinct on list() function

2019-11-12 Thread ma_go...@yahoo.com [firebird-support]
This is not a bug, but a documented feature. list() returns BLOB. And blobs are distict because BLOB_ID-s are compared. SELECT DISTINCT, ORDER BY and GROUP BY work on the BLOB ID, not the contents. https://firebirdsql.org/refdocs/langrefupd21-blob.html

[firebird-support] going blob (0:25677) is not owned by relation (id = 548), ignored

2019-11-06 Thread ma_go...@yahoo.com [firebird-support]
Hi! One of our customer's firebird.log contains a bunch of this message. What is this means? FABIANLIBRASRVThu Oct 17 12:42:18 2019 going blob (0:25677) is not owned by relation (id = 548), ignored FABIANLIBRASRVThu Oct 17 12:42:18

[firebird-support] Re: Why this SQL is correct?

2019-10-14 Thread ma_go...@yahoo.com [firebird-support]
OK, I understand now. Thank you.

[firebird-support] Re: Why this SQL is correct?

2019-10-14 Thread ma_go...@yahoo.com [firebird-support]
So HAVING condition is evaluated for EACH ROW instead of just on the group? I think then the current approach is wrong in the engine. http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt "2) The is applied to each group of

[firebird-support] Why this SQL is correct?

2019-10-14 Thread ma_go...@yahoo.com [firebird-support]
Hi! SELECT e.emp_no FROM employee e JOIN employee_project p ON p.emp_no = e.emp_no GROUP BY e.emp_no HAVING MAX((SELECT SUM(e2.salary) FROM employee e2 JOIN employee_project p2 ON p2.emp_no = e2.emp_no WHERE

RE: [firebird-support] Scaling Firebird - Azure

2019-10-09 Thread ma_go...@yahoo.com [firebird-support]
Software raid and hardware raid without BBU has a huge performace hit : https://ib-aid.com/en/articles/45-ways-to-speed-up-firebird-database/ https://ib-aid.com/en/articles/45-ways-to-speed-up-firebird-database/ EXT3, EXT4 : file system barrier property has huge performance hit

[firebird-support] Firebird 2.5.9 mon$attachments.mon$remote_address

2019-09-26 Thread ma_go...@yahoo.com [firebird-support]
Hi! Before 2.5.9 mon$attachments.mon$remote_address returned just IP, e.g.: "192.168.0.1". With 2.5.9 it returns IP + port number, e.g.: "192.168.0.1/55970". It made broke some of our code. (We are comparing mon$remote_address to outer source IP without port) It this intentional, a

[firebird-support] Database corrptions

2019-03-22 Thread ma_go...@yahoo.com [firebird-support]
Hi! We use 2.5.8 CS on Oracle Linux 7.6. It has 200+ database and 4000+ connections. Yesterday we had corruptions in many databases around the same moment. These are the different messages in the firebird.log after the corruptions and trying to valdate/fix/backup/restore/read the

[firebird-support] Re: NVME drive optimize for firebird engine

2018-04-10 Thread ma_go...@yahoo.com [firebird-support]
Hi! Do not use software RAID, it has no disc cache and IO becomes terribly slow. You have to use harware RAID with BBU ho have disc cache and good performance.

[firebird-support] Re: Firebird stopped after 190 connections

2017-11-03 Thread ma_go...@yahoo.com [firebird-support]
Hi! You have to make some changes in xinetd. service gds_db { disable = no flags = reuse socket_type = stream wait = no tcps = 50 10 user = firebird per_source = UNLIMITED instances = UNLIMITED server = /opt/firebird/bin/fb_inet_server }

[firebird-support] Re: Unique constraint instead unique index

2017-02-02 Thread ma_go...@yahoo.com [firebird-support]
Hi! You cannt have expression in unique key, but you can have expression index with unique property. ;)

[firebird-support] Re: Best way to delete millions of rows

2016-11-22 Thread ma_go...@yahoo.com [firebird-support]
This is not a bug, this is expected behaviour : sweep/garbage collection occures.

[firebird-support] Re: Best way to delete millions of rows

2016-11-02 Thread ma_go...@yahoo.com [firebird-support]
Hi! Firebird does not like ext4. http://www.firebirdnews.org/forced-writes-performance-impact-on-ubuntu/ http://www.firebirdnews.org/forced-writes-performance-impact-on-ubuntu/ http://www.firebirdnews.org/understanding-barrier-on-linux/

[firebird-support] Re: problem with amount user that connect to firebird classic-server

2016-06-30 Thread ma_go...@yahoo.com [firebird-support]
Hi! TCP connections are limited in xinetd. Edit /etc/xinet.d/firebird file service gds_db { disable = no flags = reuse socket_type = stream wait = no tcps = 50 10 user = firebird per_source = UNLIMITED instances = UNLIMITED server = /opt/firebird/bin/fb_inet_server }

[firebird-support] Re: performance issue with firebird 3.0 embedded on linux

2016-06-17 Thread ma_go...@yahoo.com [firebird-support]
Hi! #1 : FB does not like ext4 : Firebird News » Forced Writes Performance impact on #Ubuntu with ext4 no barrier http://www.firebirdnews.org/forced-writes-performance-impact-on-ubuntu/ http://www.firebirdnews.org/forced-writes-performance-impact-on-ubuntu/ Firebird News » Forced Writes