-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Description
When using gstat -table <name> ..., only the first matching table is reported, even if there are multiple matching tables in the database.
create database 'schemaexp.fdb' user sysdba;
create schema SCHEMA1;
create schema SCHEMA2;
create table SCHEMA1.TABLE1 (id integer);
create table SCHEMA1.TABLE2 (id integer);
create table SCHEMA2.TABLE2 (id integer);
exit;Followed by
gstat -user sysdba -a -t TABLE2 schemaexp.fdb
Reports:
Gstat execution time Mon Oct 13 12:43:03 2025
Database header page information:
Flags 0
Generation 13
System Change Number 0
Page size 8192
ODS version 14.0
Oldest transaction 9
Oldest active 10
Oldest snapshot 10
Next transaction 10
Next attachment ID 12
Implementation HW=AMD/Intel/x64 little-endian OS=Windows CC=MSVC
Shadow count 0
Page buffers 0
Database dialect 3
Database GUID: {E0337DFD-A78A-4337-B39A-0973992CA582}
Creation date Oct 13, 2025 10:39:09
Attributes force write
Variable header data:
*END*
Analyzing database pages ...
TABLE2 (130)
Primary pointer page: 289, Index root page: 290
Pointer pages: 1, data page slots: 0
Data pages: 0, average fill: 0%
Primary pages: 0, secondary pages: 0, swept pages: 0
Empty pages: 0, full pages: 0
Fill distribution:
0 - 19% = 0
20 - 39% = 0
40 - 59% = 0
60 - 79% = 0
80 - 99% = 0
Gstat completion time Mon Oct 13 12:43:04 2025
It should report both occurrences of TABLE2, as the -schema option was not specified.
Compare:
gstat -user sysdba -a -t TABLE2 -sch SCHEMA1 schemaexp.fdb
and
gstat -user sysdba -a -t TABLE2 -sch SCHEMA2 schemaexp.fdb