| From: | momjian(at)postgresql(dot)org (Bruce Momjian - CVS) |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql/src backend/catalog/heap.c backend/comma ... |
| Date: | 2002-03-19 02:58:20 |
| Message-ID: | [email protected] |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
CVSROOT: /cvsroot
Module name: pgsql
Changes by: momjian(at)postgresql(dot)org 02/03/18 21:58:20
Modified files:
src/backend/catalog: heap.c
src/backend/commands: creatinh.c
src/backend/tcop: utility.c
src/include/catalog: heap.h
src/include/commands: creatinh.h
Log message:
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.
Neil Conway
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian - CVS | 2002-03-19 03:01:03 | pgsql/src/bin/psql help.c |
| Previous Message | Bruce Momjian - CVS | 2002-03-19 02:57:17 | pgsql/src/backend/utils/adt ri_triggers.c |