mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Since pluggable storage has been introduced, those two routines have been replaced by table_open/close, with some compatibility macros still present to allow extensions to compile correctly with v12. Some code paths using the old routines still remained, so replace them. Based on the discussion done, the consensus reached is that it is better to remove those compatibility macros so as nothing new uses the old routines, so remove also the compatibility macros. Discussion: https://postgr.es/m/20191017014706.GF5605@paquier.xyz
29 lines
866 B
C
29 lines
866 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* table.h
|
|
* Generic routines for table related code.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/access/table.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef TABLE_H
|
|
#define TABLE_H
|
|
|
|
#include "nodes/primnodes.h"
|
|
#include "utils/relcache.h"
|
|
#include "storage/lockdefs.h"
|
|
|
|
|
|
extern Relation table_open(Oid relationId, LOCKMODE lockmode);
|
|
extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode);
|
|
extern Relation table_openrv_extended(const RangeVar *relation,
|
|
LOCKMODE lockmode, bool missing_ok);
|
|
extern void table_close(Relation relation, LOCKMODE lockmode);
|
|
|
|
#endif /* TABLE_H */
|