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

[PBKP-531] hotfix#33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
daniel-95 merged 2 commits intomasterfromPBCKP-531-hotfix
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
[PBKP-531] hotfix
PGPROEE11 now supports ptrack for CFS
  • Loading branch information
Daniel Shelepanov committedFeb 16, 2023
commit5b27581911a96b978c82a30f2c6a1c7c0041eecc
14 changes: 13 additions & 1 deletionengine.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -117,16 +117,28 @@ is_cfm_file_path(const char *filepath) {
off_t
get_cfs_relation_file_decompressed_size(RelFileNodeBackend rnode, const char *fullpath, ForkNumber forknum) {
File fd;
int compressor;
off_t size;

#if PG_VERSION_NUM >= 120000
int compressor;
compressor = md_get_compressor_internal(nodeOf(rnode), rnode.backend, forknum);
fd = PathNameOpenFile(fullpath, O_RDWR | PG_BINARY, compressor);
#else
fd = PathNameOpenFile(fullpath, O_RDWR | PG_BINARY | PG_COMPRESSION);
#endif

if(fd < 0)
return (off_t)-1;

#if PG_VERSION_NUM >= 120000
size = FileSize(fd);
#else
size = FileSeek(fd, 0, SEEK_END);

if (size < 0)
return (off_t) -1;
#endif

FileClose(fd);

return size;
Expand Down
2 changes: 1 addition & 1 deletionengine.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,7 +45,7 @@
#define PTRACK_MAGIC_SIZE 4

/* CFS support macro */
#if defined(PGPRO_EE) && PG_VERSION_NUM >=120000
#if defined(PGPRO_EE) && PG_VERSION_NUM >=110000
#define CFS_SUPPORT 1
#endif

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp