Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qRZr0-002Eya-TU for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Aug 2023 15:03:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qRZqz-00EOcC-CW for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Aug 2023 15:03:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qRZcW-00EGB4-Pa for pgsql-bugs@lists.postgresql.org; Thu, 03 Aug 2023 14:48:09 +0000 Received: from smtp.wfprod.com ([76.255.199.129]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qRZcU-000KZU-ER for pgsql-bugs@lists.postgresql.org; Thu, 03 Aug 2023 14:48:07 +0000 Received: from [IPV6:2600:1700:15da:201f:f52e:5497:f900:6ef5] (unknown [IPv6:2600:1700:15da:201f:f52e:5497:f900:6ef5]) by smtp.wfprod.com (Postfix) with ESMTPSA id 19644E34CD for ; Thu, 3 Aug 2023 09:48:05 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wfprod.com; s=wfprod; t=1691074085; bh=tPGfRateJ0xMjEDtg6HB9IB06fBCDoSx1XCb11j07FE=; h=Date:Subject:To:References:From:In-Reply-To; b=dEtAGKA1rKJCwjh3maDFfe53vsMKVYJPnB37CUYB/xFEW644imNBQW2kKmSTDkD1W WJZoUHP1OGp1XTQb/lGPXMPdW0DbHNk7Q4FUuF87itVbp1xVDichtFj0gVUZXABFn+ vtWmkQ0Jti31if9axqZ3subUB2cVCkAPPY335A2I= Message-ID: <9f648db7-904d-a205-3957-e1e569dc23cd@wfprod.com> Date: Thu, 3 Aug 2023 09:48:03 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: BUG #18047: ODBC to PG long transaction causes PANIC To: pgsql-bugs@lists.postgresql.org References: <18047-02a64967c9174466@postgresql.org> <18047-02a64967c9174466@postgresql.org> <20230803051448.cy2ylwpjcqkgcxsb@jrouhaud> Content-Language: en-US From: Justin Tocci Organization: Workflow Products, LLC In-Reply-To: <20230803051448.cy2ylwpjcqkgcxsb@jrouhaud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Julien! I eventually gave up and went back to pg14. same problem, (big clue) but this time initdb gave me an error "could not link" and "operation not permitted" just before the unhelpful wal error. I had posted the logs from the postgres server. Do you mean something other by 'full postgres log'? Very interested to know if I missed something. You are correct, 'quickest way' was for a test server that was not stable already. Not something you would want to do in production. Thank you for pointing that out. I'd hate to have someone reset their wal from my recommendation. Best Regards, Justin Tocci 817-503-9545 On 8/3/2023 12:14 AM, Julien Rouhaud wrote: > Hi, > On Thu, Aug 03, 2023 at 12:08:08AM -0500, justin tocci wrote: > >> found it! had to set security.bsd.hardlink_check_gid=0 to give postgres the >> ability to create hard links. please disregard. > Note sure how it was related, especially to the missing WAL part. In any case > the full postgres log on the server side should give you an explanation. > >> quickest way to recover is to su - postgres: >> pg_resetwal -f /opt/env.d/5434/data >> exit >> service postgresql restart 5434 >> >> and we are back in business. > Just to be clear, this is *NOT* a way to recover, this is a way to irremediably > corrupt your data. > > If you care about your data you should do a fresh initdb and recover from your > latest backup, or if you have no backup try to extract the data from what's > left on your current instance, with the fact that you can't assume that any > visible row is supposed to be visible and that expected rows are not there > anymore.