From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Willian Colognesi <willian_colognesi@trimble.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Segmentation Fault PG 14
Date: Mon, 7 Nov 2022 10:49:32 -0800
Message-ID: <168a3b2b-dcab-fe33-81d5-94e5d4482fc4@aklaver.com> (raw)
In-Reply-To: <CADAf1kZc2ArQsTLKSaWc6eNQmFXL7LBciSEV8K23=9mZmUCemg@mail.gmail.com>
References: <CADAf1kavcN-kY=vEm3MYxhUa+rtGFs7tym5d7Ee6Ni2cwwxGqQ@mail.gmail.com>
<3316399.1667844527@sss.pgh.pa.us>
<CADAf1kZc2ArQsTLKSaWc6eNQmFXL7LBciSEV8K23=9mZmUCemg@mail.gmail.com>
On 11/7/22 10:36 AM, Willian Colognesi wrote:
> Hi Tom,
>
> `I take it things were okay with the version you used previously?`
> Yes, it was working pretty well in another instance with pg version
> `12.4-1.pgdg18.04+1`, and we had to make a migration of one database
> that was running in this server to another using Logical Replication.
Actually you used dump/restore and logical replication. '
In below:
1) What versions of pg_dump and pg_restore did you use?
2) To be clear the subscription was started after the restore?
3) Where there any error messages issued at any point in below?
4) Are the database clusters on the same machine?
>
> the process was basically this:
> |CREATE| |PUBLICATION my_database_pub ||FOR| |ALL| |TABLES;|
> |postgres@origin:~$ psql "dbname=<my_database> replication=database"
> |
> |
> |my_database=# CREATE_REPLICATION_SLOT <slot_name> LOGICAL pgoutput;|
> pg_dump -j4 -h <host> -p 5432 --no-subscriptions --no-publications -d
> <my_database> --snapshot=<snapshot_generated> -Fd -U <my_user> -f
> </mnt/dump>
> postgres@destination:/mnt/database$ pg_restore -d <my_database> -j 5
> </mnt/dump>
>
> CREATE SUBSCRIPTION <name_sub>
> CONNECTION 'host=<host> dbname=<my_database> user=replica
> password=?? port=5432'
> PUBLICATION <name_pub>
> WITH (slot_name=<slot_name>, create_slot=false, copy_data=false);
> |
>
>
> After this migration we started to have this kind of problem in both
> replica and primary servers.
>
> `This looks pretty messed up. Are you sure the debug symbols you're using`
> What exactly do you mean? I'm not too familiar with this debug toolings,
> the packages I've used were:
>
> postgresql-14/focal-pgdg,now 14.5-2.pgdg20.04+2 arm64 [installed]
> postgresql-14-dbgsym/focal-pgdg,now 14.5-2.pgdg20.04+2 arm64 [installed]
>
> `Even better, can you construct a self-contained test case?`:
> Actually I couldn't reproduce the problem because it's happening just in
> a production database, and it doesn't look to have a pattern in the
> cases when it happens.
>
> Is there anything I could provide you to help the analysis ?
>
>
>
> On Mon, Nov 7, 2022 at 3:08 PM Tom Lane <tgl@sss.pgh.pa.us
> <mailto:tgl@sss.pgh.pa.us>> wrote:
>
> Willian Colognesi <willian_colognesi@trimble.com
> <mailto:willian_colognesi@trimble.com>> writes:
> > I started to use version `14.5-2.pgdg20.04+2` for a dedicated
> database and
> > I'm facing many segmentation faults during the day when the
> database has
> > more heavy queries.
>
> I take it things were okay with the version you used previously?
> What was that exactly? Has anything else changed?
>
> > I could also get a little information from gdb, I'm not sure if
> it will
> > help:
>
> This looks pretty messed up. Are you sure the debug symbols you're
> using
> match the package?
>
> Even better, can you construct a self-contained test case?
>
> regards, tom lane
>
>
>
> --
> <http://www.trimble.com/;
> *Willian Cezar de O. Colognesi
> *
> Systems Analysis Specialist, Trimble Transportation Brazil
> Avenida Santos Dumont, 271 | Londrina, PR | 86039-090
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, willian_colognesi@trimble.com, tgl@sss.pgh.pa.us
Subject: Re: Segmentation Fault PG 14
In-Reply-To: <168a3b2b-dcab-fe33-81d5-94e5d4482fc4@aklaver.com>
References: <CADAf1kavcN-kY=vEm3MYxhUa+rtGFs7tym5d7Ee6Ni2cwwxGqQ@mail.gmail.com> <3316399.1667844527@sss.pgh.pa.us> <CADAf1kZc2ArQsTLKSaWc6eNQmFXL7LBciSEV8K23=9mZmUCemg@mail.gmail.com> <168a3b2b-dcab-fe33-81d5-94e5d4482fc4@aklaver.com>
* 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