mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Changed TOAST relations to have relkind RELKIND_TOASTVALUE.
Special handling of TOAST relations during VACUUM. TOAST relations are vacuumed while the lock on the master table is still active. The ANALYZE flag doesn't propagate to their vacuuming because the toaster access routines allways use index access ignoring stats, so why compute them at all. Protection of TOAST relations against normal INSERT/UPDATE/DELETE while offering SELECT for debugging purposes. Jan
This commit is contained in:
@ -27,7 +27,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.120 2000/07/05 13:22:25 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.121 2000/07/05 16:17:43 wieck Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -720,6 +720,10 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate)
|
||||
elog(ERROR, "You can't change sequence relation %s",
|
||||
RelationGetRelationName(resultRelationDesc));
|
||||
|
||||
if (resultRelationDesc->rd_rel->relkind == RELKIND_TOASTVALUE)
|
||||
elog(ERROR, "You can't change toast relation %s",
|
||||
RelationGetRelationName(resultRelationDesc));
|
||||
|
||||
resultRelationInfo = makeNode(RelationInfo);
|
||||
resultRelationInfo->ri_RangeTableIndex = resultRelationIndex;
|
||||
resultRelationInfo->ri_RelationDesc = resultRelationDesc;
|
||||
|
Reference in New Issue
Block a user