Hi Ben,

The column names are stored as attributes of the table which follow the
following pattern "FIELD_(\d+)_NAME", where the group is given as a
zero-index column number.  (In ViTables, access properties for a table and
then look at the System Attributes tab.)

You might be able to just change the value of this attribute to the new
name.
I don't think that the column name is stored anywhere else, but I may be
wrong.

I would try it out on some test data first.  Let me know if this works.
Be Well
Anthony

On Wed, Jun 29, 2011 at 9:25 PM, Ben Elliston <b...@air.net.au> wrote:

> Is it possible to rename a column in an existing table?  I've dug
> through the documentation and not been able to find anything.
>
> 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.
>
> Thanks,
> Ben
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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

Reply via email to