A Thursday 30 June 2011 04:25:38 Ben Elliston escrigué: > Is it possible to rename a column in an existing table? I've dug > through the documentation and not been able to find anything.
No, that's not implemented in PyTables. The name of the column exists in two places: one in the HDF5 compound type definition, and the other, as Anthony said, in the "FIELD_(\d+)_NAME" attribute in the table, but we never implemented that capability. > I'd rather not have to copy the data from the existing table into a > new one, as this will require compacting -- and the database is huge. Unfortunately, that's the only solution inside PyTables. Maybe h5py has this capability (I don't really know, you should have a look yourself), so you might want to use it to do the change. -- Francesc Alted ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users