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 1tmuE5-0005fi-9Q for pgsql-general@arkaria.postgresql.org; Tue, 25 Feb 2025 12:39:53 +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 1tmuE4-001Jxd-0u for pgsql-general@arkaria.postgresql.org; Tue, 25 Feb 2025 12:39:52 +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 1tmuE3-001JvV-Ll for pgsql-general@lists.postgresql.org; Tue, 25 Feb 2025 12:39:51 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tmuE0-000fK1-2M for pgsql-general@postgresql.org; Tue, 25 Feb 2025 12:39:50 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-30a303a656aso58219201fa.0 for ; Tue, 25 Feb 2025 04:39:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740487188; x=1741091988; darn=postgresql.org; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YMWlz/dLwRwmxZuQq6Cs0r3QSNc9wp8xVXl/P/AM/eM=; b=hfY6R7HYeKdWZDqY1EQlQeRiDbNXNYUgDLgRZMVVR3bB5b6Yqxn8OCAqEQBkSYzeai iMQ2z/2Hxnd/yi0yZd3+qf3RGY0+vl/tGdZTiGpzd+CPK3FBRFus+Tb20oCL1X8APRCs Jvr6MRNxH6I0vSZGHQAvpb8lT5MuEFXYC9zOMrWml7vOn0HXcT4vjczbAsYB6LEQWatd 60SgMfCQEygeWOVaa8TIl4B6EiSVqSIOLD3hZI2GbBERWRgpcYAb7r+rCmztScrcFXxA R1wtb//NGAM1Sxy00GcV9ciEw48ly4Cz/tQBhofPpg2NUm9E95ZGR5FDish07OLwqkiZ m9Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740487188; x=1741091988; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YMWlz/dLwRwmxZuQq6Cs0r3QSNc9wp8xVXl/P/AM/eM=; b=SJDvmJrbienWDykmXF6XyCHcupv4BKlowfdoSkYtagjj2Tpo6hNuCM+hzQzukbbzQX RiPfp+WXZmADGmromMjeQxojKDQ8Tj6trLDYZaqTD7oyaNSK39sv/t/mvzfaHTbqMgvX 7/hZ/CWzc3A2ag2X3Z4d1/fOg1Im+gqK2O67OsVAF2dlOPj8OGVDc1w/8ONPJTQM8kqp cCOOR3A+ZfE7puI5SzvkNWpuYDE19K73O1EEdYwc0GYAteJEaQWTPBZ/+9QrsmO+95m0 pUPy5V3S3aE4GkubBuBLFvEJw0Mj1YYlRNkd3E3XnO676Q347NKe7hk+cGKRoqMzjkN2 vjRg== X-Gm-Message-State: AOJu0YyuOIG1TYRrM0L4uDg/PPLz9QC7t+O4NlqzrmS0Lq/xiypZ7Tzl SJU16/dHQ0P12EWcX704t+Es/AJRLwdWmD1dCFYslC+xjqAslu+QrMrfzbPDNi8LIEgXVcQu9F/ dx45O58pIeRE7V0rQCdcX4jIcIOfTB8qc X-Gm-Gg: ASbGncucnuFxhx9Dbkfk7xW04MwYzka/sZ/fsuDUUisDbZRX6/AGh7S0sHpHBIJ8+5n VlFoP66RU4L93KWs7pakXgD1szXTagR1zRVFW99VA/JQxoopYCpW6py+4bVY4glbfMrh+56xoBq mZzvrpHA== X-Google-Smtp-Source: AGHT+IHk1o6XkdUhN+39FT/uROsEKxAzLmDdqKl0tQfRcvJ0E/FFn529sqrVVSoc5gqycJN39vVaw7BtPUnnM/l1u2k= X-Received: by 2002:a05:6512:3e14:b0:545:576:cbca with SMTP id 2adb3069b0e04-5483912fcd7mr6084558e87.8.1740487187498; Tue, 25 Feb 2025 04:39:47 -0800 (PST) MIME-Version: 1.0 References: <611536258.144285.1740484963829.ref@mail.yahoo.com> <611536258.144285.1740484963829@mail.yahoo.com> In-Reply-To: <611536258.144285.1740484963829@mail.yahoo.com> From: o1bigtenor Date: Tue, 25 Feb 2025 06:39:11 -0600 X-Gm-Features: AWEUYZkcVyn42eFd82ep1BtmTGSEh5S2jcg95jL9jQODo0WK5V9-84Mvgqqybws Message-ID: Subject: Re: Corruption of few tables Cc: Pgsql-general Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Feb 25, 2025 at 6:03=E2=80=AFAM sivapostgres@yahoo.com wrote: > > Hello, > > Using PostgreSQL 11.11, compiled by Visual C++ build 1914, 64-bit with P= owerbuilder > > Recently, in one of our customers' places, we got an error while saving a= record from our custom-built application using PowerBuilder. While sav= ing a record, we compare a value from a table with a hard-coded value in ap= plication. Here the 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 from a set of consecutive tables. = We re-started server [ Windows Server 2012 ] and tried again to read those = tables. This time the failure was with only one table and select was succe= ss in all other tables. > > So we dropped that particular table [ around 33000 records ], after remov= ing all foreign key links and re-created that table and inserted all record= s 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