From: | Justin Tocci <justin(at)wfprod(dot)com> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #18047: ODBC to PG long transaction causes PANIC |
Date: | 2023-08-03 14:48:03 |
Message-ID: | 9f648db7-904d-a205-3957-e1e569dc23cd@wfprod.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2023-08-03 14:48:24 | Re: WHERE column = X AND column = Y will always be zero matching rows |
Previous Message | [Quipsy] Markus Karg | 2023-08-03 14:20:57 | WHERE column = X AND column = Y will always be zero matching rows |