mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
*
|
||||
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/ri_triggers.c,v 1.112 2009/01/07 13:44:36 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/ri_triggers.c,v 1.113 2009/06/11 14:49:04 momjian Exp $
|
||||
*
|
||||
* ----------
|
||||
*/
|
||||
@ -3620,7 +3620,7 @@ static SPIPlanPtr
|
||||
ri_FetchPreparedPlan(RI_QueryKey *key)
|
||||
{
|
||||
RI_QueryHashEntry *entry;
|
||||
SPIPlanPtr plan;
|
||||
SPIPlanPtr plan;
|
||||
|
||||
/*
|
||||
* On the first call initialize the hashtable
|
||||
@ -3638,11 +3638,11 @@ ri_FetchPreparedPlan(RI_QueryKey *key)
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
* Check whether the plan is still valid. If it isn't, we don't want
|
||||
* to simply rely on plancache.c to regenerate it; rather we should
|
||||
* start from scratch and rebuild the query text too. This is to cover
|
||||
* cases such as table/column renames. We depend on the plancache
|
||||
* machinery to detect possible invalidations, though.
|
||||
* Check whether the plan is still valid. If it isn't, we don't want to
|
||||
* simply rely on plancache.c to regenerate it; rather we should start
|
||||
* from scratch and rebuild the query text too. This is to cover cases
|
||||
* such as table/column renames. We depend on the plancache machinery to
|
||||
* detect possible invalidations, though.
|
||||
*
|
||||
* CAUTION: this check is only trustworthy if the caller has already
|
||||
* locked both FK and PK rels.
|
||||
@ -3652,8 +3652,8 @@ ri_FetchPreparedPlan(RI_QueryKey *key)
|
||||
return plan;
|
||||
|
||||
/*
|
||||
* Otherwise we might as well flush the cached plan now, to free a
|
||||
* little memory space before we make a new one.
|
||||
* Otherwise we might as well flush the cached plan now, to free a little
|
||||
* memory space before we make a new one.
|
||||
*/
|
||||
entry->plan = NULL;
|
||||
if (plan)
|
||||
@ -3682,8 +3682,8 @@ ri_HashPreparedPlan(RI_QueryKey *key, SPIPlanPtr plan)
|
||||
ri_InitHashTables();
|
||||
|
||||
/*
|
||||
* Add the new plan. We might be overwriting an entry previously
|
||||
* found invalid by ri_FetchPreparedPlan.
|
||||
* Add the new plan. We might be overwriting an entry previously found
|
||||
* invalid by ri_FetchPreparedPlan.
|
||||
*/
|
||||
entry = (RI_QueryHashEntry *) hash_search(ri_query_cache,
|
||||
(void *) key,
|
||||
|
Reference in New Issue
Block a user