Skip to content

Feature #1095 - LOCAL TEMPORARY TABLE#8860

Merged
asfernandes merged 5 commits intomasterfrom
work/created-local-temp-table
Jan 31, 2026
Merged

Feature #1095 - LOCAL TEMPORARY TABLE#8860
asfernandes merged 5 commits intomasterfrom
work/created-local-temp-table

Conversation

@asfernandes
Copy link
Member

No description provided.

@sim1984
Copy link
Contributor

sim1984 commented Jan 30, 2026

SQL> create local temporary table t (id int, name varchar(10)) on commit preserve rows;
SQL> set stat on;
SQL> set explain on;
SQL> set per_tab on;
SQL> insert into t(id, name) values (1, '1111');
Current memory = 19527200
Delta memory = 19760
Max memory = 19570128
Elapsed time = 0.001 sec
Buffers = 2048
Reads = 0
Writes = 0
Fetches = 15
Per table statistics:
--------------------------------+---------+---------+---------+---------+---------+---------+---------+---------+
 Table name                     | Natural | Index   | Insert  | Update  | Delete  | Backout | Purge   | Expunge |
--------------------------------+---------+---------+---------+---------+---------+---------+---------+---------+
64513                           |         |         |        1|         |         |         |         |         |
--------------------------------+---------+---------+---------+---------+---------+---------+---------+---------+
SQL> select * from t;

Select Expression
    -> Table "PUBLIC"."T" Full Scan

          ID NAME
============ ==========
           1 1111

Current memory = 20914800
Delta memory = 25936
Max memory = 20922176
Elapsed time = 0.000 sec
Buffers = 2048
Reads = 0
Writes = 0
Fetches = 12
Per table statistics:
--------------------------------+---------+---------+---------+---------+---------+---------+---------+---------+
 Table name                     | Natural | Index   | Insert  | Update  | Delete  | Backout | Purge   | Expunge |
--------------------------------+---------+---------+---------+---------+---------+---------+---------+---------+
64513                           |        1|         |         |         |         |         |         |         |
--------------------------------+---------+---------+---------+---------+---------+---------+---------+---------+

The internal number is displayed in table statistics instead of the name. Is this how it should be?

@asfernandes asfernandes linked an issue Jan 31, 2026 that may be closed by this pull request
@asfernandes asfernandes merged commit 27ae3df into master Jan 31, 2026
36 checks passed
@asfernandes asfernandes deleted the work/created-local-temp-table branch January 31, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local temporary tables [CORE720]

3 participants