Re: zeros in oidvector type
От | Bruce Momjian |
---|---|
Тема | Re: zeros in oidvector type |
Дата | |
Msg-id | 200001111136.GAA04436@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: zeros in oidvector type (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: zeros in oidvector type
|
Список | pgsql-hackers |
> Bruce Momjian <pgman@candle.pha.pa.us> writes: > > Tom, why are the non-trailing zeros in the *vector types as initialized > > in the catalog/*.h files. > > > You mentioned you knew what they meant. > > In pg_proc's proargtypes entries, a zero in a valid argument position > (ie, one of the first 'pronargs' positions) can mean either "any type > is acceptable" or "opaque argument type" (not sure if those are quite > the same thing or not!) or "C string input to a datatype's typinput > conversion routine" (definitely not the same thing). > > The entries in pg_proc.h call out these zeroes explicitly even when > they are trailing arguments --- generally, the number of values shown > in the proargtypes column should equal pronargs. The reason I ask is that there are some parts of the code that try to find the number of args by looking for the _first_ non-zero entry in the list. I changed those to look for the _last_ non-zero entry, but it sounds like that is still wrong. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: