mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Rearrange fmgr.c and relcache so that it's possible to keep FmgrInfo
lookup info in the relcache for index access method support functions. This makes a huge difference for dynamically loaded support functions, and should save a few cycles even for built-in ones. Also tweak dfmgr.c so that load_external_function is called only once, not twice, when doing fmgr_info for a dynamically loaded function. All per performance gripe from Teodor Sigaev, 5-Oct-01.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: relcache.h,v 1.25 2001/06/29 21:08:25 tgl Exp $
|
||||
* $Id: relcache.h,v 1.26 2001/10/06 23:21:44 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -33,6 +33,8 @@ extern void RelationClose(Relation relation);
|
||||
*/
|
||||
extern List *RelationGetIndexList(Relation relation);
|
||||
|
||||
extern void RelationInitIndexAccessInfo(Relation relation);
|
||||
|
||||
/*
|
||||
* Routines for backend startup
|
||||
*/
|
||||
@@ -61,6 +63,7 @@ extern void RelationPurgeLocalRelation(bool xactComitted);
|
||||
extern void RelationCacheAbort(void);
|
||||
|
||||
|
||||
/* XLOG support */
|
||||
extern void CreateDummyCaches(void);
|
||||
extern void DestroyDummyCaches(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user