mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-07-31 17:03:24 +02:00
systable_endscan_ordered that have API similar to systable_beginscan etc (in particular, the passed-in scankeys have heap not index attnums), but guarantee ordered output, unlike the existing functions. For the moment these are just very thin wrappers around index_beginscan/index_getnext/etc. Someday they might need to get smarter; but for now this is just a code refactoring exercise to reduce the number of direct callers of index_getnext, in preparation for changing that function's API. In passing, remove index_getnext_indexitem, which has been dead code for quite some time, and will have even less use than that in the presence of run-time-lossy indexes.
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* catalog.h
|
|
* prototypes for functions in backend/catalog/catalog.c
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/catalog/catalog.h,v 1.39 2008/04/12 23:14:21 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef CATALOG_H
|
|
#define CATALOG_H
|
|
|
|
#include "utils/rel.h"
|
|
|
|
|
|
extern char *relpath(RelFileNode rnode);
|
|
extern char *GetDatabasePath(Oid dbNode, Oid spcNode);
|
|
|
|
extern bool IsSystemRelation(Relation relation);
|
|
extern bool IsToastRelation(Relation relation);
|
|
|
|
extern bool IsSystemClass(Form_pg_class reltuple);
|
|
extern bool IsToastClass(Form_pg_class reltuple);
|
|
|
|
extern bool IsSystemNamespace(Oid namespaceId);
|
|
extern bool IsToastNamespace(Oid namespaceId);
|
|
|
|
extern bool IsReservedName(const char *name);
|
|
|
|
extern bool IsSharedRelation(Oid relationId);
|
|
|
|
extern Oid GetNewOid(Relation relation);
|
|
extern Oid GetNewOidWithIndex(Relation relation, Oid indexId,
|
|
AttrNumber oidcolumn);
|
|
extern Oid GetNewRelFileNode(Oid reltablespace, bool relisshared,
|
|
Relation pg_class);
|
|
|
|
#endif /* CATALOG_H */
|