pgsql/src backend/catalog/heap.c backend/comma ... - Mailing list pgsql-committers

From momjian@postgresql.org (Bruce Momjian - CVS)
Subject pgsql/src backend/catalog/heap.c backend/comma ...
Date
Msg-id 20020319025820.528044758F1@postgresql.org
Whole thread Raw
List pgsql-committers
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


pgsql-committers by date:

Previous
From: momjian@postgresql.org (Bruce Momjian - CVS)
Date:
Subject: pgsql/src/backend/utils/adt ri_triggers.c
Next
From: momjian@postgresql.org (Bruce Momjian - CVS)
Date:
Subject: pgsql/src/bin/psql help.c