Tom Lane
e1107fc285
RI triggers would fail for datatypes using old-style equal function,
...
because cached fmgr info contained reference to a shorter-lived data
structure. Also guard against possibility that fmgr_info could fail,
leaving an incomplete entry present in the hash table.
2001-05-31 17:32:33 +00:00
Peter Eisentraut
465cf168eb
Fix remaining RI permission problems (cascaded update/delete, restrict,
...
set null/default).
2001-05-07 19:57:24 +00:00
Bruce Momjian
0686d49da0
Remove dashes in comments that don't need them, rewrap with pgindent.
2001-03-22 06:16:21 +00:00
Bruce Momjian
9e1552607a
pgindent run. Make it all clean.
2001-03-22 04:01:46 +00:00
Tom Lane
6da3b76a94
Add some notes about memory management of RI plans.
2001-02-15 21:57:43 +00:00
Tom Lane
04b31609b6
Add 'ONLY' to queries generated by RI triggers, so as to preserve pre-7.1
...
semantics of RI operations. Eventually we ought to look at making RI
work properly across inheritance trees, but not for 7.1 ...
2000-12-22 18:35:09 +00:00
Hiroshi Inoue
c4bc9a8505
keep relations open until they are no longer needed.
2000-11-21 04:01:09 +00:00
Tom Lane
a933ee38bb
Change SearchSysCache coding conventions so that a reference count is
...
maintained for each cache entry. A cache entry will not be freed until
the matching ReleaseSysCache call has been executed. This eliminates
worries about cache entries getting dropped while still in use. See
my posting to pg-hackers of even date for more info.
2000-11-16 22:30:52 +00:00
Peter Eisentraut
c0cba9efe7
When the RI triggers lock the PK table, temporarily switch the current user
...
id to the owner of the PK table, to avoid permission problems.
2000-09-25 22:34:20 +00:00
Bruce Momjian
a12a23f0d0
Remove unused include files. Do not touch /port or includes used by defines.
2000-05-30 00:49:57 +00:00
Tom Lane
18952f6744
Second round of fmgr changes: triggers are now invoked in new style,
...
CurrentTriggerData is history.
2000-05-29 01:59:17 +00:00
Bruce Momjian
52f77df613
Ye-old pgindent run. Same 4-space tabs.
2000-04-12 17:17:23 +00:00
Jan Wieck
f59daf80f7
Added complete MATCH <unspecified> support contributed by Don Baccus.
...
Jan
2000-02-07 17:50:38 +00:00
Jan Wieck
b7b6d4bf53
Changed "triggered data change violation" detection code
...
in trigger manager.
Jan
2000-01-06 20:47:01 +00:00
Jan Wieck
88016a564a
Fixed bug in targetlist expression replacement of
...
SET DEFAULT referential action triggers.
Jan
2000-01-06 16:30:43 +00:00
Jan Wieck
62c42a05a2
Added global variable to have RI triggers override
...
time qualification of HeapTupleSatisfiesSnapshot()
Jan
1999-12-10 12:34:15 +00:00
Jan Wieck
0882951b0c
Fixed concurrent visibility bug.
...
Jan
1999-12-08 20:41:22 +00:00
Jan Wieck
5ad4034a4c
Again updated INSIDE TODO
...
Jan
1999-12-07 00:13:41 +00:00
Jan Wieck
70dd9e81af
Added SET DEFAULT action for ON DELETE/UPDATE
...
Jan
1999-12-07 00:11:35 +00:00
Jan Wieck
3327730bbd
Corrected TODO in source
...
Jan
1999-12-06 19:52:36 +00:00
Jan Wieck
2eb53e684c
Added ON DELETE/UPDATE SET NULL
...
Jan
1999-12-06 19:50:49 +00:00
Jan Wieck
b8ef7e7f82
Completed FOREIGN KEY syntax.
...
Added functionality for automatic trigger creation during CREATE TABLE.
Added ON DELETE RESTRICT and some others.
Jan
1999-12-06 18:02:47 +00:00
Bruce Momjian
fc955b14ea
Add system indexes to match all caches.
...
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.
1999-11-22 17:56:41 +00:00
Jan Wieck
34eb4f0a32
First real FOREIGN KEY constraint trigger functionality.
...
Implemented now:
FOREIGN KEY ... REFERENCES ... MATCH FULL
FOREIGN KEY ... MATCH FULL ... ON DELETE CASCADE
Jan
1999-10-08 12:00:08 +00:00
Jan Wieck
ccecf1fa46
Added utils/adt/ri_triggers with empty shells for the
...
FOREIGN KEY triggers.
Added pg_proc entries for all the new functions.
Jan
1999-09-30 14:54:24 +00:00