diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-05-06 16:10:57 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-05-06 16:10:57 +0000 |
commit | 8325a8d69eca29573e5e11f341636a1afe664f20 (patch) | |
tree | 7e27531762dd781bf48f5816b44c30514a5ea3b6 /src/include/utils/inval.h | |
parent | eee6f9d5c2689660fe3e4586e4b144ea06f04202 (diff) | |
download | postgresql-8325a8d69eca29573e5e11f341636a1afe664f20.tar.gz postgresql-8325a8d69eca29573e5e11f341636a1afe664f20.zip |
Make ALTER COLUMN TYPE preserve clustered status for indexes it doesn't
modify. Also fix a passel of problems with ALTER TABLE CLUSTER ON:
failure to check that the index is safe to cluster on (or even belongs
to the indicated rel, or even exists), and failure to broadcast a relcache
flush event when changing an index's state.
Diffstat (limited to 'src/include/utils/inval.h')
-rw-r--r-- | src/include/utils/inval.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/inval.h b/src/include/utils/inval.h index e7052726f27..a2bad9cd06c 100644 --- a/src/include/utils/inval.h +++ b/src/include/utils/inval.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/inval.h,v 1.30 2004/02/10 01:55:26 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/inval.h,v 1.31 2004/05/06 16:10:57 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -32,6 +32,8 @@ extern void CacheInvalidateRelcache(Relation relation); extern void CacheInvalidateRelcacheByTuple(HeapTuple classTuple); +extern void CacheInvalidateRelcacheByRelid(Oid relid); + extern void CacheRegisterSyscacheCallback(int cacheid, CacheCallbackFunction func, Datum arg); |