6 ms·
They're very limited compared to what you'd get in a real programming language. The fact that the language needs to define types for so many things is actually
by lmm 14y ago
They're very limited compared to what you'd get in a real programming language. The fact that the language needs to define types for so many things is actually a demonstration of this - the reason postgres has built-in types for things like IP addresses or line segments is because it's too hard for users to implement such things themselves and very little notion of library code.
- anthonyb 14y agoAgain, you haven't used Postgres very much if you think that. IP addresses are in there because they are generally useful, not because they're hard to implement. Go have a look at the complex number implementation here: http://www.postgresql.org/docs/9.1/static/xtypes.html http://www.postgresql.org/docs/9.1/static/xtypes.html then come back and tell me that Postgres is "not a real programming language" (whatever that means these days).