truncate cleanup

Поиск
Список
Период
Сортировка
От Neil Conway
Тема truncate cleanup
Дата
Msg-id 1016062568.6678.465.camel@jiro
обсуждение исходный текст
Ответы Re: truncate cleanup  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: truncate cleanup  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
The attached patch cleans up the implementation of the TRUNCATE command;
in the current code, the authentication logic (check user, check the
relation we're operating on, etc) is done in tcop/utility.c, whereas the
actual TRUNCATE command in done in TruncateRelation() in
commands/createinh.c (which is really just a wrapper over
heap_truncate() in catalog/heap.c). This patch moves the authentication
logic into TruncateRelation(), as well as making some minor code
cleanups.

FWIW, I'm not really sure why TruncateRelation() is in
commands/createinh.c to begin with; if there is a preference, I can
remove TruncateRelation() altogether and move everything into
heap_truncate().

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Preferred method for submitting patch corrections?
Следующее
От: Ian Barwick
Дата:
Сообщение: Preferred method for submitting patch corrections?