8000 Move astreamer (except astreamer_inject) to fe_utils. · postgres/postgres@f80b09b · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"commit":{"oid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","url":"/postgres/postgres/commit/f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","authoredDate":"2024-08-05T11:40:29.000-04:00","committedDate":"2024-08-05T11:41:57.000-04:00","shortMessage":null,"shortMessageMarkdown":"\u003cdiv\u003eMove astreamer (except astreamer_inject) to fe_utils.\u003c/div\u003e","shortMessageMarkdownLink":null,"bodyMessageHtml":"This allows the code to be used by other frontend applications.\n\nAmul Sul, reviewed by Sravan Kumar, Andres Freund (whose input\nI specifically solicited regarding the meson.build changes),\nand me.\n\nDiscussion: \u003ca href=\"http://postgr.es/m/CAAJ_b94StvLWrc_p4q-f7n3OPfr6GhL8_XuAg2aAaYZp1tF-nw@mail.gmail.com\" rel=\"nofollow\"\u003ehttp://postgr.es/m/CAAJ_b94StvLWrc_p4q-f7n3OPfr6GhL8_XuAg2aAaYZp1tF-nw@mail.gmail.com\u003c/a\u003e","authors":[{"login":"robertmhaas","displayName":"Robert Haas","avatarUrl":"https://avatars.githubusercontent.com/u/886678?v=4","path":"/robertmhaas","isGitHub":false}],"committerAttribution":false,"committer":{"login":"robertmhaas","displayName":"Robert Haas","avatarUrl":"https://avatars.githubusercontent.com/u/886678?v=4","path":"/robertmhaas","isGitHub":false},"parents":["53b2c921a0f9b56465ab65165c1909f9616ffa98"],"globalRelayId":"C_kwDOAA4m0toAKGY4MGIwOWJhYzg3ZDZiNDlmNWRiYjYxMzFkYTVmYmQ5Yjk3NzNjNWM","sha1":"53b2c921a0f9b56465ab65165c1909f9616ffa98","sha2":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c"},"currentUser":null,"repo":{"id":927442,"defaultBranch":"master","name":"postgres","ownerLogin":"postgres","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2010-09-21T11:35:45.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/177543?v=4","public":true,"private":false,"isOrgOwned":true},"diffEntryData":[{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":3036,"text":"@@ -3037,7 +3037,7 @@ frontend_common_code = declare_dependency(","html":"@@ -3037,7 +3037,7 @@ frontend_common_code = declare_dependency(","displayNoNewLineWarning":false,"position":0,"left":3036,"right":3036},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":3037,"text":" compile_args: ['-DFRONTEND'],","html":" \u003cspan class=\"pl-smi\"\u003ecompile_args\u003c/span\u003e: [\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e-DFRONTEND\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e],","displayNoNewLineWarning":false,"position":1,"left":3037,"right":3037},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":3038,"text":" include_directories: [postgres_inc],","html":" \u003cspan class=\"pl-smi\"\u003einclude_directories\u003c/span\u003e: [postgres_inc],","displayNoNewLineWarning":false,"position":2,"left":3038,"right":3038},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":3039,"text":" sources: generated_headers,","html":" \u003cspan class=\"pl-smi\"\u003esources\u003c/span\u003e: generated_headers,","displayNoNewLineWarning":false,"position":3,"left":3039,"right":3039},{"stylingDirective":null,"type":"DELETION","blobLineNumber":3040,"text":"- dependencies: [os_deps, zlib, zstd],","html":"- \u003cspan class=\"pl-smi\"\u003edependencies\u003c/span\u003e: [os_deps, zlib, zstd],","displayNoNewLineWarning":false,"position":4,"left":3040,"right":3039},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":3040,"text":"+ dependencies: [os_deps, zlib, zstd, lz4],","html":"+ \u003cspan class=\"pl-smi\"\u003edependencies\u003c/span\u003e: [os_deps, zlib, zstd\u003cspan class=\"x x-first x-last\"\u003e, lz4\u003c/span\u003e],","displayNoNewLineWarning":false,"position":5,"left":3040,"right":3040},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":3041,"text":" )","html":" )","displayNoNewLineWarning":false,"position":6,"left":3041,"right":3041},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":3042,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":7,"left":3042,"right":3042},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":3043,"text":" backend_common_code = declare_dependency(","html":" backend_common_code \u003cspan class=\"pl-k\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003edeclare_dependency\u003c/span\u003e(","displayNoNewLineWarning":false,"position":8,"left":3043,"right":3043}],"diffNumber":0,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":3767,"linesChanged":2,"newTreeEntry":{"lineCount":3767,"path":"meson.build","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"meson.build","mode":100644},"linesAdded":1,"linesDeleted":1,"path":"meson.build","pathDigest":"30d8f6be6320feeacf686be94f48c70869b52630e01ea625f0f15adc0d57c3e4","status":"MODIFIED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":36,"text":"@@ -37,12 +37,7 @@ OBJS = \\","html":"@@ -37,12 +37,7 @@ OBJS = \\","displayNoNewLineWarning":false,"position":0,"left":36,"right":36},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":37,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":1,"left":37,"right":37},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":38,"text":" BBOBJS = \\","html":" \u003cspan class=\"pl-smi\"\u003eBBOBJS\u003c/span\u003e = \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":2,"left":38,"right":38},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":39,"text":" \tpg_basebackup.o \\","html":" \tpg_basebackup.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":3,"left":39,"right":39},{"stylingDirective":null,"type":"DELETION","blobLineNumber":40,"text":"-\tastreamer_file.o \\","html":"-\tastreamer_file.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":4,"left":40,"right":39},{"stylingDirective":null,"type":"DELETION","blobLineNumber":41,"text":"-\tastreamer_gzip.o \\","html":"-\tastreamer_gzip.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":5,"left":41,"right":39},{"stylingDirective":null,"type":"DELETION","blobLineNumber":42,"text":"-\tastreamer_inject.o \\","html":"-\tastreamer_inject.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":6,"left":42,"right":39},{"stylingDirective":null,"type":"DELETION","blobLineNumber":43,"text":"-\tastreamer_lz4.o \\","html":"-\tastreamer_lz4.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":7,"left":43,"right":39},{"stylingDirective":null,"type":"DELETION","blobLineNumber":44,"text":"-\tastreamer_tar.o \\","html":"-\tastreamer_tar.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":8,"left":44,"right":39},{"stylingDirective":null,"type":"DELETION","blobLineNumber":45,"text":"-\tastreamer_zstd.o","html":"-\tastreamer_zstd.o","displayNoNewLineWarning":false,"position":9,"left":45,"right":39},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":40,"text":"+\tastreamer_inject.o","html":"+\tastreamer_inject.o","displayNoNewLineWarning":false,"position":10,"left":45,"right":40},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":41,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":11,"left":46,"right":41},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":42,"text":" all: pg_basebackup pg_createsubscriber pg_receivewal pg_recvlogical","html":" \u003cspan class=\"pl-en\"\u003eall\u003c/span\u003e: pg_basebackup pg_createsubscriber pg_receivewal pg_recvlogical","displayNoNewLineWarning":false,"position":12,"left":47,"right":42},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":43,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":13,"left":48,"right":43}],"diffNumber":1,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":81,"linesChanged":7,"newTreeEntry":{"lineCount":81,"path":"src/bin/pg_basebackup/Makefile","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/Makefile","mode":100644},"linesAdded":1,"linesDeleted":6,"path":"src/bin/pg_basebackup/Makefile","pathDigest":"9f437aa088f375eba6369e064c45053aff8521efb6d389158f3e2032b4751ce2","status":"MODIFIED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":11,"text":"@@ -12,7 +12,7 @@","html":"@@ -12,7 +12,7 @@","displayNoNewLineWarning":false,"position":0,"left":11,"right":11},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":12,"text":" #ifndef ASTREAMER_INJECT_H","html":" \u003cspan class=pl-k\u003e#ifndef\u003c/span\u003e \u003cspan class=pl-c1\u003eASTREAMER_INJECT_H\u003c/span\u003e","displayNoNewLineWarning":false,"position":1,"left":12,"right":12},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":13,"text":" #define ASTREAMER_INJECT_H","html":" \u003cspan class=pl-k\u003e#define\u003c/span\u003e \u003cspan class=pl-c1\u003eASTREAMER_INJECT_H\u003c/span\u003e","displayNoNewLineWarning":false,"position":2,"left":13,"right":13},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":14,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":3,"left":14,"right":14},{"stylingDirective":null,"type":"DELETION","blobLineNumber":15,"text":"-#include \"astreamer.h\"","html":"-\u003cspan class=\"pl-k\"\u003e#include\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\"astreamer.h\"\u003c/span\u003e","displayNoNewLineWarning":false,"position":4,"left":15,"right":14},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":15,"text":"+#include \"fe_utils/astreamer.h\"","html":"+\u003cspan class=\"pl-k\"\u003e#include\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\"\u003cspan class=\"x x-first x-last\"\u003efe_utils/\u003c/span\u003eastreamer.h\"\u003c/span\u003e","displayNoNewLineWarning":false,"position":5,"left":15,"right":15},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":16,"text":" #include \"pqexpbuffer.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;pqexpbuffer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":6,"left":16,"right":16},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":17,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":7,"left":17,"right":17},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":18,"text":" extern astreamer *astreamer_recovery_injector_new(astreamer *next,","html":" \u003cspan class=pl-k\u003eextern\u003c/span\u003e \u003cspan class=pl-smi\u003eastreamer\u003c/span\u003e \u003cspan class=pl-c1\u003e*\u003c/span\u003e\u003cspan class=pl-en\u003eastreamer_recovery_injector_new\u003c/span\u003e(\u003cspan class=pl-smi\u003eastreamer\u003c/span\u003e \u003cspan class=pl-c1\u003e*\u003c/span\u003e\u003cspan class=pl-s1\u003enext\u003c/span\u003e,","displayNoNewLineWarning":false,"position":8,"left":18,"right":18}],"diffNumber":2,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":24,"linesChanged":2,"newTreeEntry":{"lineCount":24,"path":"src/bin/pg_basebackup/astreamer_inject.h","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/astreamer_inject.h","mode":100644},"linesAdded":1,"linesDeleted":1,"path":"src/bin/pg_basebackup/astreamer_inject.h","pathDigest":"862d62f931a299a84133c856c003a1012854fecaffb57a8fab3ecec5759b0c0c","status":"MODIFIED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":0,"text":"@@ -1,12 +1,7 @@","html":"@@ -1,12 +1,7 @@","displayNoNewLineWarning":false,"position":0,"left":0,"right":0},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":1,"text":" # Copyright (c) 2022-2024, PostgreSQL Global Development Group","html":" \u003cspan class=\"pl-c\"\u003e# Copyright (c) 2022-2024, PostgreSQL Global Development Group\u003c/span\u003e","displayNoNewLineWarning":false,"position":1,"left":1,"right":1},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":2,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":2,"left":2,"right":2},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":3,"text":" common_sources = files(","html":" common_sources \u003cspan class=\"pl-k\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003efiles\u003c/span\u003e(","displayNoNewLineWarning":false,"position":3,"left":3,"right":3},{"stylingDirective":null,"type":"DELETION","blobLineNumber":4,"text":"- 'astreamer_file.c',","html":"- \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_file.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":4,"left":4,"right":3},{"stylingDirective":null,"type":"DELETION","blobLineNumber":5,"text":"- 'astreamer_gzip.c',","html":"- \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_gzip.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":5,"left":5,"right":3},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":4,"text":" 'astreamer_inject.c',","html":" \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_inject.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":6,"left":6,"right":4},{"stylingDirective":null,"type":"DELETION","blobLineNumber":7,"text":"- 'astreamer_lz4.c',","html":"- \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_lz4.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":7,"left":7,"right":4},{"stylingDirective":null,"type":"DELETION","blobLineNumber":8,"text":"- 'astreamer_tar.c',","html":"- \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_tar.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":8,"left":8,"right":4},{"stylingDirective":null,"type":"DELETION","blobLineNumber":9,"text":"- 'astreamer_zstd.c',","html":"- \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_zstd.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":9,"left":9,"right":4},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":5,"text":" 'receivelog.c',","html":" \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003ereceivelog.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":10,"left":10,"right":5},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":6,"text":" 'streamutil.c',","html":" \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003estreamutil.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":11,"left":11,"right":6},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":7,"text":" 'walmethods.c',","html":" \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003ewalmethods.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":12,"left":12,"right":7}],"diffNumber":3,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":110,"linesChanged":5,"newTreeEntry":{"lineCount":110,"path":"src/bin/pg_basebackup/meson.build","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/meson.build","mode":100644},"linesAdded":0,"linesDeleted":5,"path":"src/bin/pg_basebackup/meson.build","pathDigest":"b7b374897abc75b171219823bdf803f1001d02152a5d8fd9f573c1e47731aaf8","status":"MODIFIED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":20,"text":"@@ -21,6 +21,11 @@ override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)","html":"@@ -21,6 +21,11 @@ override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)","displayNoNewLineWarning":false,"position":0,"left":20,"right":20},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":21,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":1,"left":21,"right":21},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":22,"text":" OBJS = \\","html":" \u003cspan class=\"pl-smi\"\u003eOBJS\u003c/span\u003e = \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":2,"left":22,"right":22},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":23,"text":" \tarchive.o \\","html":" \tarchive.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":3,"left":23,"right":23},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":24,"text":"+\tastreamer_file.o \\","html":"+\tastreamer_file.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":4,"left":23,"right":24},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":25,"text":"+\tastreamer_gzip.o \\","html":"+\tastreamer_gzip.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":5,"left":23,"right":25},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":26,"text":"+\tastreamer_lz4.o \\","html":"+\tastreamer_lz4.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":6,"left":23,"right":26},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":27,"text":"+\tastreamer_tar.o \\","html":"+\tastreamer_tar.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":7,"left":23,"right":27},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":28,"text":"+\tastreamer_zstd.o \\","html":"+\tastreamer_zstd.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":8,"left":23,"right":28},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":29,"text":" \tcancel.o \\","html":" \tcancel.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":9,"left":24,"right":29},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":30,"text":" \tconditional.o \\","html":" \tconditional.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":10,"left":25,"right":30},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":31,"text":" \tconnect_utils.o \\","html":" \tconnect_utils.o \u003cspan class=\"pl-cce\"\u003e\\\u003c/span\u003e","displayNoNewLineWarning":false,"position":11,"left":26,"right":31}],"diffNumber":4,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":68,"linesChanged":5,"newTreeEntry":{"lineCount":68,"path":"src/fe_utils/Makefile","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/fe_utils/Makefile","mode":100644},"linesAdded":5,"linesDeleted":0,"path":"src/fe_utils/Makefile","pathDigest":"f57ea0166ff63377a445e2d0e75496eb953c6a286351a4f59350820ee06531fc","status":"MODIFIED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":12,"text":"@@ -13,10 +13,10 @@","html":"@@ -13,10 +13,10 @@","displayNoNewLineWarning":false,"position":0,"left":12,"right":12},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":13,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":1,"left":13,"right":13},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":14,"text":" #include \u003cunistd.h\u003e","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026lt;unistd.h\u0026gt;\u003c/span\u003e","displayNoNewLineWarning":false,"position":2,"left":14,"right":14},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":15,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":3,"left":15,"right":15},{"stylingDirective":null,"type":"DELETION","blobLineNumber":16,"text":"-#include \"astreamer.h\"","html":"-\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":4,"left":16,"right":15},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":16,"text":" #include \"common/file_perm.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/file_perm.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":5,"left":17,"right":16},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":17,"text":" #include \"common/logging.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/logging.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":6,"left":18,"right":17},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":18,"text":" #include \"common/string.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/string.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":7,"left":19,"right":18},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":19,"text":"+#include \"fe_utils/astreamer.h\"","html":"+\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;fe_utils/astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":8,"left":19,"right":19},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":20,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":9,"left":20,"right":20},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":21,"text":" typedef struct astreamer_plain_writer","html":" \u003cspan class=pl-k\u003etypedef\u003c/span\u003e \u003cspan class=pl-k\u003estruct\u003c/span\u003e \u003cspan class=pl-smi\u003eastreamer_plain_writer\u003c/span\u003e","displayNoNewLineWarning":false,"position":10,"left":21,"right":21},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":22,"text":" {","html":" {","displayNoNewLineWarning":false,"position":11,"left":22,"right":22}],"diffNumber":5,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":396,"linesChanged":2,"newTreeEntry":{"lineCount":396,"path":"src/fe_utils/astreamer_file.c","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/astreamer_file.c","mode":100644},"linesAdded":1,"linesDeleted":1,"path":"src/fe_utils/astreamer_file.c","pathDigest":"484e83e05ad4d84cdac7a21a90aad608adc8da3dd3548e94d5477fc69be5592d","status":"RENAMED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":16,"text":"@@ -17,10 +17,10 @@","html":"@@ -17,10 +17,10 @@","displayNoNewLineWarning":false,"position":0,"left":16,"right":16},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":17,"text":" #include \u003czlib.h\u003e","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026lt;zlib.h\u0026gt;\u003c/span\u003e","displayNoNewLineWarning":false,"position":1,"left":17,"right":17},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":18,"text":" #endif","html":" \u003cspan class=pl-k\u003e#endif\u003c/span\u003e","displayNoNewLineWarning":false,"position":2,"left":18,"right":18},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":19,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":3,"left":19,"right":19},{"stylingDirective":null,"type":"DELETION","blobLineNumber":20,"text":"-#include \"astreamer.h\"","html":"-\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":4,"left":20,"right":19},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":20,"text":" #include \"common/file_perm.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/file_perm.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":5,"left":21,"right":20},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":21,"text":" #include \"common/logging.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/logging.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":6,"left":22,"right":21},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":22,"text":" #include \"common/string.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/string.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":7,"left":23,"right":22},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":23,"text":"+#include \"fe_utils/astreamer.h\"","html":"+\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;fe_utils/astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":8,"left":23,"right":23},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":24,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":9,"left":24,"right":24},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":25,"text":" #ifdef HAVE_LIBZ","html":" \u003cspan class=pl-k\u003e#ifdef\u003c/span\u003e \u003cspan class=pl-c1\u003eHAVE_LIBZ\u003c/span\u003e","displayNoNewLineWarning":false,"position":10,"left":25,"right":25},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":26,"text":" typedef struct astreamer_gzip_writer","html":" \u003cspan class=pl-k\u003etypedef\u003c/span\u003e \u003cspan class=pl-k\u003estruct\u003c/span\u003e \u003cspan class=pl-smi\u003eastreamer_gzip_writer\u003c/span\u003e","displayNoNewLineWarning":false,"position":11,"left":26,"right":26}],"diffNumber":6,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":364,"linesChanged":2,"newTreeEntry":{"lineCount":364,"path":"src/fe_utils/astreamer_gzip.c","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/astreamer_gzip.c","mode":100644},"linesAdded":1,"linesDeleted":1,"path":"src/fe_utils/astreamer_gzip.c","pathDigest":"cb1950d45a7189872fcf017166c3bc96e1754a2aaea881a3b01c55743e2e81c9","status":"RENAMED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":16,"text":"@@ -17,10 +17,10 @@","html":"@@ -17,10 +17,10 @@","displayNoNewLineWarning":false,"position":0,"left":16,"right":16},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":17,"text":" #include \u003clz4frame.h\u003e","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026lt;lz4frame.h\u0026gt;\u003c/span\u003e","displayNoNewLineWarning":false,"position":1,"left":17,"right":17},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":18,"text":" #endif","html":" \u003cspan class=pl-k\u003e#endif\u003c/span\u003e","displayNoNewLineWarning":false,"position":2,"left":18,"right":18},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":19,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":3,"left":19,"right":19},{"stylingDirective":null,"type":"DELETION","blobLineNumber":20,"text":"-#include \"astreamer.h\"","html":"-\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":4,"left":20,"right":19},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":20,"text":" #include \"common/file_perm.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/file_perm.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":5,"left":21,"right":20},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":21,"text":" #include \"common/logging.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/logging.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":6,"left":22,"right":21},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":22,"text":" #include \"common/string.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/string.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":7,"left":23,"right":22},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":23,"text":"+#include \"fe_utils/astreamer.h\"","html":"+\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;fe_utils/astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":8,"left":23,"right":23},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":24,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":9,"left":24,"right":24},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":25,"text":" #ifdef USE_LZ4","html":" \u003cspan class=pl-k\u003e#ifdef\u003c/span\u003e \u003cspan class=pl-c1\u003eUSE_LZ4\u003c/span\u003e","displayNoNewLineWarning":false,"position":10,"left":25,"right":25},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":26,"text":" typedef struct astreamer_lz4_frame","html":" \u003cspan class=pl-k\u003etypedef\u003c/span\u003e \u003cspan class=pl-k\u003estruct\u003c/span\u003e \u003cspan class=pl-smi\u003eastreamer_lz4_frame\u003c 8000 /span\u003e","displayNoNewLineWarning":false,"position":11,"left":26,"right":26}],"diffNumber":7,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":422,"linesChanged":2,"newTreeEntry":{"lineCount":422,"path":"src/fe_utils/astreamer_lz4.c","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/astreamer_lz4.c","mode":100644},"linesAdded":1,"linesDeleted":1,"path":"src/fe_utils/astreamer_lz4.c","pathDigest":"41c587269845c333b1e0fdaf2215d4f4d24f3b72d18d3558f3b5d78a90dc09fb","status":"RENAMED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":22,"text":"@@ -23,8 +23,8 @@","html":"@@ -23,8 +23,8 @@","displayNoNewLineWarning":false,"position":0,"left":22,"right":22},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":23,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":1,"left":23,"right":23},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":24,"text":" #include \u003ctime.h\u003e","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026lt;time.h\u0026gt;\u003c/span\u003e","displayNoNewLineWarning":false,"position":2,"left":24,"right":24},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":25,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":3,"left":25,"right":25},{"stylingDirective":null,"type":"DELETION","blobLineNumber":26,"text":"-#include \"astreamer.h\"","html":"-\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":4,"left":26,"right":25},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":26,"text":" #include \"common/logging.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/logging.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":5,"left":27,"right":26},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":27,"text":"+#include \"fe_utils/astreamer.h\"","html":"+\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;fe_utils/astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":6,"left":27,"right":27},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":28,"text":" #include \"pgtar.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;pgtar.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":7,"left":28,"right":28},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":29,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":8,"left":29,"right":29},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":30,"text":" typedef struct astreamer_tar_parser","html":" \u003cspan class=pl-k\u003etypedef\u003c/span\u003e \u003cspan class=pl-k\u003estruct\u003c/span\u003e \u003cspan class=pl-smi\u003eastreamer_tar_parser\u003c/span\u003e","displayNoNewLineWarning":false,"position":9,"left":30,"right":30}],"diffNumber":8,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":514,"linesChanged":2,"newTreeEntry":{"lineCount":514,"path":"src/fe_utils/astreamer_tar.c","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/astreamer_tar.c","mode":100644},"linesAdded":1,"linesDeleted":1,"path":"src/fe_utils/astreamer_tar.c","pathDigest":"140c726feb01f89266d2d36ad4b91b81984f20fa72f208fca471cf2b78465d40","status":"RENAMED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":16,"text":"@@ -17,8 +17,8 @@","html":"@@ -17,8 +17,8 @@","displayNoNewLineWarning":false,"position":0,"left":16,"right":16},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":17,"text":" #include \u003czstd.h\u003e","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026lt;zstd.h\u0026gt;\u003c/span\u003e","displayNoNewLineWarning":false,"position":1,"left":17,"right":17},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":18,"text":" #endif","html":" \u003cspan class=pl-k\u003e#endif\u003c/span\u003e","displayNoNewLineWarning":false,"position":2,"left":18,"right":18},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":19,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":3,"left":19,"right":19},{"stylingDirective":null,"type":"DELETION","blobLineNumber":20,"text":"-#include \"astreamer.h\"","html":"-\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":4,"left":20,"right":19},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":20,"text":" #include \"common/logging.h\"","html":" \u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;common/logging.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":5,"left":21,"right":20},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":21,"text":"+#include \"fe_utils/astreamer.h\"","html":"+\u003cspan class=pl-k\u003e#include\u003c/span\u003e \u003cspan class=pl-s\u003e\u0026quot;fe_utils/astreamer.h\u0026quot;\u003c/span\u003e","displayNoNewLineWarning":false,"position":6,"left":21,"right":21},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":22,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":7,"left":22,"right":22},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":23,"text":" #ifdef USE_ZSTD","html":" \u003cspan class=pl-k\u003e#ifdef\u003c/span\u003e \u003cspan class=pl-c1\u003eUSE_ZSTD\u003c/span\u003e","displayNoNewLineWarning":false,"position":8,"left":23,"right":23},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":24,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":9,"left":24,"right":24}],"diffNumber":9,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":368,"linesChanged":2,"newTreeEntry":{"lineCount":368,"path":"src/fe_utils/astreamer_zstd.c","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/astreamer_zstd.c","mode":100644},"linesAdded":1,"linesDeleted":1,"path":"src/fe_utils/astreamer_zstd.c","pathDigest":"f532af4a9e5ef1981bb9ab0e5b248f93cd7e1d5530dc22ad1d34f2f0b4242cc2","status":"RENAMED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[{"stylingDirective":null,"type":"HUNK","blobLineNumber":1,"text":"@@ -2,6 +2,11 @@","html":"@@ -2,6 +2,11 @@","displayNoNewLineWarning":false,"position":0,"left":1,"right":1},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":2,"text":" ","html":"\u003cbr\u003e","displayNoNewLineWarning":false,"position":1,"left":2,"right":2},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":3,"text":" fe_utils_sources = files(","html":" fe_utils_sources \u003cspan class=\"pl-k\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003efiles\u003c/span\u003e(","displayNoNewLineWarning":false,"position":2,"left":3,"right":3},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":4,"text":" 'archive.c',","html":" \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003earchive.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":3,"left":4,"right":4},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":5,"text":"+ 'astreamer_file.c',","html":"+ \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_file.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":4,"left":4,"right":5},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":6,"text":"+ 'astreamer_gzip.c',","html":"+ \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_gzip.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":5,"left":4,"right":6},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":7,"text":"+ 'astreamer_lz4.c',","html":"+ \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_lz4.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":6,"left":4,"right":7},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":8,"text":"+ 'astreamer_tar.c',","html":"+ \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_tar.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":7,"left":4,"right":8},{"stylingDirective":null,"type":"ADDITION","blobLineNumber":9,"text":"+ 'astreamer_zstd.c',","html":"+ \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003eastreamer_zstd.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":8,"left":4,"right":9},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":10,"text":" 'cancel.c',","html":" \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003ecancel.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":9,"left":5,"right":10},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":11,"text":" 'conditional.c',","html":" \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003econditional.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":10,"left":6,"right":11},{"stylingDirective":null,"type":"CONTEXT","blobLineNumber":12,"text":" 'connect_utils.c',","html":" \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003econnect_utils.c\u003cspan class=\"pl-pds\"\u003e\u0026#39;\u003c/span\u003e\u003c/span\u003e,","displayNoNewLineWarning":false,"position":11,"left":7,"right":12}],"diffNumber":10,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":38,"linesChanged":5,"newTreeEntry":{"lineCount":38,"path":"src/fe_utils/meson.build","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/fe_utils/meson.build","mode":100644},"linesAdded":5,"linesDeleted":0,"path":"src/fe_utils/meson.build","pathDigest":"b4d5187633d60d3c0c7ff13ed56e87666059c0b3f499a71ea3d6458e3f840e8b","status":"MODIFIED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null},{"diffLines":[],"diffNumber":11,"diffSize":"0 Bytes","isBinary":false,"isTooBig":false,"collapsed":false,"isSubmodule":false,"lineCount":220,"linesChanged":0,"newTreeEntry":{"lineCount":220,"path":"src/include/fe_utils/astreamer.h","mode":100644,"isGenerated":false},"oldTreeEntry":{"lineCount":0,"path":"src/bin/pg_basebackup/astreamer.h","mode":100644},"linesAdded":0,"linesDeleted":0,"path":"src/include/fe_utils/astreamer.h","pathDigest":"4e7413e5893e33b0599c39f753ae3d8775bedfa195a4124886dbee3f2999a67c","status":"RENAMED","truncatedReason":null,"oldOid":"53b2c921a0f9b56465ab65165c1909f9616ffa98","newOid":"f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","copilotChatReference":null,"deletedSha":"53b2c921a0f9b56465ab65165c1909f9616ffa98","canToggleRichDiff":false,"defaultToRichDiff":false,"proseDifffHtml":null,"renderInfo":null,"dependencyDiffPath":null,"submodule":null}],"splitViewPreference":"unified","ignoreWhitespace":false,"repoOwnerGlobalRelayId":"MDEyOk9yZ2FuaXphdGlvbjE3NzU0Mw==","commentsPreference":"visible","diffLineSpacingPreference":"relaxed","useMonospaceFont":false,"pasteUrlLinkAsPlainText":false,"userNotices":[],"path":"/postgres/postgres/commit/f80b09bac87d6b49f5dbb6131da5fbd9b9773c5c","fileTreeExpanded":true,"headerInfo":{"additions":18,"deletions":18,"filesChanged":12,"filesChangedString":"12"},"moreDiffsToLoad":false,"asyncDiffLoadInfo":{"startIndex":12,"truncated":false,"byteCount":2674,"lineShownCount":125},"commentInfo":{"canComment":false,"locked":false,"canLock":false,"repoArchived":false},"csrf_tokens":{"/users/diffview?diff=split":{"post":"o15xyC8kCdZqu5tpY5-Kq2IwIIEyYP-ebJqm782x_v60xAqh8ymPcGhPaMcy9Q8czQ8GsfdEPgxl8kXYOKx36g"},"/users/diffview?diff=unified":{"post":"hh5P9iOSJ4FlU_gwP8mqGXhTi20xBd2rnmp6o-bVf7eRhDSf_5-hJ2enC55uoy-u12ytXfQhHDmXApmUE8j2ow"},"/notifications/thread":{"post":"H46w75_A52vYFuTiocuvIRgGo1JXbjwb1qYCt3qsYnPCCmvVy8OwpEGe2pe4Vw8vnMeuGOsB_0UHU7HwnO2_sA"}}},"title":"Move astreamer (except astreamer_inject) to fe_utils. · postgres/postgres@f80b09b","appPayload":{"helpUrl":"https://docs.github.com","findInDiffWorkerPath":"/assets-cdn/worker/find-in-diff-worker-2bfe39677d14.js","enabled_features":{"diff_ux_refresh_beta":false,"diff_inline_comments":true,"diff_ux_refresh_ssr_five":false,"diff_ux_refresh_ssr_ten":false,"react_diff_line_type_character_correction":true}}}

