Compiling table_log for PG 11 / attisdropped - Mailing list pgsql-general

From Ken Tanzer
Subject Compiling table_log for PG 11 / attisdropped
Date
Msg-id CAD3a31U+=2d-HnkRg_+asYP63PZm6w6e_xPyZRWw5JDZQuCFbQ@mail.gmail.com
Whole thread Raw
Responses Re: Compiling table_log for PG 11 / attisdropped
List pgsql-general
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 ‘count_columns’:
table_log.c:80:27: error: invalid type argument of ‘->’ (have ‘FormData_pg_attribute’)
   if (!tupleDesc->attrs[i]->attisdropped)
                           ^
table_log.c: In function ‘__table_log’:
table_log.c:339:56: error: invalid type argument of ‘->’ (have ‘FormData_pg_attribute’)
    if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped)
                                                        ^
table_log.c:373:56: error: invalid type argument of ‘->’ (have ‘FormData_pg_attribute’)
    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




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

learn more about AGENCY or
follow the discussion.

pgsql-general by date:

Previous
From: "Chatterjee, Shibayan"
Date:
Subject: RE: Issue: Creating Symlink for data directory of postgresql inCentOS7
Next
From: Adrian Klaver
Date:
Subject: Re: Compiling table_log for PG 11 / attisdropped