mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Phase 1 of fix for 'SMgrRelation hashtable corrupted' problem. This
is the minimum required fix. I want to look next at taking advantage of it by simplifying the message semantics in the shared inval message queue, but that part can be held over for 8.1 if it turns out too ugly.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteDefine.c,v 1.99 2004/12/31 22:00:45 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteDefine.c,v 1.100 2005/01/10 20:02:21 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -484,10 +484,8 @@ DefineQueryRewrite(RuleStmt *stmt)
|
||||
*/
|
||||
if (RelisBecomingView)
|
||||
{
|
||||
if (event_relation->rd_smgr == NULL)
|
||||
event_relation->rd_smgr = smgropen(event_relation->rd_node);
|
||||
RelationOpenSmgr(event_relation);
|
||||
smgrscheduleunlink(event_relation->rd_smgr, event_relation->rd_istemp);
|
||||
event_relation->rd_smgr = NULL;
|
||||
}
|
||||
|
||||
/* Close rel, but keep lock till commit... */
|
||||
|
Reference in New Issue
Block a user