Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id B97511465A37 for ; Wed, 30 May 2012 17:36:14 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SZpcr-0005I1-BI for pgsql-bugs@postgresql.org; Wed, 30 May 2012 20:36:14 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4UKZtTf008228; Wed, 30 May 2012 16:35:55 -0400 (EDT) To: Tomas Vondra cc: pgsql-bugs@postgresql.org Subject: Re: overwriting an existing .so while being used crashes the server process In-reply-to: <4FC6833C.6080501@fuzzy.cz> References: <4FC6833C.6080501@fuzzy.cz> Comments: In-reply-to Tomas Vondra message dated "Wed, 30 May 2012 22:29:48 +0200" Date: Wed, 30 May 2012 16:35:55 -0400 Message-ID: <8227.1338410155@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/226 X-Sequence-Number: 33197 Tomas Vondra writes: > whenever I run a C-function (part of an .so file) and the file is > overwritten, the connection crashes. Tested on 9.1.3 and 9.2-beta1. "Doctor, it hurts when I do this." "So don't do that." What exactly would you expect Postgres to do about such a thing, anyway? It has no control over people overwriting its executable files. regards, tom lane