Tom Lane
5999e78fc4
Another round of cleanups for dynahash.c (maybe it's finally clean of
...
portability issues). Caller-visible data structures are now allocated
on MAXALIGN boundaries, allowing safe use of datatypes wider than 'long'.
Rejigger hash_create API so that caller specifies size of key and
total size of entry, not size of key and size of rest of entry.
This simplifies life considerably since each number is just a sizeof(),
and padding issues etc. are taken care of automatically.
24 years ago
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.
25 years ago
Peter Eisentraut
465cf168eb
Fix remaining RI permission problems (cascaded update/delete, restrict,
...
set null/default).
25 years ago
Bruce Momjian
0686d49da0
Remove dashes in comments that don't need them, rewrap with pgindent.
25 years ago
Bruce Momjian
9e1552607a
pgindent run. Make it all clean.
25 years ago
Tom Lane
6da3b76a94
Add some notes about memory management of RI plans.
25 years ago
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 ...
25 years ago
Hiroshi Inoue
c4bc9a8505
keep relations open until they are no longer needed.
25 years ago
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.
25 years ago
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.
25 years ago
Bruce Momjian
a12a23f0d0
Remove unused include files. Do not touch /port or includes used by defines.
26 years ago
Tom Lane
18952f6744
Second round of fmgr changes: triggers are now invoked in new style,
...
CurrentTriggerData is history.
26 years ago
Bruce Momjian
52f77df613
Ye-old pgindent run. Same 4-space tabs.
26 years ago
Jan Wieck
f59daf80f7
Added complete MATCH <unspecified> support contributed by Don Baccus.
...
Jan
26 years ago
Jan Wieck
b7b6d4bf53
Changed "triggered data change violation" detection code
...
in trigger manager.
Jan
26 years ago
Jan Wieck
88016a564a
Fixed bug in targetlist expression replacement of
...
SET DEFAULT referential action triggers.
Jan
26 years ago
Jan Wieck
62c42a05a2
Added global variable to have RI triggers override
...
time qualification of HeapTupleSatisfiesSnapshot()
Jan
26 years ago
Jan Wieck
0882951b0c
Fixed concurrent visibility bug.
...
Jan
26 years ago
Jan Wieck
5ad4034a4c
Again updated INSIDE TODO
...
Jan
26 years ago
Jan Wieck
70dd9e81af
Added SET DEFAULT action for ON DELETE/UPDATE
...
Jan
26 years ago
Jan Wieck
3327730bbd
Corrected TODO in source
...
Jan
26 years ago
Jan Wieck
2eb53e684c
Added ON DELETE/UPDATE SET NULL
...
Jan
26 years ago
Jan Wieck
b8ef7e7f82
Completed FOREIGN KEY syntax.
...
Added functionality for automatic trigger creation during CREATE TABLE.
Added ON DELETE RESTRICT and some others.
Jan
26 years ago
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.
26 years ago
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
26 years ago
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
26 years ago