summaryrefslogtreecommitdiff
path: root/src/backend/rewrite/rewriteRemove.c
Commit message (Collapse)AuthorAgeFilesLines
* Use a private memory context to store rule information in each relcacheTom Lane2000-06-301-39/+34
| | | | | | | | | | | | | | entry that has rules. This allows us to release the rule parsetrees on relcache flush without needing a working freeObject() routine. Formerly, the rule trees were leaked permanently at relcache flush. Also, clean up handling of rule creation and deletion --- there was not sufficient locking of the relation being modified, and there was no reliable notification of other backends that a relcache reload was needed. Also, clean up relcache.c code so that scans of system tables needed to load a relcache entry are done in the caller's memory context, not in CacheMemoryContext. This prevents any un-pfreed memory from those scans from becoming a permanent memory leak.
* First round of changes for new fmgr interface. fmgr itself and theTom Lane2000-05-281-1/+2
| | | | | | | key call sites are changed, but most called functions are still oldstyle. An exception is that the PL managers are updated (so, for example, NULL handling now behaves as expected in plperl and plpgsql functions). NOTE initdb is forced due to added column in pg_proc.
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-121-8/+9
|
* Add:Bruce Momjian2000-01-261-2/+3
| | | | | | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
* Some changes to prepare for LONG attributes.Jan Wieck1999-12-161-3/+3
| | | | Jan
* Add system indexes to match all caches.Bruce Momjian1999-11-221-3/+3
| | | | | | | Make all system indexes unique. Make all cache loads use system indexes. Rename *rel to *relid in inheritance tables. Rename cache names to be clearer.
* Changed pg_rewrite attributes ev_qual and ev_action to the newJan Wieck1999-11-181-1/+2
| | | | | | compressed lztext data type. Jan
* 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/+18
| | | | | | | | | | | | | | | | | | | 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-6/+6
| | | | | | | | | | | | | | | | | 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-4/+1
|
* Final cleanup.Bruce Momjian1999-07-161-3/+3
|
* Update #include cleanupsBruce Momjian1999-07-161-4/+4
|
* Remove unused #includes in *.c files.Bruce Momjian1999-07-151-3/+1
|
* pgindent run over code.Bruce Momjian1999-05-251-2/+2
|
* Change error messages to oids come out as %u and not %d. Change has noBruce Momjian1999-05-101-3/+3
| | | | real affect now.
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-2/+2
|
* Initial MVCC code.Vadim B. Mikheev1998-12-151-3/+3
| | | | New code for locking buffer' context.
* Add support for the CASE statement in the rewrite handling.Thomas G. Lockhart1998-12-141-6/+8
| | | | | | Allows (at least some) rules and views. Still some trouble (crashes) with target CASE columns spanning tables, but lots now works.
* New HeapTuple structure/interface.Vadim B. Mikheev1998-11-271-4/+4
|
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-011-9/+10
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-2/+2
|
* heap_fetch requires buffer pointer, must be released; heap_getnextBruce Momjian1998-08-191-39/+24
| | | | | | | | | | | | | 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-3/+3
|
* Re-apply Darren's char2-16 removal code.Bruce Momjian1998-04-261-7/+6
|
* Back out char2-char16 removal. Add later.Bruce Momjian1998-04-071-6/+7
|
* The following uuencoded, gzip'd file will ...Bruce Momjian1998-03-301-7/+6
| | | | | | | | | | | 1. Remove the char2, char4, char8 and char16 types from postgresql 2. Change references of char16 to name in the regression tests. 3. Rename the char16.sql regression test to name.sql. 4. Modify the regression test scripts and outputs to match up. Might require new regression.{SYSTEM} files... Darren King
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-261-2/+2
|
* Inline fastgetattr and others so data access does not use functionBruce Momjian1998-01-311-3/+1
| | | | calls.
* Goodbye ABORT. Hello ERROR for all errors.Bruce Momjian1998-01-071-5/+5
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-051-5/+5
|
* Remove tqual.h includes not needed.Bruce Momjian1997-11-241-2/+1
|
* Remove all time travel stuff. Small parser cleanup.Bruce Momjian1997-11-201-3/+3
|
* heapattr functions now return a Datum, not char *.Bruce Momjian1997-09-121-6/+6
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-081-17/+17
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-127/+130
|
* Clean up Makefile, add #postgres.h as requiredMarc G. Fournier1996-11-031-1/+4
|
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-091-0/+181