Hi to everybody,
has somebody an idea how get the precision and scale part of a decimal/numeric datatype?
What I found out is: Both are encoded in the column atttypmod in the table pg_attribute. The column contains a value e.g. 983046 what stands for a decimal(15,2) (this I know accidantly).
Knows sombody the algorithm how to extract the precision and scale from such a value?
Many thanks in advance
Hans
has somebody an idea how get the precision and scale part of a decimal/numeric datatype?
What I found out is: Both are encoded in the column atttypmod in the table pg_attribute. The column contains a value e.g. 983046 what stands for a decimal(15,2) (this I know accidantly).
Knows sombody the algorithm how to extract the precision and scale from such a value?
Many thanks in advance
Hans