public inbox for [email protected]
help / color / mirror / Atom feedRe: Corruption of few tables
2+ messages / 2 participants
[nested] [flat]
* Re: Corruption of few tables
@ 2025-02-26 06:33 [email protected] <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: [email protected] @ 2025-02-26 06:33 UTC (permalink / raw)
To: Greg Sabino Mullane <[email protected]>; +Cc: pgsql-general
Thanks
// Following is the PB code to retrieve data
ls_pack_version = fn_get_product_version()ls_pack_build = fn_get_product_build()
Select releasenumber, buildnumber Into :ls_db_version, :ls_db_build From public.co_version Where modulename = 'ALL'; If SQLCA.sqlcode <> 0 Then ls_db_version = '' ls_db_build = 'base'End If
If ls_pack_version <> ls_db_version Then as_msg = 'Version do not match.~r~nDB Ver : ' + ls_db_version as_msg += ' Build : ' + ls_db_build as_msg += '~r~nPack.Ver : ' + ls_pack_version as_msg += ' Build : ' + ls_pack_build as_msg += '~r~nPlease upgrade Program or Database' Messagebox('Error' as_msg) Return FalseEnd If
We get the above message [ Version do not match .... ], as SQLCA.Sqlcode returned is not ZERO. [ Successful read will return ZERO ]
We tried selecting tables from PGAdmin also, where we got Disconnected from the Server... error message.
On Tuesday 25 February, 2025 at 07:02:40 pm IST, Greg Sabino Mullane <[email protected]> wrote:
On Tue, Feb 25, 2025 at 7:03 AM [email protected] <[email protected]> wrote:
1. Why is corruption happening? How to find out the reason?
It sounds more like user error than actual corruption, but without more data we cannot determine. Show us the exact commands you ran, along with the results you expected to see, and the results you got. Provide as much detail as possible. A reproducible test case would be ideal.
Happiness Always
That is an excellent valediction, thanks for that.
Cheers,Greg
--Crunchy Data - https://www.crunchydata.comEnterprise Postgres Software Products & Tech Support
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Corruption of few tables
@ 2025-02-26 16:07 Adrian Klaver <[email protected]>
parent: [email protected] <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Klaver @ 2025-02-26 16:07 UTC (permalink / raw)
To: [email protected] <[email protected]>; Greg Sabino Mullane <[email protected]>; +Cc: pgsql-general
On 2/25/25 22:33, [email protected] wrote:
> Thanks
>
> // Following is the PB code to retrieve data
>
> ls_pack_version = fn_get_product_version()
> ls_pack_build = fn_get_product_build()
>
> Select releasenumber, buildnumber
> Into :ls_db_version, :ls_db_build
> From public.co_version
> Where modulename = 'ALL';
> If SQLCA.sqlcode <> 0 Then
> ls_db_version = ''
> ls_db_build = 'base'
> End If
>
> If ls_pack_version <> ls_db_version Then
> as_msg = 'Version do not match.~r~nDB Ver : ' + ls_db_version
> as_msg += ' Build : ' + ls_db_build
> as_msg += '~r~nPack.Ver : ' + ls_pack_version
> as_msg += ' Build : ' + ls_pack_build
> as_msg += '~r~nPlease upgrade Program or Database'
> Messagebox('Error' as_msg)
> Return False
> End If
>
> We get the above message [ Version do not match .... ], as SQLCA.Sqlcode
> returned is not ZERO. [ Successful read will return ZERO ]
Not sure how the two are connected.
The message is generated if:
ls_pack_version <> ls_db_version.
From what I can see that depends on the results of:
ls_pack_version = fn_get_product_version()
and
Select releasenumber ...
as well as
If SQLCA.sqlcode <> 0
How do you what is actually leading to?:
ls_pack_version <> ls_db_version.
>
> We tried selecting tables from PGAdmin also, where we got Disconnected
> from the Server... error message.
>
> On Tuesday 25 February, 2025 at 07:02:40 pm IST, Greg Sabino Mullane
> <[email protected]> wrote:
>
>
> On Tue, Feb 25, 2025 at 7:03 AM [email protected]
> <mailto:[email protected]> <[email protected]
> <mailto:[email protected]>> wrote:
>
> 1. Why is corruption happening? How to find out the reason?
>
>
> It sounds more like user error than actual corruption, but without more
> data we cannot determine. Show us the exact commands you ran, along with
> the results you expected to see, and the results you got. Provide as
> much detail as possible. A reproducible test case would be ideal.
>
> Happiness Always
>
>
> That is an excellent valediction, thanks for that.
>
> Cheers,
> Greg
>
> --
> Crunchy Data - https://www.crunchydata.com <https://www.crunchydata.com;
> Enterprise Postgres Software Products & Tech Support
>
--
Adrian Klaver
[email protected]
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-02-26 16:07 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-02-26 06:33 Re: Corruption of few tables [email protected] <[email protected]>
2025-02-26 16:07 ` Adrian Klaver <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox