Re: GetNewObjectId question
| От | Tom Lane |
|---|---|
| Тема | Re: GetNewObjectId question |
| Дата | |
| Msg-id | 1546622.1670717473@sss.pgh.pa.us обсуждение |
| Ответ на | GetNewObjectId question (Maciek Sakrejda <m.sakrejda@gmail.com>) |
| Ответы |
Re: GetNewObjectId question
Re: GetNewObjectId question |
| Список | pgsql-hackers |
Maciek Sakrejda <m.sakrejda@gmail.com> writes:
> While browsing through varsup.c, I noticed this comment on GetNewObjectId:
> * Hence, this routine should generally not be used directly. The only direct
> * callers should be GetNewOidWithIndex() and GetNewRelFileNumber() in
> * catalog/catalog.c.
> But AddRoleMems in user.c appears to also call the function directly:
> /* get an OID for the new row and insert it */
> objectId = GetNewObjectId();
Yeah, that looks like somebody didn't read the memo.
Want to submit a patch?
regards, tom lane
В списке pgsql-hackers по дате отправления: