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 1hm2NI-0006uG-KA for pgsql-general@arkaria.postgresql.org; Fri, 12 Jul 2019 20:42:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hm2NH-0005MY-Gl for pgsql-general@arkaria.postgresql.org; Fri, 12 Jul 2019 20:42:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hm2NF-0005MR-J8 for pgsql-general@lists.postgresql.org; Fri, 12 Jul 2019 20:42:35 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hm2NA-0002TA-Vi for pgsql-general@postgresql.org; Fri, 12 Jul 2019 20:42:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C46062102F; Fri, 12 Jul 2019 16:42:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 12 Jul 2019 16:42:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=i hn3pU1embxAKoX3/qY23mrv95G73IVN55bXUvj7yZI=; b=IDiS5pfEveKRPDFSW HmPjqN5BCj2XIqcnQmEklZij0aRIIvJu3oM5PeFUP6DySnsphdGlRBXFdZdBFkV4 s8AU12N0xoFR16kN5YUMSl9pZr61YAIgm+L7qa++P9CNWH2+dGuudyFpfDJZIkWE pSdRHUJYBeSssaztWHcPJECSwPGzw7Kw3+R7cG4jz0m9KO/79iQl/5QmWAYjCR8N T0qrLqfU+3TyH+x3/xMzZYLkERUC4XSPMIfjYfJVfG1gLMCxPmFJWwTnAjaBUfFW BK1tMjMGhhQUubO/+OP0TVTgH5tkhMYyKWDb/5DRVxJC24IUo012Ucwau2kn5HgV qVl6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=ihn3pU1embxAKoX3/qY23mrv95G73IVN55bXUvj7y ZI=; b=Vqg4ke04a8NHt5PCk788nSaPYafZyLt/yjvLSl7BYP17uoe4Z/nYduEui JR59NFD52Wj1DOLjl7dBH4pNXi8/s4SEFZ8wGATc7LxGVibRAQdbIQbJs78dYgL0 FDfCgNY3tjJEl5UABBf4eRoLl0xNdDD6acyBYFaUd1D+AEbsZXVz0kgz/Y6m5QHE rTPESNx8BV3li+Y3YPdE9s6FC1ROVqaJGYgFgqItcNu18SYodYfS1h5vEbZ0qvjw FJBjYQHrTnjxnxQP8dtFvLw9k02j86hSi5nDu/eEyij6sMTEutUVgedQv9vSbXLA yHmLMZouk6+jiv7X7CgcAlXPEstHg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrhedtgdduhedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepohhsghgvohdrohhrghdprghgvghntgihqdhsohhfthifrghr vgdrohhrghdpghhithhhuhgsrdgtohhmnecukfhppeejfedrvdefledruddujedrvdefke enucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgr vhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 098C7380076; Fri, 12 Jul 2019 16:42:26 -0400 (EDT) Subject: Re: Compiling table_log for PG 11 / attisdropped To: Ken Tanzer , PG-General Mailing List References: From: Adrian Klaver Message-ID: <3a2d53d8-8aca-5978-7e87-7ad9f961c93a@aklaver.com> Date: Fri, 12 Jul 2019 13:42:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/12/19 1:19 PM, Ken Tanzer wrote: > 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] What OS.version and compiler/version? Some digging found the below, which is similar: https://trac.osgeo.org/postgis/ticket/3814 https://trac.osgeo.org/postgis/changeset/15653 > > 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) If I am following the issue correctly then the above becomes: 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) and above becomes: *[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 > > > > -- > 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. -- Adrian Klaver adrian.klaver@aklaver.com