mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Cosmetic fixes from Neil Conway.
This commit is contained in:
parent
c0edc53a36
commit
c91b8bc537
@ -6,7 +6,7 @@
|
|||||||
* Copyright (c) 2002, PostgreSQL Global Development Group
|
* Copyright (c) 2002, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/prepare.c,v 1.2 2002/09/04 20:31:15 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/prepare.c,v 1.3 2002/09/14 19:59:20 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -248,7 +248,7 @@ StoreQuery(const char *stmt_name, List *query_list, List *plan_list,
|
|||||||
elog(ERROR, "Prepared statement with name \"%s\" already exists",
|
elog(ERROR, "Prepared statement with name \"%s\" already exists",
|
||||||
stmt_name);
|
stmt_name);
|
||||||
|
|
||||||
/* Okay. Make a permanent memory context for the hashtable entry */
|
/* Make a permanent memory context for the hashtable entry */
|
||||||
entrycxt = AllocSetContextCreate(TopMemoryContext,
|
entrycxt = AllocSetContextCreate(TopMemoryContext,
|
||||||
stmt_name,
|
stmt_name,
|
||||||
1024,
|
1024,
|
||||||
@ -399,8 +399,8 @@ DeallocateQuery(DeallocateStmt *stmt)
|
|||||||
stmt->name);
|
stmt->name);
|
||||||
|
|
||||||
/* Flush the context holding the subsidiary data */
|
/* Flush the context holding the subsidiary data */
|
||||||
if (MemoryContextIsValid(entry->context))
|
Assert(MemoryContextIsValid(entry->context));
|
||||||
MemoryContextDelete(entry->context);
|
MemoryContextDelete(entry->context);
|
||||||
|
|
||||||
/* Now we can remove the hash table entry */
|
/* Now we can remove the hash table entry */
|
||||||
hash_search(prepared_queries, key, HASH_REMOVE, NULL);
|
hash_search(prepared_queries, key, HASH_REMOVE, NULL);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.132 2002/09/04 20:31:25 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.133 2002/09/14 19:59:20 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -316,7 +316,7 @@ BufferAlloc(Relation reln,
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* I couldn't understand the following old comment. If there's
|
* I couldn't understand the following old comment. If there's
|
||||||
* no IO for the buffer and the buffer is BROKEN,it should be
|
* no IO for the buffer and the buffer is BROKEN, it should be
|
||||||
* read again. So start a new buffer IO here.
|
* read again. So start a new buffer IO here.
|
||||||
*
|
*
|
||||||
* wierd race condition:
|
* wierd race condition:
|
||||||
|
Loading…
Reference in New Issue
Block a user