Hi Roger, we are trying Postgres 9.3.20 and the latest Xbase++ 853 update. We have a large app and ran into some obstacles, I contacted Alaska and they emailed me back:rdonnay wrote:
Can I ask anyone who is using PostgreSQL, which version of pgAdmin are you using?
"Thank you very much for providing us with the sample. As a matter of fact, evaluating the filter expression fails because the filter is evaluated at the server and the server does not support the function Deleted(). You will encounter the same
issue when using other functions or operators such as the not-equal operator "#".
As a workaround and as long as this issue is not fixed yet, consider to rework your filter. For example, you can set the deleted setting to ON using the command SET DELETED ON. This is equal to your filter {|| Deleted()}. In case the filter in your sample was simplified for demonstration purposes it might be possible to modify the filter accordingly anyway.
I have created PDR 6970 to cover the issue:
http://www.alaska-software.com/scripts/ ... PDRID=6970
Please note that these PDRs already exist that point into the same direction: 6963 6962 6961
Besides of all this please let me add the following: Working with filters is not very performant. This is because the filter codeblock must be evaluated for all records that need to be read from the storage. As a consequence, the table must be completely scanned.
As a further optimization, you can consider creating an index that equals your filter. Beside of everything else, this will perform incomparably faster.
Hope this helps. "
---
I would be happy to show you how far we have come with our migration when you have some time. We have some ideas on how to make it work and be performant but could certainly use a more experienced brain looking at this.