[Phpmyadmin-devel] Table statistics for a newly created table?

Marc Delisle marc at infomarc.info
Tue Jul 13 22:46:32 CEST 2010

Ninad Pundalik a écrit :
> Hi,
> For the last few hours, I've been working on appending a newly created
> table's details to the list of tables we see on db_structure.php.  I
> have been able to generate most of the HTML necessary for this in
> tbl_create.php, but I have not understood how the table size and
> overhead are calculated.  Even though it's a new table and has zero
> rows, it would occupy some space, and it should not have any overhead.
> I tried understanding the code in db_structure.php that generates the
> HTML, but I'm
> slightly lost.  Pointers anyone?

It calls libraries/db_info.inc.php which retrieves information about the
tables to be displayed on this page.

> I've pushed my changes in commit 10a9e69, so everyone can see the
> stage I am at.  At the moment, I'm filling in a dummy value for the
> size column, and leaving overhead as '-'.

Marc Delisle

More information about the Developers mailing list