Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression in 3.0: trace reports UPDATES in statistics when doing INSERT into <some_table> [CORE4515] #4833

Closed
firebird-automations opened this issue Aug 11, 2014 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

Attachments:
trace-screen-in-FB_3.0-when-INSERT-into-T-select-from-MON$.zip

SQL> recreate table mon_log(att_id int); commit;
SQL> insert into mon_log(att_id) select mon$attachment_id from mon$attachments where mon$attachment_id=current_connection;

Trace in LI-V2.5.3.26788:

Table Natural Index Update Insert
************************************************************************
MON_LOG 1

(one INSERT, and, of course, this is OK).

Trace in LI-T3.0.0.31280:

2014-08-11T16:02:14.8900 (30759:0x7f3a50761c18) EXECUTE_STATEMENT_FINISH
oltp30b (ATT_21, SYSDBA:NONE, NONE, TCPv4:192.168.43.96)
C:\MIX\firebird\fb25\bin\isql.exe:3856
(TRA_142, CONCURRENCY | WAIT | READ_WRITE)

Statement 121:
-------------------------------------------------------------------------------
insert into mon_log(att_id) select mon$attachment_id from mon$attachments where mon$attachment_id=current_connection
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PLAN (MON$ATTACHMENTS NATURAL)
0 records fetched
0 ms, 11 fetch(es), 4 mark(s)

Table Natural Index Update Insert Delete Backout Purge Expunge
***************************************************************************************************************
MON_LOG 1

Why it reports one UPDATE in statistics ?

@firebird-automations
Copy link
Collaborator Author

Commented by: @pavel-zotov

PS. Unfortunatelly, I could not show statistics in proper format like FIXED. Please see screenshot in attach.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

Attachment: trace-screen-in-FB_3.0-when-INSERT-into-T-select-from-MON$.zip [ 12570 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Component: Engine [ 10000 ]

summary: Regression in 3.0: trace reports UPDATES in statistics when doing INSERT into <some_table> select . . . from MON$xxx => Regression in 3.0: trace reports UPDATES in statistics when doing INSERT into <some_table>

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Cannot be tested

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants