Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-5665

PostgreSQL 15 support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • postgres-decoderbufs
    • None
    • False
    • None
    • False

    Description

      Hi,

       

      postgres-decoderbufs 1.7.0 does not build against PostgreSQL 15 (rc1). 15.0 is out in two weeks. Can you please take a look at this? Thanks!

       

      gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -std=c11  -I/usr/local/include  -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o src/decoderbufs.o src/decoderbufs.c
      src/decoderbufs.c: In function 'pg_decode_begin_txn':
      src/decoderbufs.c:503:57: error: 'ReorderBufferTXN' has no member named 'commit_time'
        503 |   rmsg.commit_time = TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(txn->commit_time);
            |                                                         ^~
      src/decoderbufs.c:69:47: note: in definition of macro 'TIMESTAMPTZ_TO_USEC_SINCE_EPOCH'
         69 | #define TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(t)    t + (POSTGRES_EPOCH_JDATE - UNIX_EPOCH_JDATE) * USECS_PER_DAY;
            |                                               ^
      src/decoderbufs.c: In function 'pg_decode_commit_txn':
      src/decoderbufs.c:541:57: error: 'ReorderBufferTXN' has no member named 'commit_time'
        541 |   rmsg.commit_time = TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(txn->commit_time);
            |                                                         ^~
      src/decoderbufs.c:69:47: note: in definition of macro 'TIMESTAMPTZ_TO_USEC_SINCE_EPOCH'
         69 | #define TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(t)    t + (POSTGRES_EPOCH_JDATE - UNIX_EPOCH_JDATE) * USECS_PER_DAY;
            |                                               ^
      src/decoderbufs.c: In function 'pg_decode_change':
      src/decoderbufs.c:593:57: error: 'ReorderBufferTXN' has no member named 'commit_time'
        593 |   rmsg.commit_time = TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(txn->commit_time);
            |                                                         ^~
      src/decoderbufs.c:69:47: note: in definition of macro 'TIMESTAMPTZ_TO_USEC_SINCE_EPOCH'
         69 | #define TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(t)    t + (POSTGRES_EPOCH_JDATE - UNIX_EPOCH_JDATE) * USECS_PER_DAY;
            |                                               ^
      make[1]: *** [<builtin>: src/decoderbufs.o] Error 1
      make[1]: Leaving directory '/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/main/non-common/postgres-decoderbufs/EL-9/postgres-decoderbufs-1.7.0.Final'
      make[1]: *** Waiting for unfinished jobs....
      make[1]: Entering directory '/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/main/non-common/postgres-decoderbufs/EL-9/postgres-decoderbufs-1.7.0.Final'
      /usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2  -std=c11  -I/usr/local/include  -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include -flto=thin -emit-llvm -c -o src/decoderbufs.bc src/decoderbufs.c
      src/decoderbufs.c:503:59: error: no member named 'commit_time' in 'struct ReorderBufferTXN'
        rmsg.commit_time = TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(txn->commit_time);
                                                           ~~~  ^
      src/decoderbufs.c:69:47: note: expanded from macro 'TIMESTAMPTZ_TO_USEC_SINCE_EPOCH'
      #define TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(t)    t + (POSTGRES_EPOCH_JDATE - UNIX_EPOCH_JDATE) * USECS_PER_DAY;
                                                    ^
      src/decoderbufs.c:541:59: error: no member named 'commit_time' in 'struct ReorderBufferTXN'
        rmsg.commit_time = TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(txn->commit_time);
                                                           ~~~  ^
      src/decoderbufs.c:69:47: note: expanded from macro 'TIMESTAMPTZ_TO_USEC_SINCE_EPOCH'
      #define TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(t)    t + (POSTGRES_EPOCH_JDATE - UNIX_EPOCH_JDATE) * USECS_PER_DAY;
                                                    ^
      src/decoderbufs.c:593:59: error: no member named 'commit_time' in 'struct ReorderBufferTXN'
        rmsg.commit_time = TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(txn->commit_time);
                                                           ~~~  ^
      src/decoderbufs.c:69:47: note: expanded from macro 'TIMESTAMPTZ_TO_USEC_SINCE_EPOCH'
      #define TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(t)    t + (POSTGRES_EPOCH_JDATE - UNIX_EPOCH_JDATE) * USECS_PER_DAY;
                                                    ^

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              devrimgunduzedb Devrim Gunduz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: