Name type vs. char *
От | Bruce Momjian |
---|---|
Тема | Name type vs. char * |
Дата | |
Msg-id | 199807200448.AAA17784@candle.pha.pa.us обсуждение исходный текст |
Ответы |
Re: [HACKERS] Name type vs. char *
|
Список | pgsql-hackers |
We currently use Name sometimes, and char* other times to store relation, attribute, type, and view names. One thing Mariposa did was to make that more consistent, so you passed around Name(NameData pointers) instead of the more generic char *. However, the Name fields behave like char*, but are clearer. typedef struct nameData { char data[NAMEDATALEN]; } NameData; typedef NameData *Name; Do people see value in making this switch? Would take me a few hours to make the change. -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)
В списке pgsql-hackers по дате отправления: