Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hm21q-0005xn-Gc for pgsql-general@arkaria.postgresql.org; Fri, 12 Jul 2019 20:20:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hm21p-00070l-Ah for pgsql-general@arkaria.postgresql.org; Fri, 12 Jul 2019 20:20:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hm21p-00070d-0y for pgsql-general@lists.postgresql.org; Fri, 12 Jul 2019 20:20:25 +0000 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hm21m-0000m8-8l for pgsql-general@postgresql.org; Fri, 12 Jul 2019 20:20:24 +0000 Received: by mail-oi1-x243.google.com with SMTP id l12so8245445oil.1 for ; Fri, 12 Jul 2019 13:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=71jst0Nc14SK/RhdmwVFyAjky9SEILVEbr5ODTDVukI=; b=YJUftWkZsXuNFQECUqxdWv6t65o6RzEn+i3xOTZaWIWCVJkuZE7C/UF+syvm/ghk+k ZjL+Hc+CykU+9fbt5taTv9K2TmYAxYyaBrciQlGrEH+VlxDgiDUk1UiD71qJoMTRxyZN xRaf4kllGB0A2exUFsAYWUTWAjFKhixYPErzXxY0MkCLgg+R+NWKxhIsm7kaArFmeLty j24IJFyZg7q/1lGuQvMTgn2denjRHUpR/Eb+ameQqOZkaM6Emj7QSvgzbeJQEHnirYPU NX1zIIaKvvO2pEQ7Gk0gQRg0+o8FGn+8gCWXL7hvSsTDbTRWsub+AjVCS5yeO2eTSF+Q xV+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=71jst0Nc14SK/RhdmwVFyAjky9SEILVEbr5ODTDVukI=; b=K5o5ih/IKVpkM1xVX90UnsTQHZ9/0rRqrbPB9Y75QBd0j/63Li+lOY65Sp5BQu9DU0 chEgDEkz+1VkZihKRtey3CuHAugEItHA00p4dw+hpgEGzuiALANvQtkpPL0K6pH13ivC PzirDwJBM7QiLpHnccUctKLMZTSDo1C+y746LysdG37Q7aMhoTW90nxGR325J4s7UtXF 98nM02mIW48oPO41nclu3PSjqe0tG/iGxaFjCg1NpB+juGXy5vJJ0bOslks3mxgdhbtu XA8lKgfW+ELD7T7qK9pE9qy1YwINvENI2PduG/FW9O39JzUkgcWLan5LXy/jQARV2Qgh nRHA== X-Gm-Message-State: APjAAAW2rOeIsh3coKX0bU+kfqhxE5M3y3zvf2ooqU+AIOvu1Eqsz2zT u0zit1EhqmgCoifWLryd2Gnu6joKOMZXbJaO/WFbJRBD X-Google-Smtp-Source: APXvYqwrf34Knia7Ux1pVEgx/mQ9h2gXxZjZf9bXc9oGoEj2dWK96WZKsVvywhfkoyr/sTdjoy81oV+MzNKv7ao1sqI= X-Received: by 2002:aca:36c5:: with SMTP id d188mr7441090oia.39.1562962819798; Fri, 12 Jul 2019 13:20:19 -0700 (PDT) MIME-Version: 1.0 From: Ken Tanzer Date: Fri, 12 Jul 2019 13:19:43 -0700 Message-ID: Subject: Compiling table_log for PG 11 / attisdropped To: PG-General Mailing List Content-Type: multipart/alternative; boundary="000000000000abda79058d81a376" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000abda79058d81a376 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi. I'm trying to update some databases from 9.6 to 11, and they use table_log for tracking changes to tables. I started with the most recent version I could find, a fork labeled version 0.5. [1] This version compiles on both 9.6, and 10, but on 11 it fails with these errors: table_log.c: In function =E2=80=98count_columns=E2=80=99: table_log.c:80:27: error: invalid type argument of =E2=80=98->=E2=80=99 (ha= ve =E2=80=98FormData_pg_attribute=E2=80=99) if (!tupleDesc->attrs[i]->attisdropped) ^ table_log.c: In function =E2=80=98__table_log=E2=80=99: table_log.c:339:56: error: invalid type argument of =E2=80=98->=E2=80=99 (h= ave =E2=80=98FormData_pg_attribute=E2=80=99) if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped) ^ table_log.c:373:56: error: invalid type argument of =E2=80=98->=E2=80=99 (h= ave =E2=80=98FormData_pg_attribute=E2=80=99) if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped) Can anyone shed any light on these errors, and/or how they might be fixed? (I did try filing an issue with this project [2], but since there is no activity there I'm turning to this mailing list.) (Also, I know table_log is quite old and there are better alternatives. If I were starting fresh I would surely use them. But it works for my simple needs, and I have a lot of legacy data accumulated, so I would really like to avoid switching to a new or different logging system.) Thanks in advance, Ken [1] Table log: https://github.com/psoo/table_log [2] Issue filed: https://github.com/psoo/table_log/issues/2 [3] table_log.c: https://github.com/psoo/table_log/blob/master/table_log.c --=20 AGENCY Software A Free Software data system By and for non-profits *http://agency-software.org/ * *https://demo.agency-software.org/client * ken.tanzer@agency-software.org (253) 245-3801 Subscribe to the mailing list to learn more about AGENCY or follow the discussion. --000000000000abda79058d81a376 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi.=C2=A0 I'm trying to update some databases from 9.6= to 11, and they use table_log for tracking changes to tables.=C2=A0=C2=A0<= div>
I started with the most recent version I could find, a f= ork labeled version 0.5.=C2=A0 [1]

This version co= mpiles on both 9.6, and 10, but on 11 it fails with these errors:

table_log.c: In function =E2=80=98count_column= s=E2=80=99:
table_log.c:80:27: error: invalid type argument of =E2=80=98= ->=E2=80=99 (have =E2=80=98FormData_pg_attribute=E2=80=99)
=C2=A0 =C2= =A0if (!tupleDesc->attrs[i]->attisdropped)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0^
table_log.c: In function =E2=80=98__table_log=E2=80=99:
table_lo= g.c:339:56: error: invalid type argument of =E2=80=98->=E2=80=99 (have = =E2=80=98FormData_pg_attribute=E2=80=99)
=C2=A0 =C2=A0 if (trigdata->= tg_relation->rd_att->attrs[col_nr - 1]->attisdropped)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
table_log.c:373:56: error: i= nvalid type argument of =E2=80=98->=E2=80=99 (have =E2=80=98FormData_pg_= attribute=E2=80=99)
=C2=A0 =C2=A0 if (trigdata->tg_relation->rd_at= t->attrs[col_nr - 1]->attisdropped)

=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
Can anyone shed any= light on these errors, and/or how they might be fixed?

(I did try filing an issue with this project [2], but since there is = no activity there I'm turning to this mailing list.)
(Also, I= know table_log is quite old and there are better alternatives.=C2=A0 If I = were starting fresh I would surely use them.=C2=A0 But it works for my simp= le needs, and I have a lot of legacy data accumulated, so I would really li= ke to avoid switching to a new or different logging system.)

=
Thanks in advance,
Ken




=
--=C2=A0
AGENCY Software =C2=A0
A Free Software data system
By and for non-profits
(253) 245-3801

learn more about AGENCY or
follow the di= scussion.
--000000000000abda79058d81a376--