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 1rzke0-006Qzd-Rv for pgsql-novice@arkaria.postgresql.org; Wed, 24 Apr 2024 21:59:12 +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 1rzkdy-000Xko-7i for pgsql-novice@arkaria.postgresql.org; Wed, 24 Apr 2024 21:59:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzkdx-000Xkg-VS for pgsql-novice@lists.postgresql.org; Wed, 24 Apr 2024 21:59:09 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzkdr-002mN7-3n for pgsql-novice@lists.postgresql.org; Wed, 24 Apr 2024 21:59:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 43OLx1uj3769212; Wed, 24 Apr 2024 17:59:01 -0400 From: Tom Lane To: James Creasy cc: pgsql-novice@lists.postgresql.org Subject: Re: Hello, novice Postgres user, seg fault investigation In-reply-to: References: Comments: In-reply-to James Creasy message dated "Wed, 24 Apr 2024 14:26:41 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3769210.1713995941.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 24 Apr 2024 17:59:01 -0400 Message-ID: <3769211.1713995941@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk James Creasy writes: > Now the interesting part, we're getting a seg fault which goes away when= we > run VACUUM on the table before writing to it, which is perplexing as the > table can be newly created and contains a few hundred rows. How could th= e > db get into a fatal state so quickly? If you didn't find it already, there's some advice here: https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend With so many moving parts, it's hard to guess whether the bug is in Postgres or PostGIS or what, but a stack trace should be informative. Also, as that page mentions, it's a good idea to make sure you are on latest release(s) before you spend time digging. regards, tom lane