Re: [firebird-support] gback NULLed columns

2018-06-22 Thread André Knappstein knappst...@beta-eigenheim.de [firebird-support]
> I would first rule out the possibility that the change was not
> committed. Both DDL and gbak are transactional, so not having committed
> the table change would result in that change not being part of the gbak
> backup.

Thank you, Mark.
So,  this  is not usual and somehow I should be concerned, or at least
irritated.
I  am  pretty  sure  that  the table change has been committed, but of
course   I  did  not check it, specifically. I only checked that there
was no old transaction in the statistics.

I  was  adding  the  columns using IBExpert, then also created and ran
several Stored Procs.

All  the  while,  the  database  was  in production and the users were
inserting/updating/deleting  records; I tested all actions and scripts
on a dummy database with current data before, so I thought that for an
exception shutting down database from production was not necessary.

I  backed  up  the database several times in a series of several days,
did  tests  with  the  locally  restored  backups  and only much later
noticed  that  the  new columns were missing in the local backup - all
the new records were in, though.

Server and clients are 2.5.3.26778.
Gap  between  OT  and  NT  was  less  than 100 when I checked (for 50+
concurrent users) and OT and OAT constantly moving.

Is there something else I can check short of trying to reproduce this?

Note:  I  am  off  to holiday in 2 days, so probably can only react on
your advice in a couple of weeks.

best thanks in advance!

André




Re: [firebird-support] How can I correctly write this WHERE

2018-06-22 Thread Venus Software Operations venussof...@gmail.com [firebird-support]














Re: [firebird-support] Plan with stored procedure

2018-06-22 Thread Alexey Kovyazin a...@ib-aid.com [firebird-support]

Hi Josef,

Firebird 3 shows plan Natural for all procedures.
2.5 also sometimes shows Natural, sometimes  - mix of plans of queries 
inside the procedure.

So, you cannot apply this plan to the statement.

Regards,
Alexey Kovyazin
IBSurgeon www.ib-aid.com





On 22.06.2018 9:47, josef.gschwendt...@quattro-soft.de 
[firebird-support] wrote:


Hi,


for a certain select-statement IB-Expert shows the plan below:

PLAN JOIN (PRO INDEX (RDB$FOREIGN218), SORT (SORT (SC_COSTS NATURAL)))


If I apend this plan to the statement I get the error below:

There is no alias or table named SC_COSTS at this scope level.


My problem is, that I don't find any name or alias that works within 
this plan.



Does anybody know how to do this?


Regards,

Josef







[firebird-support] Re: Plan with stored procedure

2018-06-22 Thread josef.gschwendt...@quattro-soft.de [firebird-support]
Hi, 

 

 I forgot to write that "SC_Costs" is a stored procedure.
 

 Josef



[firebird-support] Plan with stored procedure

2018-06-22 Thread josef.gschwendt...@quattro-soft.de [firebird-support]
Hi,
 

 for a certain select-statement IB-Expert shows the plan below:

 PLAN JOIN (PRO INDEX (RDB$FOREIGN218), SORT (SORT (SC_COSTS NATURAL)))
 

 If I apend this plan to the statement I get the error below:

 There is no alias or table named SC_COSTS at this scope level.
 

 My problem is, that I don't find any name or alias that works within this plan.
 

 Does anybody know how to do this?
 

 Regards,
 Josef