pgsql/src backend/catalog/heap.c backend/comma ...

Поиск
Список
Период
Сортировка
Искать

pgsql/src backend/catalog/heap.c backend/comma ...

От:
momjian@postgresql.org (Bruce Momjian - CVS)
Дата:
CVSROOT:	/cvsroot
Module name:	pgsql
Changes by:	momjian@postgresql.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

FAQ