[Firebird-devel] Problem in Firebird-3.0.0.32483-0.amd64.tar.gz

2016-06-01 Thread Adriano dos Santos Fernandes
Alex, Look at this: asfernandes@cheetah:/opt/firebird$ ll /opt/firebird/include/firebird/ total 956 drwxr-xr-x 3 root root 4096 Abr 14 11:12 ./ drwxr-xr-x 3 root root 4096 Abr 14 11:12 ../ -r--r--r-- 1 root root 493945 Abr 14 11:12 Firebird.pas -r--r--r-- 1 root root 438157 Abr 14 11:12 IdlFb

[Firebird-devel] FB/Java External Engine Plugin - 1.0.0-alpha-1

2016-06-01 Thread Adriano dos Santos Fernandes
Hi! I'm pleased to release first test version of FB/Java, compatible with Firebird 3.0.0. https://github.com/FirebirdSQL/fbjava/releases FB/Java is an External Engine plugin for Firebird that makes Firebird capable of run functions, procedures and triggers made in the Java platform. It compleme

[Firebird-devel] Class to prevent implicit zero to pointer conversion

2016-06-01 Thread Dimitry Sibiryakov
Hello, All. I've got a little problem when implicit conversion from zero to pointer can cause calling of wrong overloaded function. For example, foo(bool a) and foo(void* a) both can be called as foo(0) and compiler used to throw error for this call, but in some (more complex) cases co

Re: [Firebird-devel] Building of API examples

2016-06-01 Thread Alex Peshkoff
On 06/01/2016 04:59 PM, Dimitry Sibiryakov wrote: > Hello, All. > > There is no makefile nor VS solution to build interface examples or I'm > missing > something obvious? > A comment in a file. -- What NetFlow A

[Firebird-devel] Building of API examples

2016-06-01 Thread Dimitry Sibiryakov
Hello, All. There is no makefile nor VS solution to build interface examples or I'm missing something obvious? -- WBR, SD. -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patte

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Alex Peshkoff
On 06/01/2016 04:06 PM, Adriano dos Santos Fernandes wrote: > On 01/06/2016 08:18, Alex Peshkoff wrote: >> Particularly lock files are not a problem - each database has own lock >> file, and certainly same database can't be accessed with 2 engines >> supporting different major ODS. >> But we have a

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Adriano dos Santos Fernandes
On 01/06/2016 08:18, Alex Peshkoff wrote: > Particularly lock files are not a problem - each database has own lock > file, and certainly same database can't be accessed with 2 engines > supporting different major ODS. > But we have a number of other shared files (trace, mapping change > notifica

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Dimitry Sibiryakov
01.06.2016 13:18, Alex Peshkoff wrote: > But we have a number of other shared files (trace, mapping change > notification, may be else). I see that trace name includes ODS version > name (fb12_trace). The only problem that opened database is ODS13 ;) > I.e. that issue worth to be checked and fixed.

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Alex Peshkoff
On 06/01/2016 01:59 PM, Adriano dos Santos Fernandes wrote: > On 01/06/2016 06:46, Dmitry Yemanov wrote: >> 01.06.2016 12:40, Roman Simakov wrote: >> >>> Does it make sense to install several previous engines with current >>> one to make it possible to perform B/R after server upgrade? >> Sure, why

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Dmitry Yemanov
01.06.2016 14:06, Adriano dos Santos Fernandes wrote: > But if databases is said to be "shared", two engines will access and > corrupt them. No, two engines will synchronize their access using the same lock table. If one of them cannot read that lock table, it will fail. But no corruption will

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Dimitry Sibiryakov
01.06.2016 13:06, Adriano dos Santos Fernandes wrote: > But if databases is said to be "shared", two engines will access and > corrupt them. No, one engine will throw error about unsupported ODS. -- WBR, SD. -- Wh

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Adriano dos Santos Fernandes
On 01/06/2016 08:02, Dimitry Sibiryakov wrote: > 01.06.2016 12:59, Adriano dos Santos Fernandes wrote: >> How that will work if, for example, lock file version changes in a newer >> engine? >Lock files are separate for each database. One database cannot be accessed > by two engines. > But if d

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Dimitry Sibiryakov
01.06.2016 12:59, Adriano dos Santos Fernandes wrote: > How that will work if, for example, lock file version changes in a newer > engine? Lock files are separate for each database. One database cannot be accessed by two engines. -- WBR, SD. --

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Adriano dos Santos Fernandes
On 01/06/2016 06:46, Dmitry Yemanov wrote: > 01.06.2016 12:40, Roman Simakov wrote: > >> Does it make sense to install several previous engines with current >> one to make it possible to perform B/R after server upgrade? > Sure, why not. But it should be up to DBAs, I doubt we should distribute >

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Alex Peshkoff
On 06/01/2016 01:30 PM, Dimitry Sibiryakov wrote: > 01.06.2016 12:24, Alex Peshkoff wrote: >> 2 different libstdc++ do not work in same process. > Oh, I forgot about Linux symbol hell. > Yes, oriented to source distribution it badly supports old binaries.

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Dimitry Sibiryakov
01.06.2016 12:24, Alex Peshkoff wrote: > 2 different libstdc++ do not work in same process. Oh, I forgot about Linux symbol hell. -- WBR, SD. -- What NetFlow Analyzer can do for you? Monitors network bandwidth and

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Alex Peshkoff
On 06/01/2016 12:53 PM, Dimitry Sibiryakov wrote: > 01.06.2016 11:50, Alex Peshkoff wrote: >> Only in a case if we use incompatible c++ compilers making impossible to >> use fb3 provider library in fb4. > Aren't plugins supposed to be compiler-independent?.. Existence of > Firebird.pas means >

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Dimitry Sibiryakov
01.06.2016 11:50, Alex Peshkoff wrote: > Only in a case if we use incompatible c++ compilers making impossible to > use fb3 provider library in fb4. Aren't plugins supposed to be compiler-independent?.. Existence of Firebird.pas means that it can be written even in pascal... -- WBR, SD.

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Alex Peshkoff
On 06/01/2016 12:46 PM, Dmitry Yemanov wrote: > 01.06.2016 12:40, Roman Simakov wrote: > >> Does it make sense to install several previous engines with current >> one to make it possible to perform B/R after server upgrade? > Sure, why not. But it should be up to DBAs, I doubt we should distribute

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Dmitry Yemanov
01.06.2016 12:40, Roman Simakov wrote: > Does it make sense to install several previous engines with current > one to make it possible to perform B/R after server upgrade? Sure, why not. But it should be up to DBAs, I doubt we should distribute engine12 inside the FB4 packages. Dmitry --

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Roman Simakov
2016-06-01 10:53 GMT+03:00 Dmitry Yemanov : > I've bumped the ODS version for v4. It cannot work with ODS12 databases > anymore, backup/restore is needed. Does it make sence to install several previous engines with current one to make it possible to perform B/R after server upgrade? -- Roman Sim

Re: [Firebird-devel] Move semantic

2016-06-01 Thread Alex Peshkoff
On 06/01/2016 11:39 AM, Dmitry Yemanov wrote: > 01.06.2016 11:34, Alex Peshkoff wrote: > >> But they provide (unlike gcc) working code. At least on AIX. > Does GCC fail to create a working code even with -O2 and lower settings? > I.e. is it optimization issue or something fundamental? Main problem

Re: [Firebird-devel] Move semantic

2016-06-01 Thread Dmitry Yemanov
01.06.2016 11:34, Alex Peshkoff wrote: > But they provide (unlike gcc) working code. At least on AIX. Does GCC fail to create a working code even with -O2 and lower settings? I.e. is it optimization issue or something fundamental? Dmitry --

Re: [Firebird-devel] Move semantic

2016-06-01 Thread Alex Peshkoff
On 05/31/2016 10:59 PM, Egor Pugin wrote: >> AIX or HPUX with native compilers ... > Do these platforms have gcc/clang? > If yes why some native old compilers should be taken into account? > It's obvious that those compilers almost always will be behind gcc/clang/vc. > But they provide (unlike gcc

Re: [Firebird-devel] Move semantic

2016-06-01 Thread Alex Peshkoff
On 05/31/2016 10:53 PM, Adriano dos Santos Fernandes wrote: > On 31/05/2016 11:00, Alex Peshkoff wrote: >> On 05/31/2016 04:53 PM, Dimitry Sibiryakov wrote: >>> 31.05.2016 15:27, Alex Peshkoff wrote: But what about AIX or HPUX with native compilers - probably you need to google carefully

Re: [Firebird-devel] ODS 13

2016-06-01 Thread Dmitry Yemanov
All, I've bumped the ODS version for v4. It cannot work with ODS12 databases anymore, backup/restore is needed. Now we may introduce incompatible changes, some of them are expected soon. Ideally, I'd prefer low-level changes to settle before September, minor system table changes may be postpon