Search Postgresql Archives
atttypmod encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Catalog pg_attribute contains interesting type-specific information in attribute atttypmod. Can someone verify that these encodings are correct?
CHAR and VARCHAR: 4 + the declared length. Example: CHAR(5) -> 9 in atttypmod
NUMERIC(p,s): 4 + the long with p in the left-most 4 bytes and s in the right-most
[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]