Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit42ea77d

Browse files
daniel-95Daniel Shelepanov
and
Daniel Shelepanov
authored
[PBKP-531] hotfix (#33)
[PBKP-531] hotfixPGPROEE11 now supports ptrack for CFS---------Co-authored-by: Daniel Shelepanov <d.shelepanov@postgrespro.ru>
1 parenteab35bc commit42ea77d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

‎engine.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,25 @@ is_cfm_file_path(const char *filepath) {
117117
off_t
118118
get_cfs_relation_file_decompressed_size(RelFileNodeBackendrnode,constchar*fullpath,ForkNumberforknum) {
119119
Filefd;
120-
intcompressor;
121120
off_tsize;
122121

122+
#ifPG_VERSION_NUM >=120000
123+
intcompressor;
123124
compressor=md_get_compressor_internal(nodeOf(rnode),rnode.backend,forknum);
124125
fd=PathNameOpenFile(fullpath,O_RDWR |PG_BINARY,compressor);
126+
#else
127+
fd=PathNameOpenFile(fullpath,O_RDWR |PG_BINARY |PG_COMPRESSION);
128+
#endif
125129

126130
if(fd<0)
127131
return (off_t)-1;
128132

133+
#ifPG_VERSION_NUM >=120000
129134
size=FileSize(fd);
135+
#else
136+
size=FileSeek(fd,0,SEEK_END);
137+
#endif
138+
130139
FileClose(fd);
131140

132141
returnsize;

‎engine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#definePTRACK_MAGIC_SIZE 4
4646

4747
/* CFS support macro */
48-
#if defined(PGPRO_EE)&&PG_VERSION_NUM >=120000
48+
#if defined(PGPRO_EE)&&PG_VERSION_NUM >=110000
4949
#defineCFS_SUPPORT 1
5050
#endif
5151

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp