Re: Corruption of few tables - Mailing list pgsql-general

From o1bigtenor
Subject Re: Corruption of few tables
Date
Msg-id CAPpdf5-3fj-JCmQesVJoqdRO_Anab+usxMpnsuFGeXrZu_9uSw@mail.gmail.com
Whole thread Raw
In response to Re: Corruption of few tables  ("sivapostgres@yahoo.com" <sivapostgres@yahoo.com>)
Responses Re: Corruption of few tables
List pgsql-general
On Tue, Feb 25, 2025 at 6:03 AM sivapostgres@yahoo.com
<sivapostgres@yahoo.com> wrote:
>
> Hello,
>
> Using PostgreSQL 11.11, compiled by Visual C++ build 1914, 64-bit  with Powerbuilder
>
> Recently, in one of our customers' places, we got an error while saving a record from our custom-built application
usingPowerBuilder.     While saving a record, we compare a value from a table with a hard-coded value in application.
Herethe select command failed to fetch that particular record from the table and so the save failed. 
>
> When we tried to read data from randomly selected tables [ from PGAdmin], we found that records could not be read
froma set of consecutive tables. We re-started server [ Windows Server 2012 ] and tried again to read those tables.
Thistime the failure was with only one table and select was success in all other tables. 
>
> So we dropped that particular table [ around 33000 records ], after removing all foreign key links and re-created
thattable and inserted all records from a backup set. 
>
> The problem got solved.  Since this is not the first time, we are getting this error, I want to know
>
> 1.  Why is corruption happening?  How to find out the reason?
> 2.  What should I do to prevent this from happening again?
>
> Any steps or suggestions to avoid such corruptions is really appreciated.
>
Not really a direct answer - - - but - - - have you considered
updating Postgresql.
Version 11 was EOL (end of life) over a year ago. Version 17 according
to the charts I've found
is the current version.

HTH



pgsql-general by date:

Previous
From: "sivapostgres@yahoo.com"
Date:
Subject: Re: Corruption of few tables
Next
From: Greg Sabino Mullane
Date:
Subject: Re: Corruption of few tables