| От | Tom Lane |
|---|---|
| Тема | Re: pseudo-type record arguments for PL-functions |
| Дата | |
| Msg-id | 18522.1146972915@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pseudo-type record arguments for PL-functions (James William Pye <pgsql@jwp.name>) |
| Список | pgsql-hackers |
James William Pye <pgsql@jwp.name> writes:
> On Sun, May 07, 2006 at 12:16:16AM +0200, Thomas Hallgren wrote:
>> Why are there two ways of representing some of the array types? I mean,
>> why is there an _int4 when you could just as well write int4[]? I'm
>> probably missing the point altogether.
> FWICT, Prefixing a '_' is the convention used to make the array type's typname
> unique. Being able to reference array types as _type is a "side effect".
> (array types being actual rows in pg_type)
There used to be some contexts where you *had* to write _foo instead of
foo[] because the grammar only allowed simple names and not the full
TypeName production. I think we've fixed them all, but very likely
there are places in contrib still following the old convention.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера