summaryrefslogtreecommitdiff
path: root/src/backend/commands/remove.c
Commit message (Collapse)AuthorAgeFilesLines
* New NameStr macro to convert Name to Str. No need for var.data anymore.Bruce Momjian1999-11-071-2/+2
| | | | | | Fewer calls to nameout. Better use of RelationGetRelationName.
* Hello.Bruce Momjian1999-10-261-3/+34
| | | | | | | | | | | | | | | | | | | The following patch extends the COMMENT ON functionality to the rest of the database objects beyond just tables, columns, and views. The grammer of the COMMENT ON statement now looks like: COMMENT ON [ [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ] <objname> | COLUMN <relation>.<attribute> | AGGREGATE <aggname> <aggtype> | FUNCTION <funcname> (arg1, arg2, ...) | OPERATOR <op> (leftoperand_typ rightoperand_typ) | TRIGGER <triggername> ON relname> Mike Mascari (mascarim@yahoo.com)
* Mega-commit to make heap_open/heap_openr/heap_close take anTom Lane1999-09-181-26/+26
| | | | | | | | | | | | | | | | | additional argument specifying the kind of lock to acquire/release (or 'NoLock' to do no lock processing). Ensure that all relations are locked with some appropriate lock level before being examined --- this ensures that relevant shared-inval messages have been processed and should prevent problems caused by concurrent VACUUM. Fix several bugs having to do with mismatched increment/decrement of relation ref count and mismatched heap_open/close (which amounts to the same thing). A bogus ref count on a relation doesn't matter much *unless* a SI Inval message happens to arrive at the wrong time, which is probably why we got away with this sloppiness for so long. Repair missing grab of AccessExclusiveLock in DROP TABLE, ALTER/RENAME TABLE, etc, as noted by Hiroshi. Recommend 'make clean all' after pulling this update; I modified the Relation struct layout slightly. Will post further discussion to pghackers list shortly.
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-171-6/+1
|
* Final cleanup.Bruce Momjian1999-07-161-1/+2
|
* Remove unused #includes in *.c files.Bruce Momjian1999-07-151-7/+1
|
* pgindent run over code.Bruce Momjian1999-05-251-3/+3
|
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-4/+4
|
* Initial MVCC code.Vadim B. Mikheev1998-12-151-7/+7
| | | | New code for locking buffer' context.
* New HeapTuple structure/interface.Vadim B. Mikheev1998-11-271-11/+11
|
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-25/+25
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-2/+2
|
* heap_fetch requires buffer pointer, must be released; heap_getnextBruce Momjian1998-08-191-159/+76
| | | | | | | | | | | | | no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
* Use Snapshot in heap access methods.Vadim B. Mikheev1998-07-271-9/+9
|
* Remove un-needed braces around single statements.Bruce Momjian1998-06-151-7/+1
|
* Change parameters to func_error().Thomas G. Lockhart1998-05-091-3/+3
|
* This patch...Bruce Momjian1998-04-271-28/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Removes the unnecessary "#define AbcRegProcedure 123"'s from pg_proc.h. 2. Changes those #defines to use the names already defined in fmgr.h. 3. Forces the make of fmgr.h in backend/Makefile instead of having it made as a dependency in access/common/Makefile *hack*hack*hack* 4. Rearranged the #includes to a less helter-skelter arrangement, also changing <file.h> to "file.h" to signify a non-system header. 5. Removed "pg_proc.h" from files where its only purpose was for the #defines removed in item #1. 6. Added "fmgr.h" to each file changed for completeness sake. Turns out that #6 was not necessary for some files because fmgr.h was being included in a roundabout way SIX levels deep by the first include. "access/genam.h" ->"access/relscan.h" ->"utils/rel.h" ->"access/strat.h" ->"access/skey.h" ->"fmgr.h" So adding fmgr.h really didn't add anything to the compile, hopefully just made it clearer to the programmer. S Darren.
* Goodbye register keyword. Compiler knows better.Bruce Momjian1998-02-111-2/+2
|
* Thank god for searchable mail archives.PostgreSQL Daemon1998-01-151-4/+5
| | | | | | | | | Patch by: wieck@sapserv.debis.de (Jan Wieck) One of the design rules of PostgreSQL is extensibility. And to follow this rule means (at least for me) that there should not only be a builtin PL. Instead I would prefer a defined interface for PL implemetations.
* Change some ABORTS to ERROR. Add line number when COPY Failure.Bruce Momjian1998-01-051-18/+18
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-051-18/+18
|
* Rename heap_destroyr to heap_destroy, heap_destroy to heap_destroy_with_catalog.Bruce Momjian1997-11-281-2/+2
|
* Break parser functions into smaller files, group together.Bruce Momjian1997-11-251-2/+3
|
* Remove all time travel stuff. Small parser cleanup.Bruce Momjian1997-11-201-9/+9
|
* Inline memset() as MemSet().Bruce Momjian1997-09-181-2/+2
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-081-2/+2
|
* Add typdefs to pgindent run.Bruce Momjian1997-09-081-2/+2
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-081-48/+48
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-379/+417
|
* Now that names are null terminated, no need to do all that NAMEDATALEN stuff.Bruce Momjian1997-08-181-3/+3
|
* cc1: warnings being treated as errorsVadim B. Mikheev1997-06-031-2/+1
| | | | | | | remove.c: In function `RemoveAggregate': remove.c:413: warning: unused variable `typename' -> got rid of it.
* From: Darren King <aixssd!darrenk@abs.net>Marc G. Fournier1997-05-221-16/+67
| | | | | | | | Subject: [PATCHES] DROP AGGREGATE patch/fix. Here's a patch that fixes the DROP AGGREGATE command to delete the desired aggregate for a specific type.
* This patch changes quite a few instances of references of Oid'sBruce Momjian1996-11-301-3/+3
| | | | | | | | | | | | as ints and longs. Touches on quite a few function args as well. Most other files look ok as far as Oids go...still checking though... Since Oids are type'd as unsigned ints, they should prolly be used with the %ud format string in elog and sprintf messages. Not sure what kind of strangeness that could produce. Darren King
* Clean it up so that it compilesMarc G. Fournier1996-11-061-20/+21
|
* Some compile failure fixes from Keith Parks <emkxp01@mtcc.demon.co.uk>Marc G. Fournier1996-11-061-1/+3
|
* Another first pass at cleaning up the #includesMarc G. Fournier1996-11-031-9/+3
|
* Major code cleanups from D'arcy (-Wall -Werror)Marc G. Fournier1996-10-231-2/+2
|
* From: Dan McGuirk <mcguirk@indirect.com>Marc G. Fournier1996-08-191-3/+3
| | | | fixed the spelling of 'nonexistent' in a few places...
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-091-0/+435