From: Andrus <kobruleht2@hot.ee>
To: Justin <zzzzz.graf@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to fix 0xC0000005 exception in Postgres 9.0
Date: Fri, 21 Feb 2020 20:24:44 +0200
Message-ID: <8544B731C26E4A0D82BCC0DA5391735F@dell2> (raw)
In-Reply-To: <CALL-XePf2j5GzbdLkB9vpHE7g9EwqZ61YXAMnnEAwDJLYcbXww@mail.gmail.com>
References: <20200220224220.GA25223@alvherre.pgsql>
<21459e71-77c1-c3d0-a3e4-e2b97fd1efc3@aklaver.com>
<F592D9984F1042BC8F30909A3A7A733B@dell2>
<CALL-XeOAtrbxqqg0tKkcQCyw7aEzBDVXuCwLstOOShF7g=nZkQ@mail.gmail.com>
<CALL-XePf2j5GzbdLkB9vpHE7g9EwqZ61YXAMnnEAwDJLYcbXww@mail.gmail.com>
Hi!
>forgot to say publish the Linux logs it may have more details what is going
>on
Linux server has older application client which replicates all data one from
andmetp table using select * from andmetp
I tried several times. Linux log contains
2020-02-21 16:18:50 EET mydbadmin mydb STATEMENT: SELECT * FROM andmetp
2020-02-21 16:18:50 EET mydbadmin mydb FATAL: connection to client lost
2020-02-21 16:18:50 EET mydbadmin mydb STATEMENT: SELECT * FROM andmetp
2020-02-21 17:19:08 EET mydbadmin mydb LOG: could not send data to client:
Connection reset by peer
2020-02-21 17:19:08 EET mydbadmin mydb STATEMENT: SELECT * FROM andmetp
2020-02-21 17:19:08 EET mydbadmin mydb FATAL: connection to client lost
2020-02-21 17:19:08 EET mydbadmin mydb STATEMENT: SELECT * FROM andmetp
It looks like only connection was terminated. “dmesg -T” does not show
postgres crash. Maybe postgres main process is not killed in Linux.
> is this happening from any client or just a specific client running ODBC?
This happene if Windows 2008 server if logged in same same server from RDP
client and in my development windows 10 workstation which logs to linux
server over VPN
>are the clients running AV if so are the AV versions the same?
In windows 2008 server antivirus was turned off like I wrote. In my devel
workstation I use Microsoft antivirus coming with windows 10.
>Given this is killing a Linux server, sounds like ODBC is sending back
>garabage data to the server crashing it.
I can try publish odbc log if this helps.
Application replicateds some tables at startup to local disk.
For tables with 5000 or more rows odbc connection hangs if there is big TCP
packet loss.
So we changed replication command
select * from mytable
to commands
select drop_table(‘temptulemus’);
create temp table temptulemus as select * from mytable;
select * from mytable offset 0 limit 900;
select * from mytable offset 900 limit 900;
select * from mytable offset 1800 limit 900;
...
etc.
In this case data was also retrieved on poor connections.
Maybe there is some better solution for this.
>There are several settings in OBDC, to change how text columns are
>processed, play around with those settings see if that helps it
>https://odbc.postgresql.org/docs/config.html
Application needs certain settings. Maybe it is better try to upgrade to
Postgres 12.2 first.
>As you have it narrowed down to a table, try querying only a few records
>at a time to see if you can identify the specific Record(s) that may be the
>issue.
>SELECT * FROM temptulemus where temptulemus.unique_id >1 offset 0 limit
>100
>and try querying the columns that do not contain the suspect data that
>could be causing this
andmetp table contains 584 record in linux server. I tried script to read
data from this table every time one more row
for i=1 to 600
? i
StartTextMerge()
TEXT TEXTMERGE NOSHOW
select * from andmetp limit <<tran(i)>>
ENDTEXT
IF !TExec()
RETURN .f.
ENDIF
endfor
this worked without error.
Andrus.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kobruleht2@hot.ee, zzzzz.graf@gmail.com, alvherre@2ndquadrant.com, adrian.klaver@aklaver.com
Subject: Re: How to fix 0xC0000005 exception in Postgres 9.0
In-Reply-To: <8544B731C26E4A0D82BCC0DA5391735F@dell2>
References: <20200220224220.GA25223@alvherre.pgsql> <21459e71-77c1-c3d0-a3e4-e2b97fd1efc3@aklaver.com> <F592D9984F1042BC8F30909A3A7A733B@dell2> <CALL-XeOAtrbxqqg0tKkcQCyw7aEzBDVXuCwLstOOShF7g=nZkQ@mail.gmail.com> <CALL-XePf2j5GzbdLkB9vpHE7g9EwqZ61YXAMnnEAwDJLYcbXww@mail.gmail.com> <8544B731C26E4A0D82BCC0DA5391735F@dell2>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox