Hi, I have managed to change the length of a varchar field to 100 using: update pg_attribute set atttypmod = 104 where attname = 'field_name' and attrelid = (select oid from pg_class where relname = 'table_name'); I was wondering if I can do something similar to change the size of a numeric field, e.g. from numeric(8,2) to numeric(10,2). I can't really see how the data in pg_attribute for this field relates to the field size. Does anyone know if this is possible & if so how? Thanks very much, Tamsin (PostgreSQL 7.0.2)
- [GENERAL] Enrico Comini
- [GENERAL] Winston Williams
- [GENERAL] turing2000
- Re: [GENERAL] Doug McNaught
- [GENERAL] Dmitry Chernikov
- [GENERAL] Adam Haberlach
- Re: [GENERAL] trying to back up a database Oliver Elphick
- Re: [GENERAL] trying to back up a databas... Adam Haberlach
- Re: [GENERAL] trying to back up a dat... Peter Eisentraut
- Re: [GENERAL] trying to back up a... Oliver Elphick
- [GENERAL] Tamsin
- [GENERAL] Eric Nicolas
- [GENERAL] akif noor
- Re: [GENERAL] Eric G. Miller
- [GENERAL] irdob12
- [GENERAL] Christian Marschalek
- [GENERAL] Daniel Francisco Sachet
- [GENERAL] Loïc Courtois
- Re: [GENERAL] Matthew Hixson
- [GENERAL] kapil c. tilwani
- [GENERAL] Re: Gregory Wood