Commit f80b09b

Browse files
committed
Move astreamer (except astreamer_inject) to fe_utils.
This allows the code to be used by other frontend applications. Amul Sul, reviewed by Sravan Kumar, Andres Freund (whose input I specifically solicited regarding the meson.build changes), and me. Discussion: http://postgr.es/m/CAAJ_b94StvLWrc_p4q-f7n3OPfr6GhL8_XuAg2aAaYZp1tF-nw@mail.gmail.com
1 parent 53b2c92 commit f80b09b

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3037,7 +3037,7 @@ frontend_common_code = declare_dependency(
30373037
compile_args: ['-DFRONTEND'],
30383038
include_directories: [postgres_inc],
30393039
sources: generated_headers,
3040-
dependencies: [os_deps, zlib, zstd],
3040+
dependencies: [os_deps, zlib, zstd, lz4],
30413041
)
30423042

30433043
backend_common_code = declare_dependency(

src/bin/pg_basebackup/Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@ OBJS = \
3737

3838
BBOBJS = \
3939
pg_basebackup.o \
40-
astreamer_file.o \
41-
astreamer_gzip.o \
42-
astreamer_inject.o \
43-
astreamer_lz4.o \
44-
astreamer_tar.o \
45-
astreamer_zstd.o
40+
astreamer_inject.o
4641

4742
all: pg_basebackup pg_createsubscriber pg_receivewal pg_recvlogical
4843

src/bin/pg_basebackup/astreamer_inject.h

Lines changed: 1 addition & 1 deletion
8000
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef ASTREAMER_INJECT_H
1313
#define ASTREAMER_INJECT_H
1414

15-
#include "astreamer.h"
15+
#include "fe_utils/astreamer.h"
1616
#include "pqexpbuffer.h"
1717

1818
extern astreamer *astreamer_recovery_injector_new(astreamer *next,

src/bin/pg_basebackup/meson.build

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# Copyright (c) 2022-2024, PostgreSQL Global Development Group
22

33
common_sources = files(
4-
'astreamer_file.c',
5-
'astreamer_gzip.c',
64
'astreamer_inject.c',
7-
'astreamer_lz4.c',
8-
'astreamer_tar.c',
9-
'astreamer_zstd.c',
105
'receivelog.c',
116
'streamutil.c',
127
'walmethods.c',

src/fe_utils/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
2121

2222
OBJS = \
2323
archive.o \
24+
astreamer_file.o \
25+
astreamer_gzip.o \
26+
astreamer_lz4.o \
27+
astreamer_tar.o \
28+
astreamer_zstd.o \
2429
cancel.o \
2530
conditional.o \
2631
connect_utils.o \

src/bin/pg_basebackup/astreamer_file.c renamed to src/fe_utils/astreamer_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
#include <unistd.h>
1515

16-
#include "astreamer.h"
1716
#include "common/file_perm.h"
1817
#include "common/logging.h"
1918
#include "common/string.h"
19+
#include "fe_utils/astreamer.h"
2020

2121
typedef struct astreamer_plain_writer
2222
{

src/bin/pg_basebackup/astreamer_gzip.c renamed to src/fe_utils/astreamer_gzip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#include <zlib.h>
1818
#endif
1919

20-
#include "astreamer.h"
2120
#include "common/file_perm.h"
2221
#include "common/logging.h"
2322
#include "common/string.h"
23+
#include "fe_utils/astreamer.h"
2424

2525
#ifdef HAVE_LIBZ
2626
typedef struct astreamer_gzip_writer

src/bin/pg_basebackup/astreamer_lz4.c renamed to src/fe_utils/astreamer_lz4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#include <lz4frame.h>
1818
#endif
1919

20-
#include "astreamer.h"
2120
#include "common/file_perm.h"
2221
#include "common/logging.h"
2322
#include "common/string.h"
23+
#include "fe_utils/astreamer.h"
2424

2525
#ifdef USE_LZ4
2626
typedef struct astreamer_lz4_frame

src/bin/pg_basebackup/astreamer_tar.c renamed to src/fe_utils/astreamer_tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
#include <time.h>
2525

26-
#include "astreamer.h"
2726
#include "common/logging.h"
27+
#include "fe_utils/astreamer.h"
2828
#include "pgtar.h"
2929

3030
typedef struct astreamer_tar_parser

src/bin/pg_basebackup/astreamer_zstd.c renamed to src/fe_utils/astreamer_zstd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include <zstd.h>
1818
#endif
1919

20-
#include "astreamer.h"
2120
#include "common/logging.h"
21+
#include "fe_utils/astreamer.h"
2222

2323
#ifdef USE_ZSTD
2424

src/fe_utils/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
fe_utils_sources = files(
44
'archive.c',
5+
'astreamer_file.c',
6+
'astreamer_gzip.c',
7+
'astreamer_lz4.c',
8+
'astreamer_tar.c',
9+
'astreamer_zstd.c',
510
'cancel.c',
611
'conditional.c',
712
'connect_utils.c',
File renamed without changes.

0 commit comments

Comments
 (0)
0