Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 948720e

Browse files
committed
New mdtruncate() & smgrtruncate() funcs.
1 parent b41aa39 commit 948720e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/include/storage/smgr.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: smgr.h,v 1.5 1996/11/10 03:06:05 momjian Exp $
9+
* $Id: smgr.h,v 1.6 1996/11/27 07:33:42 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -38,6 +38,7 @@ extern int smgrflush(int16 which, Relation reln, BlockNumber blocknum,
3838
extern int smgrblindwrt(int16 which, char *dbname, char *relname, Oid dbid,
3939
Oid relid, BlockNumber blkno, char *buffer);
4040
extern int smgrnblocks(int16 which, Relation reln);
41+
extern int smgrtruncate(int16 which, Relation reln, int nblocks);
4142
extern int smgrcommit(void);
4243
extern int smgrabort(void);
4344
extern bool smgriswo(int16 smgrno);
@@ -59,6 +60,7 @@ extern int mdflush(Relation reln, BlockNumber blocknum, char *buffer);
5960
extern int mdblindwrt(char *dbstr, char *relstr, Oid dbid, Oid relid,
6061
BlockNumber blkno, char *buffer);
6162
extern int mdnblocks(Relation reln);
63+
extern int mdtruncate(Relation reln, int nblocks);
6264
extern int mdcommit(void);
6365
extern int mdabort(void);
6466

0 commit comments

Comments
 (0)