Search Postgresql Archives

Increasing the length of a varchar domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need to increase the length of one of my domains from 16 -> 20 characters.
How wise/unwise would it be for me to issue an

UPDATE pg_type SET typtypmod = '<newlength + 4>' WHERE typname = '<domain name>';

command to achieve this. I'd prefer not to dump/reload the database. I
remember seeing a thread on this a few months back, but can't seem to find
it anymore.

PG version 7.4.2 (I know, needs updating...)

Any advice?

  - Rich Doughty

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux