Re: datatype preceded by underscore creates array
| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: datatype preceded by underscore creates array |
| Дата | |
| Msg-id | 20061016193942.GF23302@svana.org обсуждение исходный текст |
| Ответ на | datatype preceded by underscore creates array ("George Pavlov" <gpavlov@mynewplace.com>) |
| Ответы |
Re: datatype preceded by underscore creates array
|
| Список | pgsql-general |
On Mon, Oct 16, 2006 at 12:33:35PM -0700, George Pavlov wrote: > Is there any special meaning to preceding a datatype (or at least some > datatypes) in a table or function definition by underscore that is a > synonym for an array? I can't see it documented anywhere. Below are some > examples. The other question is why "_int4" parses to int[], but "_int" > does not, etc. This is on PostgreSQL 8.1.3 Linux. Yep, the array type is represented internally by prefixings an underscore. It's mentioned somewhere in the docs, but you may as well ignore it. "int4" is the actual type name, "integer" is the sql standard name. PostgreSQL displays SQL compliant output where possible. _int simply doesn't exist, and oddities like (3) after the char does have array support at all... Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.
Вложения
В списке pgsql-general по дате отправления: