Re: [firebird-support] Can not create backup of Firebird database because of the errors

2018-09-20 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, first, this was not good concept to use -mend, as you can loos data. If you have a copy before this operation bring it back and run gfix without it. If this is realy index problem you can fix it with simple command Alter index indexName active; This will rebuild your index Regards,Karol Bieni

Re: [firebird-support] Question about multithread: readonly query in a single transaction

2018-09-18 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi Dimitry, is this true? I read many times that this is not safe. I remember that i read this also on this group and noone say something different. Especially one thread read some portion of data when another try to retrive different portion i know that there is statement id, transaction id, co

Re: [firebird-support] Question about multithread: readonly query in a single transaction

2018-09-18 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, no, you must use separate connection fo this. fbclient.dll is thread safe, but thinking about thread safe in a level of connection or transaction is not releated here.  If something was changed in Fb3 i am realy interested. Regards,Karol Bieniaszewski null

Re: [firebird-support] ISQL connects with any credentials?

2018-09-18 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Do you mean remote connection or local maybe embeded connection? Regards,Karol Bieniaszewski null

RE: [firebird-support] Prevent overlaping dates in concurentenvironment

2018-09-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, thank you András, but this is what we do already. I mention this in my first post."Currently we lock customer record and only one user can do update/insert/delete operation at a time." But this cause serialisation of operations, only one "user" at same time.This cause that our server sleep i

RE: [firebird-support] Prevent overlaping dates in concurent environment

2018-09-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, but this require to have table with all dates. 365 rows per year per customer. This is not possible solution. This sample with customers  was only simplification. But extend this sample to meeting time date with time. This table will be too huge... Regards,Karol Bieniaszewski null

[firebird-support] Prevent overlaping dates in concurent environment

2018-09-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   is there a good way to prevent overlaping dates to be inserted to the table?   You know DATE_FROM, DATE_TO and you can have  2018-09-10 to 2018-09-20 and 2018-09-15 to 2018-09-22 they ovelap on 15,16,17,18,19 and 20     No my real sample but simple to understand is:   customer and meeting pla

[firebird-support] Prevent overlaping dates in concurent environment

2018-09-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   is there a good way to prevent overlaping dates to be inserted to the table?   You know DATE_FROM, DATE_TO and you can have  2018-09-10 to 2018-09-20 and 2018-09-15 to 2018-09-22 they ovelap on 15,16,17,18,19 and 20     No my real sample but simple to understand is:   customer and meeting pla

[firebird-support] Identify wirecompression

2018-09-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   how to identify that connection use WireCompression effectively? I need to get that info: 1. from client application side 2. from server side   regards, Karol Bieniaszewski

RE: [firebird-support] Sequential auto incremental numbering

2018-09-03 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, "As far as I remember, aggregate functions also do not use indexes and will get progressively slower over time." for min/max index is used if you have ascending for MIN and descending for MAX. About topic itself. I always use numbering table and i raly on transaction conflicts.You know if yo

Re: [firebird-support] Using External File as Table

2018-08-29 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Change your table declaration to include separator e.g. line break. (IP_Address CHAR(15),Myln char(1)); If you have windows style linebreak change myln to 2 chars. External table is a fastest way, but you must define what do you mean in your scenario as "large". Regards,Karol Bieniaszewski nu

Re: [firebird-support] Trying to create a UDF or SP that can compute a hash of binary representation of column values

2018-08-16 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, may i ask what is the purpose of this hash? Regards,Karol Bieniaszewski null

Re: [firebird-support] Name longer than database column size

2018-08-08 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, i suppose you have name longer in your particular select statement. This can be e.g. in aliasing a field  Select a.x as veryLongAliasedNameLongerThen31 from ... But only you can tell in what exact place you got this error Regards,Karol Bieniaszewski null

Re: [firebird-support] LOCALTIME and LOCALTIMESTAMP

2018-07-18 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
>>I suggest you take this question to the firebird-devel mailing list as >>it concerns an unreleased version. Questions on FB4 are off topic here. >>Mark Yes, but as local_time and local_timestamp was forwarded to FB3 it is important to know if we need also Local_date as replacement to Current

Re: [firebird-support] LOCALTIME and LOCALTIMESTAMP

2018-07-17 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
>>ANSI standard compliance is the answer for all questions What about last question LOCAL_DATE missed? Regards,Karol Bieniaszewski null

[firebird-support] LOCALTIME and LOCALTIMESTAMP

2018-07-17 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   as this is forwarded to FB3 i ask on support group not devel.   Now we have CURRENT_TIME, CURRENT_TIMESTAMP which get time from server whitout timezone. Why you breake backward compatibility in FB4 (FB3 is still ok)?   In FB4 "old" FB3 identifiers CURRENT_TIME will be LOCAL_TIME CURRENT_TIME

Re: [firebird-support] Error creating Foreign key

2018-06-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, are you sure that you are the only one attachment to the database?Check this by mon$attachments if present in Fb1.5...You can try to change database file name if it is changed succesfully then you are the only one. Try to add some delay after disconnect. But your real cure is Firebird3. Regar

Re: [firebird-support] WITH RECURSIVE or not WITH RECURSIVE

2018-06-04 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
I understand that data from real database are restricted.But what is the query plan for my CTE?Do you have an index on column id_parent? I am really interested about it in your environment i use it every day. Regards,Karol Bieniaszewski null

Re: [firebird-support] WITH RECURSIVE or not WITH RECURSIVE

2018-06-01 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, can you show some sample?And what indexes have  you created?Can you show plan for both queries and real queries itself?What filter "where" are you using? I am really interested because i have compared both queries with much more populated tables and i have got better results time, fetches and

Re: [firebird-support] Error creating Foreign key

2018-05-31 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Two questions 1. Why do you remove all FK?2. Why do you still use such old Firebird version? Many things was fixed since FB1.5 and i suppose that only real fix to your problem is using recent FB. You can try disconnect after every FK.You can also try do select count(*) from updated tables bu

Re: Re: [firebird-support] Redirect output of gbak

2018-05-30 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
niu 2018-05-30 10:47:57 użytkownik Dimitry Sibiryakov s...@ibphoenix.com [firebird-support] napisał: > 30.05.2018 10:45, liviuslivius liviusliv...@poczta.onet.pl [firebird-support] > wrote: > > it redirect info to the file but errors are not redirected - why? > >You forgot &

[firebird-support] Redirect output of gbak

2018-05-30 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   how to redirect output of gbak to the file?     "%FB_DIR%\gbak" -service 127.0.0.1:service_mgr -c -v -BUFFERS 0 -STATISTICS TD -user SYSDBA -password masterkey %FB_BACKUP%\security3.bak      %FB_RESTORE%\security3.fdb.restored 2>&1 %FB_RESTORE%\rest.security3.rep

Re: [firebird-support] Re: PASCAL UDR - stored procedure BLOB param and return

2018-05-24 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
> the blob field is a ISC_QUADPtr > ISC_QUAD = array [1..2] of Integer; > ISC_QUADPtr = ^ISC_QUAD; > > -- > Norbert Saint Georges > http://tetrasys.fi Hi, thank you in the meantime i have found this: https://github.com/FirebirdSQL/firebird/blob/master/doc/Using_OO_API.html i do not know why t

[firebird-support] FB3 - no permission for SELECT access to TABLE PLG$SRP

2018-05-18 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   can you help me fix below problem?   when connected user try to select on SEC$ for data  he got an error:     find/display record error no permission for SELECT access to TABLE PLG$SRP.   - e.g. SELECT U.SEC$USER_NAME , (SELECT UA.SEC$V

Re: Re: [firebird-support] FB3 alter domain colltion

2018-05-18 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
>>It is not clear why you included a COLLATE clause in an ALTER DOMAIN >>statement. You can't change the COLLATE property of a domain, which >>is why you got the error: COLLATE is not expected in an ALTER DOMAIN >>statement. But you were not trying to change that, anyway. >>HB The question is why i

[firebird-support] FB3 alter domain colltion

2018-05-16 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   when we create dommain we can do: CREATE DOMAIN XXX TYPE VARCHAR(50) COLLATE PXW_PLK;   but how to alter this domain to have still collation?   ALTER DOMAIN XXX TYPE VARCHAR(150) COLLATE PXW_PLK;     Engine Code    : 335544569 Engine Message : Dynamic SQL Error SQL error code = -104 Token unk

Re: [firebird-support] MON$Attachment privileges

2018-05-15 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, thank you. I see that in FB3 this is the only way :(This break logic in our application. Regular user ca not have privileges to change db structure but with RDB$Admin role he can :(I see that this is implemented only in FB4tracker.firebird.org/browse/CORE-2557 Regards,Karol Bieniaszewski n

Re: Re: [firebird-support] Re: Udr GenRows sample Pascal

2018-05-15 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
>It depends on information in IMessageMetadata. > > > I have tried: > > ss: Array[0..199] of Char; > > ss: Array[0..199] of Byte; > > ss: Array[0..199] of AnsiChar; > >This is a right declaration for CHAR(200). > OK > > ss: String[200]; > > > > with last string[200] i got result pref

[firebird-support] MON$Attachment privileges

2018-05-15 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   how can i grant select on MON$Attachements to normal user that he/she can see all attachements not only self?   I use Firebird 3.   regards, Karol Bieniaszewski

Re: [firebird-support] Doubts regarding statistics of indexes and tables...

2018-05-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, i do not suppose that this is possible and especially that you should do this. Better then look at queries and addapt it to real situation. Regards,Karol Bieniaszewski null

Re: [firebird-support] Doubts regarding statistics of indexes and tables...

2018-05-11 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, to "backup" statistics you can run query on rdb$indices and rdb$index_segment tables. And save result to the file. About table statistics - here is really fine concept that you do not need to recalculate anything. Table pages count and record size is taken in calc. In fb3 also record compres

Re: [firebird-support] Re: Firebird temp files

2018-05-10 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
>>Either some GTT was used or temporary >>blob storage was requested. Why do >>you want it to be prevented? RAM is fast disc is slow and i have plenty of free RAM. Also i have bigger cache then database pages count and this operations can be all done in memory. >>In SS, it will be closed/deleted

RE: [firebird-support] Subscribe and question

2018-05-10 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Ar you sure that your answers are true?You say that win10 is only a clien and then that when you restore to update 1709 you see that fb is listen. I suppose you have Firebird installed on this Win10 machine and it serve client and server in the same time. Is this true or your config os different

Re: [firebird-support] Re: Firebird temp files

2018-05-10 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Yes, you have right  but i really try to avoid RAM disc which consume memory always i prefer if some resource free memory it is available to be consumed by any process.  Do you know why this file is created at all and especially why its handle is still active in firebird process few days? Regards

[firebird-support] Monitoring tables indexes

2018-05-09 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, can i ask why monitoring tables have not any indexes? Any left join go into natural scan as we have not hash/merge for outer join (core-4823). Regards,Karol Bieniaszewski

RE: [firebird-support] Re: Firebird temp files

2018-05-09 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Thank you for the suggestion. We will consider RAM disc uses but first we must be sure how big it should be to catch all cases. It should be docummented how temp tables work (maybe it is somwhere?) with temp files. Regards,Karol Bieniaszewski null

Re: [firebird-support] Re: Firebird temp files

2018-05-09 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Ok, i understand temp file caching but why Firebird create this temp file at all and how to prevent this? And second question, why file handle is still active? Is this file for particular temporary table or it is a buffor for all temporary tables? Regards,Karol Bieniaszewski null

Re: [firebird-support] Re: Firebird temp files

2018-05-09 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
>> No, caching is left up to OS. i do not understand above. I have dissabled os caching in firebird.conf. Also file is created by Firebird not OS. Can you explain this more? Regards,Karol Bieniaszewski null

Re: [firebird-support] Re: Firebird temp files

2018-05-09 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Thank you for the info Is there particular settings to go always into RAM or some buffer settings which i can increase to avoid going to disc? I have nowTempCacheLimit = 800MMentioned file is 29MB in size and dated 2 days old and its handle is still in use by Firebird process Regards,Karol Bienia

[firebird-support] Firebird temp files

2018-05-09 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, what is the purpose of temp file named e.g.fb_table_yfz4x5?I use FB3 regards,Karol Bieniaszewski

Re: [firebird-support] Strange SIMILAR TO result

2018-05-07 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Ach now it is clear. All work ok. You got false for char(5) because it work the same way as it is working for LIKE with char.  TrySelect cast('ABCD' as char(5)) like 'ABCD' from rdb$database Regards,Karol Bieniaszewski null

Re: [firebird-support] Strange SIMILAR TO result

2018-05-07 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, It is false for meBut i put '=' in single quote with double it does not work. I use FB3.0.4.32954 dialect 3 Regards,Karol Bieniaszewski null

[firebird-support] Alter column not null with constraint name FB3

2018-04-24 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   I need to add Field not null constraint with my custom name.   in previous versions of Firebird we can do:   1. ALTER TABLE XXX ADD FIELDX INTEGER CONSTRAINT NK_XXX__FIELDX NOT NULL; 2. UPDATE TABLE XXX SET FIELDX=some calculations;   Now in Firebird 3 this is prohibited on table with data.  

Re: [firebird-support] Write UDF for 3.0 - Linux 64bit vs Windows 32bit

2018-04-19 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, I do not work with linux buDid you compiled it as 64bit? And is your Firebird server 64bit? Regards,Karol Bieniaszewski null

Re: [firebird-support] Book on T-SQL

2018-04-18 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi Steve, can you point me into one example about sentence mentioned by you"Firebird's implementation of SQL is a very strict implementation of the SQL-92 Standard.  As a result, this makes Firebird-SQL not only very limited in what it can do when compared to other SQL dialects but extremely fru

Re: [firebird-support] Can't connect to Linux FB 2.5 remotely

2018-03-29 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, What if you do not ommit servername on server side? Is this working? If not then service is not running or fbconfig have only local connections plugin set (if it is Firebird 3) Regards,Karol Bieniaszewski Oryginalna wiadomość Od: "dco...@sympatico.ca [firebird-support]" Dat

[firebird-support] Mapping Windows group to FB role

2018-03-27 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, can someone point me how can i map windows group to the Firebird role?I have tried already CREATE MAPPING TRUSTED_WSZYSCY USING PLUGIN WIN_SSPI FROM predefined_group 'rFirebird-Firebird-DBRido-ReadWrite' TO ROLE WSZYSCY I have also tested with prefix xcorp\rFirebird... mapping was created but

Re: [firebird-support] Firebird3 Autentication

2018-03-26 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
-3-2018 14:29, liviuslivius liviusliv...@poczta.onet.pl > [firebird-support] wrote: >> My firebird.conf settings are: >> Auth_Server = Srp >> AuthClient = Srp, Win_Sspi, Legacy_Auth >> User_Manager = Srp It is also UserManager, not User_Manager. >> What more should i

Re: [firebird-support] Firebird3 Autentication

2018-03-26 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
rt windows auth? Regards,Karol Bieniaszewski Oryginalna wiadomość ----Od: "liviuslivius liviusliv...@poczta.onet.pl [firebird-support]" Data: 26.03.2018 11:23 (GMT+01:00) Do: firebird-support@yahoogroups.com Temat: [firebird-support] Fire

[firebird-support] Firebird3 Autentication

2018-03-26 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, in Firebird 2.5 there was Autentication parameter in Firebird.conf. It have values like NATIVE, MIXED or TRUSTED. I do not see it in Firebird3 firebird.conf. Can someone point me to the right config? Regards,Karol Bieniaszewski

Re: [firebird-support] FB3.0.2 : Lost one record (update on power off ?)

2018-03-20 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Firebird uses carefull writes but this have less importance today bacause below are array buffers, disc buffers and system buffers. But what was in firebird.log when you run gfix -validate -full on that database before you backup it and restore? Regards,Karol Bieniaszewski null

Re: [firebird-support] Re: Can many Execute Blocks be within a Transaction.

2018-03-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, One transaction have benefits like integrity. If your process must be accomplished as a whole it is only good way for this. Your statments are executed serial. For parallel you will need many connections at the same time. Regards,Karol Bieniaszewski null

Re: [firebird-support] Execute Block size limit

2018-03-07 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Yes, limiting number of inserts can help but. What kind of connectivity components are you using? If firedac, then look at array dml. It make prepared execute block for you and i can get performance e.g 200 000 records per second. You have small record sets to import, then write insert one by one

Re: [firebird-support] Re: Execute Block: Need Insert Into to trigger Primary Key generator.

2018-02-27 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi. Your trigger set FK_ID not PK_ID  Regards,Karol Bieniaszewski null

Re: [firebird-support] Foreign Key & Query Performance

2018-02-24 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Show query plans for both situatios fk an index. Regards,Karol Bieniaszewski Oryginalna wiadomość Od: "antoedinchar...@gmail.com [firebird-support]" Data: 24.02.2018 11:40 (GMT+01:00) Do: firebird-support@yahoogroups.com Temat: [firebird-support] Foreign Key & Query Perform

[firebird-support] No permission to remote access to database

2018-02-22 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, How to add permission to login into security3.fdb? regards,Karol Bieniaszewski

Re: [firebird-support] Re: SecurityDatabase in FB3

2018-02-22 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
And if i understand corectly you can have different users acros databases and different users properties Regards,Karol Bieniaszewski null

Re: [firebird-support] ODS Error Help

2018-02-16 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Check your system32 or syswow64 for firebird client versions and look if you have not some conflict with Interbase installed with Delphi Regards,Karol Bieniaszewski Oryginalna wiadomość Od: "craig_...@coxcolvin.com [firebird-support]" Data: 16.02.2018 23:38 (GMT+01:00) Do: fi

[firebird-support] FB tracker formatting

2018-02-15 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Did you know if there is some formating which can be included in report submited to Firebird bug tracker? Some bb-code or something like that? Pozdrawiam,Karol Bieniaszewski

Re: [firebird-support] Query problem

2018-02-08 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Yes,  but source of one column is ommitedVAREFRVSTR_DETAIL.LAENGDE_NAVNYou group by VAREFRVSTR.LAENGDE_NAVN Change your group by or change source of column in subquery Regards,Karol Bieniaszewski Oryginalna wiadomość Od: "michael.vilhelm...@microcom.dk [firebird-support]" Da

Re: [firebird-support] Query problem

2018-02-07 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Your bolded subquery need to have value e.g. VAREPLU_ID but you not group by this field and server do not know its value then Regards,Karol Bieniaszewski Oryginalna wiadomość Od: "michael.vilhelm...@microcom.dk [firebird-support]" Data: 07.02.2018 22:24 (GMT+01:00) Do: fi

Re: [firebird-support] Re: Set custom value on connection system info

2018-02-07 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, what do you mean by maintain here? Do you have custom user information table or not? If not then what do you need to store in this context var? I supposed that you have custom user information table and you need to match your user record with server user to know who is logged into the server.

Re: [firebird-support] Re: Set custom value on connection system info

2018-02-06 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi. I see no difference. You join your custom table with MON$Attachments and you are safe here because if user is not logged you have not row in mon$table. E.g. you have tableWorker with fieldsIdName Age...User_name And you join Select * from mon$attachments A inner join workers W where A.mon$us

Re: [firebird-support] Joining more than 10 tables and views in a view

2017-12-18 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, i see no problem until your particular views do not include some order by features But as always, doing tests self is the best way. Regards,Karol Bieniaszewski null

Re: [firebird-support] FB 2.5.2 has a better query plan than FB 3.0.2

2017-12-13 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, what do you suppose we can do with your email without any example?  Regards,Karol Bieniaszewski null

Re: [firebird-support] Gradual decrease in select performance - Indexes

2017-12-01 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, 1. Show us stats from gstat -h from working system i do not belrve that you have 3 transactions working whole the time. I suppose here that you have transaction management problem - i guess2. Consider bigger page size but i do not know how your insert/update scenario looks like and if this n

Re: [firebird-support] Sorting-Problem on recursive query (window functions)

2017-11-07 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Please show how exactly resultset should be because i now do not understand your needs. Query return path and return in order a before b what more? Regards,Karol Bieniaszewski Oryginalna wiadomość Od: "josef.gschwendt...@quattro-soft.de [firebird-support]" Data: 07.11.2017

[firebird-support] On update cascade order rule

2017-11-03 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, What is the order of cascade firing for foreign key. How to gain control to it? Eg. 3 tables 2 reference 13 referece 1 and 2 How can i fire update on table 1 cascade in the correct order to avoid violation of keys? Regards,Karol Bieniaszewski

Re: [firebird-support] detect if database has changed

2017-10-09 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, You can also look at sample at http://itstop.pl/pl-pl/porady/Firebird/FAQ1/czas-ostatniej-modyfikacji-tabeli It is in PL lang but triggers are fully descriptive. I prefer generator based approach Regards,Karol Bieniaszewski null

Re: [firebird-support] detect if database has changed

2017-10-08 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, use triggers on tables for this.  Regards,Karol Bieniaszewski null

Re: Re[2]: [firebird-support] Find duplicate multi-row entries

2017-09-27 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Please define "set" Regards,Karol Bieniaszewski null

Re: [firebird-support] Find duplicate multi-row entries

2017-09-27 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, group by + havingis your friend.E.g.Select field1, field2, count(*)From tablexGroup by field1, field2Having count(*)>1 But in your scenario i do not know if this is the solution. Question is if record was changed and in next update "restored" and once again changed is this duplicate or no?If

Re: AW: [firebird-support] Explicit Login with Windows Domain username

2017-09-20 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Yes, You must first impersonate user for the current thread and then you can login to fb from that thread Regards,Karol Bieniaszewski Oryginalna wiadomość Od: "'Nikolaus Kern' parzival1...@gmx.at [firebird-support]" Data: 20.09.2017 17:10 (GMT+01:00) Do: firebird-support@yaho

Re: [firebird-support] Explicit Login with Windows Domain username

2017-09-20 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, It is possible but you must change current thread credentials. I do not remember now api call but look in the google for changing credential for the thread Regards,Karol Bieniaszewski null

Re: [firebird-support] file size and transactions

2017-09-13 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
No. I only point you how to check this. From your header you can read that oldest active and next transaction have only 5 transactions gap. Other numbers you can progress by running sweep. Regards,Karol Bieniaszewski Oryginalna wiadomość Od: "shg_siste...@yahoo.com.ar [firebird

Re: [firebird-support] file size and transactions

2017-09-13 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Run Select * from mos$transactions Then you will see if you have long running Regards,Karol Bieniaszewski null

Re: [firebird-support] List of read only stored procedures.

2017-07-22 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, For point 4 simply start readonly transactionIf it raise exception you got info about reason.Also it is good to start transaction and rollback it if you doesn't need to modify something Regards,Karol Bieniaszewski Wysłano z mojego smartfonu w PLAY Oryginalna wiadomość Od:

Re: [firebird-support] Rename table

2017-07-17 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, This whole discussion is strange to me.Rename table while are pending inserts to it?How. If statment like rename table exsist then after name has changed all applications must be recompiled to take this new name into account. This looks to me that discussion is not about real problem. Only a

[firebird-support] Detecting disk operations

2017-07-05 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi, Is there a way to detect throught mon$ tables or trace or other way disk operations caused by query? I see only page_reads and page_writes, page_marks, page_fetches but how to distinguish which one:1. Page is read because missed in cache2. Page is read/write beacause of big sort operation3.

Re: [firebird-support] Re: Firebird 3 execution plan

2017-02-16 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi Dmitry,   current snapshot: WI-V3.0.2.32691 Firebird 3.0   CREATE UNIQUE DESCENDING INDEX IXDU_SENSOR_DATA__ID ON SENSOR_DATA (ID);   ID bigint   selectivity PK_SENSOR ASC ID 0.25   UK_SENSOR__SENSOR_UID ASC SENSOR_UID 0.25 FK_SENSOR_DATA__SENSOR ASC ID_SENSOR 0.25  IXDU_SENSOR_DATA_

[firebird-support] Firebird 3 execution plan

2017-02-16 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   Firebird3    SELECT FIRST 1 S.SENSOR_UID, S.NAZWA, SD.ID, SD.ID_SENSOR, SD.DT, SD.WARTOSC, SD.FLAGS FROM SENSOR_DATA SD INNER JOIN SENSOR S ON S.ID=SD.ID_SENSOR WHERE S.ID=1 ORDER BY SD.ID DESC   plan is "wrong" PLAN SORT (JOIN (S INDEX (PK_SENSOR), SD INDEX (FK_SENSOR_DATA__SENSOR))) Execut

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

2017-02-02 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Good point about expression index :) but i am talking generally (ommit expression index)    regards, karol Bieniaszewski   W dniu 2017-02-03 08:05:45 użytkownik ma_go...@yahoo.com [firebird-support] napisał:   Hi! You cannt have expression in unique key, but you can have expression index with un

Re: Re: [firebird-support] Connection with Problem

2017-02-02 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Do you have also Interbase instaled there?   regards, Karol Bieniaszewski     W dniu 2017-02-01 19:44:48 użytkownik 'Mark Rotteveel' m...@lawinegevaar.nl [firebird-support] napisał:   Please send your question to the Firebird-java list instead. If you do that, make sure to include more informati

[firebird-support] Unique constraint instead unique index

2017-02-02 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   this is offtopic but... Is there any particular reason to not use always unique constraint instead of unique index? Some overhead? Some speed difference in insert,update,delete?   Or this is only to disable creating FK on such fields included in index but not as constraint?   regards, Karol

Re: [firebird-support] Re: Firebird for Android

2017-01-16 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   have you something like QuickStartGuide? :)   regards, Karol Bieniaszewski   W dniu 2017-01-16 18:29:50 użytkownik peshk...@mail.ru [firebird-support] napisał:   FB 3.0.0: http://web.firebirdsql.org/download/prerelease/android/ Not new but should be enough to begin  

Re: Re: [firebird-support] Firebird for Android

2017-01-16 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Carlos,   it was not tested because people do not know about it. We are really interested in :) Please announce it on the page ad you will see how big interest it take :)   regards, Karol Bieniaszewski       W dniu 2017-01-16 15:05:06 użytkownik 'Carlos H. Cantu' lis...@warmboot.com.br [firebird-s

Re: Re: [firebird-support] Steps to Set Wait/No Wait Transaction

2017-01-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   dbClick on IBTransaction component and you got Transaction editor - and there you have all values google for each value   regards, Karol Bieniaszewski     W dniu 2017-01-13 07:08:19 użytkownik Vishal Tiwari vishuals...@yahoo.co.in [firebird-support] napisał:   I am using TIBSQL, TIBDatabas

Re: [firebird-support] Firebird : find strign in all database

2017-01-11 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   rather simple operation but can take very long time if database is big. You can write stored procedure - or EXECUTE BLOCK and inside iterate by system tables RDB$RELATIONS and RDB$RELATION_FIELDS and do EXECUTE STATEMENT with where condition and return back sum of fields '||' and table name w

Re: [firebird-support] Case sql

2017-01-05 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
  Hi,   "case" is function and operate on row data. If you have 7 rows then you got 7 rows after case To reduce rows you need to "group by"     regards, Karol Bieniaszewki         W dniu 2017-01-05 13:12:10 użytkownik 'Stef' s...@autotech.co.za [firebird-support] napisał:   Good day everybody, I

Re: Re: [firebird-support] info

2017-01-05 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   when you migrate something and this is reserved word you name it with quotes, and also if it contain space but i prefer in that migration to change the name instead using double quotes. But another place where it is vital to have double quotes supported is select field as "some name for fiel

Re: [firebird-support] Commit MON$TRANSACTIONS by TRANSACTION_ID

2016-12-15 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   did you mean rollback? not commit?   regards, Karol Bieniaszewski   W dniu 2016-12-14 17:44:16 użytkownik Jaume Llunell Gómez jaumellun...@gmail.com [firebird-support] napisał:   Hi,   is it possible to commit a transaction that is hanged in the MON$TRANSACTION table by ID?   I've seen th

[firebird-support] just for info about FB3

2016-12-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   this is only for info if someone is worry about FB3 stability. I run very big deletion statement in concurrent env - i clear 90% of old historical data from database and FB run without any problem this big command :)   below are stats:   Executing statement... Statement executed (elapsed tim

Re: AW: [firebird-support] Sequence

2016-12-02 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi    i do not read your whole info but maybe you need to use case statement   e.g your 3 update statements can be changed fro:   Update table set prio = newprio(1) where id = 20; Update table set prio = prio – 1 where prio < newprio; Update table set prio = prio + 1 where prio > newprio;   to one:

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

2016-11-22 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   i agree with you   i suppose that time spend by GC should be measured and if it take to much time then stop GC and try again leter. E.g. when i do delete from milions_table and then do SELECT COUNT(*) form milions_table it should not clear whole garbages and stop query until GC finished. e.g.

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

2016-10-31 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
hi, do this in packets.delete 10 commit and then count. sleep and once again until finished. bu check also on Firebird 3 and tell us if your issue is still there regards,Karol Bieniaszewski Oryginalna wiadomość Od: "kragh.tho...@yahoo.com [firebird-support]" Data: 2

ODP: Re: {Disarmed} Re: [firebird-support] Number of concurrent user connections

2016-10-28 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
simple session id maitenanceread about read also about No SQL databases regards,Karol Bieniaszewski Oryginalna wiadomość Od: "Alain Bastien alainbast...@gmail.com [firebird-support]" Data: 28.10.2016 12:00 (GMT+01:00) Do: firebird-support@yahoogroups.com Temat: Re: {

Re: Re: [firebird-support] Number of concurrent user connections

2016-10-27 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
No - you can have aplication server between to serve data to web server and it e.g. run limited number of connection (espessialy 1 connection to database) and login and password can be not the db user only application user (table of users and paswsword hash)   regards, Karol Bieniaszewski       W

ODP: Re: [firebird-support] Optimizer request

2016-10-19 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
hi, maybe MERGE is your answer regards,Karol Bieniaszewski Oryginalna wiadomość Od: "ehmmm.fireb...@seznam.cz [firebird-support]" Data: 19.10.2016 09:34 (GMT+01:00) Do: firebird-support@yahoogroups.com Temat: Re: [firebird-support] Optimizer request  

Re: Re: [firebird-support] Is Try_Cast in Firebird?

2016-10-17 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
    W dniu 2016-10-17 10:17:33 użytkownik Mark Rotteveel m...@lawinegevaar.nl [firebird-support] napisał:   On 17-10-2016 10:10, liviuslivius liviusliv...@poczta.onet.pl [firebird-support] wrote: > i know > Cast('XXX' AS Integer) > but is there > try_Cast('XXX' AS

[firebird-support] Is Try_Cast in Firebird?

2016-10-17 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Hi,   i know Cast('XXX' AS Integer) but is there try_Cast('XXX' AS Integer) like in MSSQL? you know if something can not by converted then return null.   regards, Karol Bieniaszewski

<    1   2   3   4   >